[ie] Support multi-period MPD streams (#6654)

This commit is contained in:
Alard 2023-03-27 19:04:23 +02:00 committed by pukkandan
parent ffff1bc659
commit 4ce57d3b87
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
2 changed files with 54 additions and 14 deletions

View file

@ -3483,7 +3483,8 @@ class YoutubeDL:
or info_dict.get('is_live') and self.params.get('hls_use_mpegts') is None,
'Possible MPEG-TS in MP4 container or malformed AAC timestamps',
FFmpegFixupM3u8PP)
ffmpeg_fixup(info_dict.get('is_live') and downloader == 'dashsegments',
ffmpeg_fixup(downloader == 'dashsegments'
and (info_dict.get('is_live') or info_dict.get('is_dash_periods')),
'Possible duplicate MOOV atoms', FFmpegFixupDuplicateMoovPP)
ffmpeg_fixup(downloader == 'web_socket_fragment', 'Malformed timestamps detected', FFmpegFixupTimestampPP)