Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to grab all audio track, all subtitles, and 1920x1080 tracks (some videos have 2 video tracks) #26676

Open
evolutionaryman opened this issue Sep 23, 2020 · 1 comment
Labels

Comments

@evolutionaryman
Copy link

@evolutionaryman evolutionaryman commented Sep 23, 2020

Checklist

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

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!

@evolutionaryman evolutionaryman changed the title Trying to grab all audio track, all subtitles, and 1920x1080 tracks (some videos have 2 tracks) Trying to grab all audio track, all subtitles, and 1920x1080 tracks (some videos have 2 video tracks) Sep 23, 2020
@Fetchinator7
Copy link

@Fetchinator7 Fetchinator7 commented Oct 11, 2020

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.
youtube-dl --all-formats -o "%(autonumber)s-%(title)s.%(ext)s" LINK
I have a method for merging audio that doesn't support video but should point you in the right direction (I want to clean it up more at some point in the future).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.