remove fps filter entirely from gif pipeline, rely on -r flag for frame rate control
This commit is contained in:
@@ -442,11 +442,10 @@ fn encode_gif_pass(
|
||||
.map(|s| format!("{s},"))
|
||||
.unwrap_or_default();
|
||||
let palettegen_filter = format!(
|
||||
"{cprefix}{kprefix}fps={fps},{sprefix}scale={w}:-1:flags=lanczos,palettegen=stats_mode=diff:max_colors={colors}",
|
||||
"{cprefix}{kprefix}{sprefix}scale={w}:-1:flags=lanczos,palettegen=stats_mode=diff:max_colors={colors}",
|
||||
cprefix = crop_prefix,
|
||||
kprefix = click_prefix,
|
||||
sprefix = select_prefix,
|
||||
fps = effective_fps,
|
||||
w = scale_width,
|
||||
colors = req.gif_colors,
|
||||
);
|
||||
@@ -466,15 +465,12 @@ fn encode_gif_pass(
|
||||
GifDither::Bayer => "bayer:bayer_scale=3",
|
||||
GifDither::None => "none",
|
||||
};
|
||||
let setpts = format!("setpts=N/{fps}/TB", fps = effective_fps);
|
||||
let use_filter = format!(
|
||||
"{cprefix}{kprefix}fps={fps},{sprefix}scale={w}:-1:flags=lanczos,{setpts}[x];[x][1:v]paletteuse=dither={d}",
|
||||
"{cprefix}{kprefix}{sprefix}scale={w}:-1:flags=lanczos[x];[x][1:v]paletteuse=dither={d}",
|
||||
cprefix = crop_prefix,
|
||||
kprefix = click_prefix,
|
||||
sprefix = select_prefix,
|
||||
fps = effective_fps,
|
||||
w = scale_width,
|
||||
setpts = setpts,
|
||||
d = dither,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user