From 176ae90bbb9cc16a93eb4c1d646533496b787aea Mon Sep 17 00:00:00 2001 From: k4yt3x Date: Sun, 28 Aug 2022 19:23:49 +0000 Subject: [PATCH] removed fps_mode since it causes incompatibility issues --- video2x/decoder.py | 2 +- video2x/encoder.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/video2x/decoder.py b/video2x/decoder.py index cd333a7..7df3684 100755 --- a/video2x/decoder.py +++ b/video2x/decoder.py @@ -79,7 +79,7 @@ class VideoDecoder: self.decoder = subprocess.Popen( ffmpeg.compile( ffmpeg.input(input_path, r=frame_rate)["v"] - .output("pipe:1", format="rawvideo", pix_fmt="rgb24", fps_mode="cfr") + .output("pipe:1", format="rawvideo", pix_fmt="rgb24") .global_args("-hide_banner") .global_args("-nostats") .global_args("-nostdin") diff --git a/video2x/encoder.py b/video2x/encoder.py index 20c364d..671df9f 100755 --- a/video2x/encoder.py +++ b/video2x/encoder.py @@ -89,7 +89,6 @@ class VideoEncoder: str(output_path), vcodec="libx264", scodec="copy", - fps_mode="cfr", pix_fmt="yuv420p", crf=17, preset="veryslow",