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.
Automatically select m4a or webm audio depending on the video file #26492
Comments
|
After reading the FAQ 5-6 times i've came up with this line now it always downloads files in .mp4 format. but i'm okay with that. |
|
This can maybe be interesting?
Or this script? |
The problem is with the
As you are explicitly mentioning the video extension here, it will pick the h.264 (i.e avc) video. As mp4 container supports both h.264 video and aac audio codecs, it will be used. |
I don't think so.
|
Checklist
Question
Hi,
I tried downloading this video in 2160p [4K] format and I used
-f bestvideo[height<=2160]+bestaudio[ext=m4a]but it ended up in being an .mkv file.Available formats for video. URL : https://www.youtube.com/watch?v=1La4QzGeaaQ
Then I tried the following commands:
bestvideo[height<=2160]+bestaudio[ext=m4a]/bestaudio[ext=webm]bestvideo[height<=2160]+bestaudio[ext=m4a]/best[ext=webm]bestvideo[height<=2160]+bestaudio[ext=m4a]/bestvideo[height<=2160]+bestaudio[ext=webm]but none of them worked, is it possible for youtube-dl to automatically select m4a when video file is mp4 and webm audio file for webm video ? I have read the FAQ section for format selection but still can't seem to figure it out. Is this feature available ?