Merge pull request #1322 from tcely/patch-2

Fix remuxing for combined formats
This commit is contained in:
meeb
2025-11-04 15:53:43 +11:00
committed by GitHub
2 changed files with 5 additions and 3 deletions

View File

@@ -429,9 +429,8 @@ def download_media(
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']
set_ffmpeg_codec = (
'modifychapters+ffmpeg' not in ytopts['postprocessor_args']
)
if set_ffmpeg_codec and codec_options:
ytopts['postprocessor_args'].update({

View File

@@ -210,6 +210,9 @@ YOUTUBE_DEFAULTS = {
'base_url': ['http://127.0.0.1:4416'],
},
},
'postprocessor_args': {
'videoremuxer+ffmpeg': ['-bsf:v', 'setts=pts=DTS'],
},
}
COOKIES_FILE = CONFIG_BASE_DIR / 'cookies.txt'