[ffmpeg] Ignore unknown streams

Closes #2307
This commit is contained in:
pukkandan 2022-01-13 16:09:19 +05:30
parent b2db8102dc
commit 5df1ac92bd
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698

View File

@ -197,7 +197,7 @@ def stream_copy_opts(copy=True, *, ext=None):
yield from ('-map', '0') yield from ('-map', '0')
# Don't copy Apple TV chapters track, bin_data # Don't copy Apple TV chapters track, bin_data
# See https://github.com/yt-dlp/yt-dlp/issues/2, #19042, #19024, https://trac.ffmpeg.org/ticket/6016 # See https://github.com/yt-dlp/yt-dlp/issues/2, #19042, #19024, https://trac.ffmpeg.org/ticket/6016
yield '-dn' yield from ('-dn', '-ignore_unknown')
if copy: if copy:
yield from ('-c', 'copy') yield from ('-c', 'copy')
# For some reason, '-c copy -map 0' is not enough to copy subtitles # For some reason, '-c copy -map 0' is not enough to copy subtitles