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

How to Download m4a when MP4 is the best video & opus when WEBM is the best video [no MKV] #25887

Closed
pootz10 opened this issue Jul 4, 2020 · 1 comment

Comments

@pootz10
Copy link

@pootz10 pootz10 commented Jul 4, 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

Hello, I'm a new user of youtube-dl, I started using it this week.
I've read the FAQ and googled for the doubt I have, but didn't find an answer for it.

I wanted to set a filter to download automatically the bestvideo and the bestaudio, but when the best video (best bitrate + highest resolution) is a .mp4 the bestaudio used to be the opus audio, so when it finishes the download it becomes a .mkv . I really would like the youtube-dl download the m4a when the mp4 is the best, and the webm audio when the best video is a VP9. So, I don't want the .mkv.

As far I've read and searched about, the only possible answer for this is downloading them separated, even so I didn't found a way it could be detected. "Well this video it was mp4 the best so get the m4a and join into mp4"

The --merge-output-format and --recode-video ends up converting to mkv because of the incompatible video/audio

If I download both audios, there is any practical command I could do to merge the right audio with the best video downloaded ? Or even a better solution for what I require?
Which ffmpeg command youtube-dl uses to merge audio & video?

I forgot to mention something important.
I'm downloading links on a list.txt I've created.

EDITED

Really bad support

@pootz10 pootz10 added the question label Jul 4, 2020
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jul 4, 2020

Read FAQ on format selection.

@dstftw dstftw closed this Jul 4, 2020
@dstftw dstftw added the duplicate label Jul 4, 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
2 participants
You can’t perform that action at this time.