x264参数
This commit is contained in:
parent
7eb32d4ce1
commit
f017210a71
@ -27,7 +27,7 @@ def encode_video_with_subtitles(orig_filename: str, subtitles: list[str], new_fi
|
|||||||
",".join("subtitles=%s" % i for i in subtitles) + (",hwupload_cuda" if FFMPEG_USE_GPU else ""),
|
",".join("subtitles=%s" % i for i in subtitles) + (",hwupload_cuda" if FFMPEG_USE_GPU else ""),
|
||||||
"-c:a", "copy", "-c:v", "h264_nvenc" if FFMPEG_USE_GPU else "h264", "-f", "mp4",
|
"-c:a", "copy", "-c:v", "h264_nvenc" if FFMPEG_USE_GPU else "h264", "-f", "mp4",
|
||||||
"-preset:v", "fast", "-profile:v", "high", "-level", "4.1",
|
"-preset:v", "fast", "-profile:v", "high", "-level", "4.1",
|
||||||
"-b:v", VIDEO_BITRATE, "-rc:v", "vbr", "-tune", "hq",
|
"-b:v", VIDEO_BITRATE, "-rc:v", "vbr", "-tune:v", "hq",
|
||||||
"-qmin", "10", "-qmax", "32", "-crf", "16",
|
"-qmin", "10", "-qmax", "32", "-crf", "16",
|
||||||
# "-t", "10",
|
# "-t", "10",
|
||||||
new_filename
|
new_filename
|
||||||
|
Loading…
x
Reference in New Issue
Block a user