Merge pull request #697 from tcely/patch-10

Use `libopus` and speed up VP9 encoding
This commit is contained in:
meeb authored and GitHub committed 2025-02-09 16:53:28 +11:00
commit 8d89cc01f9
3 files changed
+403 -2

No files matched your search

+4 -2
View File
@@ -279,9 +279,11 @@ def download_media(
codec_options = list()
ofn = ytopts['outtmpl']
if 'av1-' in ofn:
codec_options = ['-c:v', 'libsvtav1', '-preset', '8', '-crf', '35']
codec_options.extend(['-c:v', 'libsvtav1', '-preset', '8', '-crf', '35'])
elif 'vp9-' in ofn:
codec_options = ['-c:v', 'libvpx-vp9', '-b:v', '0', '-crf', '31']
codec_options.extend(['-c:v', 'libvpx-vp9', '-b:v', '0', '-crf', '31', '-row-mt', '1', '-tile-columns', '2'])
if '-opus' in ofn:
codec_options.extend(['-c:a', 'libopus'])
set_ffmpeg_codec = not (
ytopts['postprocessor_args'] and
ytopts['postprocessor_args']['modifychapters+ffmpeg']