From d50f4611a35d50f4666c13d671a8325ca69869e5 Mon Sep 17 00:00:00 2001 From: Wang Hangjie Date: Mon, 23 Sep 2024 18:00:05 +0800 Subject: [PATCH] Fix Mismatch Between Input and Output Frames in FFmpeg-VAAPI VPP Deinterlace Signed-off-by: Wang Hangjie --- lib/ffmpeg/vppbase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ffmpeg/vppbase.py b/lib/ffmpeg/vppbase.py index da92d931..1ede8554 100644 --- a/lib/ffmpeg/vppbase.py +++ b/lib/ffmpeg/vppbase.py @@ -51,7 +51,7 @@ def gen_output_opts(self): opts = "-filter_complex" if self.vpp_op in fcomplex else "-vf" opts += f" '{','.join(vpfilter)}'" opts += " -pix_fmt {mformat}" if self.vpp_op not in ["csc", "tonemap", "overlay"] else "" - opts += " -f rawvideo -fps_mode passthrough -an -vframes {frames} -y {osdecoded}" + opts += " -f rawvideo -fps_mode cfr -an -vframes {frames} -y {osdecoded}" return opts