mirror of
https://github.com/k4yt3x/video2x.git
synced 2026-02-04 03:22:07 +08:00
changed FFmpeg vsync to fps_mode
This commit is contained in:
@@ -79,7 +79,7 @@ class VideoDecoder:
|
|||||||
self.decoder = subprocess.Popen(
|
self.decoder = subprocess.Popen(
|
||||||
ffmpeg.compile(
|
ffmpeg.compile(
|
||||||
ffmpeg.input(input_path, r=frame_rate)["v"]
|
ffmpeg.input(input_path, r=frame_rate)["v"]
|
||||||
.output("pipe:1", format="rawvideo", pix_fmt="rgb24", vsync="cfr")
|
.output("pipe:1", format="rawvideo", pix_fmt="rgb24", fps_mode="cfr")
|
||||||
.global_args("-hide_banner")
|
.global_args("-hide_banner")
|
||||||
.global_args("-nostats")
|
.global_args("-nostats")
|
||||||
.global_args("-nostdin")
|
.global_args("-nostdin")
|
||||||
|
|||||||
@@ -66,7 +66,6 @@ class VideoEncoder:
|
|||||||
"pipe:0",
|
"pipe:0",
|
||||||
format="rawvideo",
|
format="rawvideo",
|
||||||
pix_fmt="rgb24",
|
pix_fmt="rgb24",
|
||||||
vsync="cfr",
|
|
||||||
s=f"{output_width}x{output_height}",
|
s=f"{output_width}x{output_height}",
|
||||||
r=frame_rate,
|
r=frame_rate,
|
||||||
)
|
)
|
||||||
@@ -90,7 +89,7 @@ class VideoEncoder:
|
|||||||
str(output_path),
|
str(output_path),
|
||||||
vcodec="libx264",
|
vcodec="libx264",
|
||||||
scodec="copy",
|
scodec="copy",
|
||||||
vsync="cfr",
|
fps_mode="cfr",
|
||||||
pix_fmt="yuv420p",
|
pix_fmt="yuv420p",
|
||||||
crf=17,
|
crf=17,
|
||||||
preset="veryslow",
|
preset="veryslow",
|
||||||
|
|||||||
Reference in New Issue
Block a user