]> jfr.im git - yt-dlp.git/commitdiff
Run `FFmpegFixupM3u8PP` for live-streams if needed
authorpukkandan <redacted>
Sat, 7 May 2022 17:06:18 +0000 (22:36 +0530)
committerpukkandan <redacted>
Sat, 7 May 2022 17:06:23 +0000 (22:36 +0530)
Closes #3669

yt_dlp/YoutubeDL.py

index 3946311cd5c55d353cfa518dabd0b7084568a1a4..de34b8bd7c41516a1596a6018919fb278b6e78ed 100644 (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',