Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Trying to grab all audio track, all subtitles, and 1920x1080 tracks (some videos have 2 video tracks) #26676
Comments
|
You could download every file separately then loop through those and merge them with ffmpeg by specifically mapping every input stream to one output file. |
Checklist
Question
I am trying to grab a copy of all 1920x1080 video tracks/ all audio tracks / all subtitle tracks from a m3u8 playlist file and put it into one file container (doesn't matter if mkv or mp4). I have tried so many variations of the text in the code examples as well as faq sections to try to accomplish this - but I am not getting youtube-dl to download this properly. The most I could do is grab the 1920x1080 video track and English audio track. Could anyone shed some incite on what to do?
The m3u8 file text (heavily redacted):
original_manifest.txt
My code (or one example of it):
"C:\youtube-dl 1\youtube-dl.exe" "http://127.0.0.1:8887/original_manifest" -o "C:\youtube-dl 1" -F best/aac-French/aac-Spanish --merge-output-format mp4
Output from -F command
[generic] original_manifest: Requesting header
WARNING: Falling back on generic information extractor.
[generic] original_manifest: Downloading webpage
[generic] original_manifest: Downloading m3u8 information
[info] Available formats for original_manifest:
format code extension resolution note
aac-French mp4 audio only [fr]
aac-Spanish mp4 audio only [es]
210 mp4 256x144 210k , avc1.4d000c, 15.0fps, mp4a.40.5
410 mp4 416x234 410k , avc1.4d000d, 30.0fps, mp4a.40.5
744 mp4 640x360 744k , avc1.4d001e, 30.0fps, mp4a.40.5
1645 mp4 960x540 1645k , avc1.4d001f, 30.0fps, mp4a.40.5
2572 mp4 1280x720 2572k , avc1.64001f, 30.0fps, mp4a.40.5
3687 mp4 1920x1080 3687k , avc1.640028, 30.0fps, mp4a.40.5 (best)
Anyone have a clue how to save all subtitles/videos at 1920x1080/all audio tracks? If possible, please include a code snippet Thanks for any help!