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-dl fails to mux video with bestvideo+bestaudio format selection #5166

Closed
mlindner opened this issue Mar 9, 2015 · 1 comment
Closed

Comments

@mlindner
Copy link
Contributor

@mlindner mlindner commented Mar 9, 2015

When downloading https://www.youtube.com/watch?v=kkd8A3QGP7M with -f bestvideo+bestaudio the muxing of the formats fails. This appears to be because youtube-dl is selecting the same container format as the video portion (which is VP9 webm) and trys to mux an audio stream of aac format.

The command run was:
youtube-dl -v -f bestvideo+bestaudio kkd8A3QGP7M

The error created is:
ERROR: Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
When running again with verbosity the ffmpeg command run is shown. Running that ffmpeg command generates:
[webm @ 0x7fe332042600] Only VP8 or VP9 video and Vorbis or Opus audio and WebVTT subtitles are supported for WebM.

A suggested fix would be to default to either an mp4 or an mkv format if webm format is not possible because of muxing of non-webm compatible codecs.

@mlindner mlindner changed the title Youtube-dl fails to mux video with bestvideo+bestaudio Youtube-dl fails to mux video with bestvideo+bestaudio format selection Mar 9, 2015
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 9, 2015

Duplicate of #4906.
You can use filters as workaround, e.g. -f bestvideo[ext=mp4]+bestaudio.

@dstftw dstftw closed this Mar 9, 2015
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.