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

[youtube] -f to merge video with two audio tracks #24537

Open
Gorrrg opened this issue Mar 30, 2020 · 0 comments
Open

[youtube] -f to merge video with two audio tracks #24537

Gorrrg opened this issue Mar 30, 2020 · 0 comments
Labels

Comments

@Gorrrg
Copy link

@Gorrrg Gorrrg commented Mar 30, 2020

Checklist

  • I'm reporting a feature request
  • I've verified that I'm running youtube-dl version 2020.03.24
  • I've searched the bugtracker for similar feature requests including closed ones

Description

There are surround sound audio tracks popping up on YouTube now, and I'd like to mux both a stereo and a multi-channel track into the file using something like --format 313+258+251, so that the resulting file can be played on both stereo and surround setups without sounding bad.

But that gives the error:

[youtube] fbyIYXEu-nQ: Downloading webpage
ERROR: The first format must contain the video, try using "-f 251+258"
ERROR: 'NoneType' object is not subscriptable

Example video is the Vsauce Mindfield series: https://www.youtube.com/watch?v=fbyIYXEu-nQ

The example formats would be:

251          webm       audio only tiny  147k , opus @160k (48000Hz), 21.18MiB
258          m4a        audio only tiny  388k , m4a_dash container, mp4a.40.2 (48000Hz), 63.82MiB
313          webm       3840x2160  2160p 18419k , vp9, 24fps, video only, 2.39GiB

And I expect ffmpeg to mux them into a Matroska file. I know I could download the individual tracks and then mux them together manually, but I like how youtube-dl is able to embed thumbnails, metadata, subtitles and descriptions in one go.

@Gorrrg Gorrrg added the request label Mar 30, 2020
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
1 participant
You can’t perform that action at this time.