Run FFmpegFixupM3u8PP for live-streams if needed

Closes #3669
This commit is contained in:
pukkandan 2022-05-07 22:36:18 +05:30
parent 5747d4f4e8
commit d7a1aa00c6
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39

View File

@ -3194,7 +3194,8 @@ def ffmpeg_fixup(cndn, msg, cls):
downloader = downloader.__name__ if downloader else None
if info_dict.get('requested_formats') is None: # Not necessary if doing merger
ffmpeg_fixup(downloader == 'HlsFD',
live_fixup = info_dict.get('is_live') and not self.params.get('hls_use_mpegts')
ffmpeg_fixup(downloader == 'HlsFD' or live_fixup,
'Possible MPEG-TS in MP4 container or malformed AAC timestamps',
FFmpegFixupM3u8PP)
ffmpeg_fixup(info_dict.get('is_live') and downloader == 'DashSegmentsFD',