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.
How to Download m4a when MP4 is the best video & opus when WEBM is the best video [no MKV] #25887
Comments
|
Read FAQ on format selection. |
Checklist
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