Authored by: bashonly
This commit is contained in:
bashonly 2025-05-20 13:45:09 -05:00
parent 0976846080
commit 203b302bc9
No known key found for this signature in database
GPG Key ID: 783F096F253D15B0

View File

@ -204,9 +204,9 @@ class TwitchBaseIE(InfoExtractor):
for fmt in formats:
if fmt.get('vcodec') and fmt['vcodec'].startswith('av01'):
# mpegts does not yet have proper support for av1
fmt.setdefault('downloader_options', {})['ffmpeg_args_out'] = ['-f', 'mp4']
fmt.setdefault('downloader_options', {}).update({'ffmpeg_args_out': ['-f', 'mp4']})
if self.get_param('live_from_start'):
fmt.setdefault('downloader_options', {})['ffmpeg_args'] = ['-live_start_index', '0']
fmt.setdefault('downloader_options', {}).update({'ffmpeg_args': ['-live_start_index', '0']})
return formats