cpu编码不支持rc:v

This commit is contained in:
Jerry Yan 2022-05-17 17:50:38 +08:00
parent 9bdd4cdcb6
commit 80bac4498e

View File

@ -163,7 +163,7 @@ def encode_video_with_subtitles(orig_filename: str, subtitles: list[str], new_fi
",".join("subtitles=%s" % i for i in subtitles), ",".join("subtitles=%s" % i for i in subtitles),
"-c:a", "copy", "-c:v", "h264", "-c:a", "copy", "-c:v", "h264",
"-f", "mp4", "-preset:v", "fast", "-profile:v", "high", "-level", "4.1", "-f", "mp4", "-preset:v", "fast", "-profile:v", "high", "-level", "4.1",
"-b:v", VIDEO_BITRATE, "-rc:v", "vbr", "-b:v", VIDEO_BITRATE,
"-qmin", "10", "-qmax", "32", "-crf", "16", "-qmin", "10", "-qmax", "32", "-crf", "16",
"-fflags", "+genpts", "-shortest", "-movflags", "faststart", "-fflags", "+genpts", "-shortest", "-movflags", "faststart",
# "-t", "10", # "-t", "10",