Fixing MPEG-TS in MP4 container of videos takes more time than expected
See original GitHub issueChecklist
- I’m reporting a bug unrelated to a specific site
- I’ve verified that I’m running yt-dlp version 2022.03.08.1. (update instructions)
- I’ve checked that all provided URLs are alive and playable in a browser
- I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
- I’ve searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
- I’ve read the guidelines for opening an issue
Description
Fixing MPEG-TS in MP4 container process for FixupM3U8 takes more time than expected when embedding yt-dlp into Python program.
But the same finishes up in a few seconds while using command-line feature.
P.S.: I pass the same options for configuration in both the cases
Verbose log
Downloading video from hotstar
[hotstar] 1000100150: Downloading JSON metadata
[hotstar] 1000100150: Downloading webpage
[hotstar] 1000100150: Downloading token
[hotstar] 1000100150: Downloading JSON metadata
[hotstar] 1000100150: Downloading MPD manifest
[hotstar] 1000100150: Downloading m3u8 information
[hotstar] 1000100150: Downloading m3u8 information
[hotstar] 1000100150: Downloading MPD manifest
[hotstar] 1000100150: Downloading MPD manifest
[hotstar] 1000100150: Downloading m3u8 information
[info] 1000100150: Downloading 1 format(s): sdr-hls-683-0
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 449
[download] Destination: D:\Entertainment - TV Shows\Ishqbaaaz\Episode 1 - 27 June 2016 - Meet Shivay And His Brothers.mp4
[download] 100% of 146.29MiB in 00:54
Done downloading, now converting ...
[FixupM3u8] Fixing MPEG-TS in MP4 container of "D:\Entertainment - TV Shows\Ishqbaaaz\Episode 1 - 27 June 2016 - Meet Shivay And His Brothers.mp4"
Issue Analytics
- State:
- Created a year ago
- Comments:15 (9 by maintainers)
Top Results From Across the Web
Problem converting TS to MP4 container with ffmpeg
The video plays fine in VLC and MPlayerX. I can't understand why QuickTime won't play the file. The codecs look compatible, and the...
Read more >How to adjust mpeg 2 ts start time with ffmpeg? - Stack Overflow
I've answered my own question with approach described here. Timestamp could be adjusted with -initial_offset parameter of -f segment format:
Read more >Fixing MP4-TS(I think that's right) takes to long? : r/youtubedl
Using 2022-02-04 on Linux, video downloads fine(from twitch) but when getting to the part where MP4-TS is fixed for the video it seems...
Read more >5 Ways to Convert TS to MP4 (Lossless, Fast, Easy)
TS (Transport Stream) is a video container format using standard MPEG-2 ... errors in real-time such as audio and video synchronization.
Read more >Video doesn't play in Firefox, works ok in Chrome and Edge
Chrome/Edge get a mpegts stream, while we get some remuxed mp4 content instead (as we don't support mpeg-ts stream). We don't appear to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You should have assumed it, since you are one of the developers/maintainers/contributors. 🙄 😒
Okay, thanks for the suggestion. Will check and revert back with the results.