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.
youtube.com #22158
youtube.com #22158
Comments
|
Read FAQ on format selection. |
|
I was asking for help with the FAQ on format selection. I said that I couldn't figure out what command to use because I don't know enough about computer programming even after reading the help file, and was wondering if someone can tell me what command to use like they did last time. Also, why is it that the command I've already been using up until now, doesn't work anymore the way it used to? I know that you can find the available formats for a link using --list-format, and then download the video using those specific formats, but that doesn't do it all automatically like the batch file that I've been using used to, and also it doesn't seem to work anymore with combining DASH formats like the available 854x480 resolution with AAC audio into an MP4. If you're not able to help me with that, is there someone else on this forum that can help me with it? I'd appreciate it. Thanks. |
Hi, youtube-dl is great, but what seems to keep happening every once in a while after youtube.com updates its website, is that this code "--ignore-errors --format "best[ext=mp4][height<=720]" -o %(title)s.%(ext)s --cache-dir "C:\Users\Computer User\Music\youtube-dl and libav 11.3 files cache and downloads" --batch-file Files.txt" no longer works the way its supposed to.
For example, if a video on youtube is available in the highest resolution of 854x480, and the next highest resolution available is 640x360, it used to be that that code would try to download it first as 720p (1280x720) MP4 if available, but otherwise, to download it in the next highest resolution (which in this case is 854x480) but download it as an MP4 instead of MKV or anything like that.
However, what it's doing now for this video "https://www.youtube.com/watch?v=N9qYF9DZPdw" is its only downloading it as a 640x360 MP4, but I want it to automatically download and convert the video as an 854x480 MP4 like it used to do (if 720p isn't available).
I know you have a help file, but I don't know enough about computer programming to be able to figure out what command to use.
I need a command which will automatically download videos from a batch list of youtube links as 720p MP4, but if 720p isn't available, then to download and convert them as 480p MP4, without having to use different commands for different videos depending on which formats are available for each specific videos, or at least to be able to do it all automatically just from running a batch file.
The command I've been using used to be able to just download videos in the preferred format and resolution, or use the next best quality preferred format and resolution, but what it's doing now is that it isn't using the next best preferred format and resolution that's available like it used to, it's using the third best preferred quality and resolution (640x360) MP4, I assume because youtube serves 480p in DASH formats differently than 360p, but youtube-dl used to be able to download and convert the files just fine using that command as 854x480 MP4 if available, if the preferred 720p MP4 format wasn't available.
Also, "youtube audio and video downloader" for firefox for example, is able to download and convert a video as 854x480 MP4 with AAC audio from that link just fine, just like youtube-dl used to be able to do.
Is there any way to fix that, and can you please tell me exactly what command to use? Otherwise, youtube-dl is very useful. Thanks.