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.
Specifying file format should download correct video #311
Comments
|
I'm puzzled, too, as to why there isn't a simple "download the best quality version of format X" option, instead of needing to specify numerical codes. I work around it with the following shell script which I've called
You could generalize the script to accept a format parameter, but I'm only ever interested in MP4. |
|
This has been supported for some time. Currently 'mp4', 'flv', 'webm', '3gp', 'm4a', 'mp3', 'ogg', 'aac' and 'wav' are supported. Thanks for the report! If you find some common extension that is not recognized, feel free to open a new issue or submit a PR. |
The first time I tried to download a video I ran
youtube-dlwith the-Fflag and got this list of options:I then tried running
youtube-dl -f mp4and got the following message:Which seems odd because it was just shown in the list above.
I'd like to propose one of the following two options:
-fIf there's only one specified resolution for the file format it's easy to choose which one to download. Otherwise, choose the same resolution you would without passing any options to the function.
If the user specifies a format that's also a value in
self._video_extensions, tell them they should try an integer instead and show the list of integers and video resolutions they should try.Would be happy to submit a pull request, just curious about what you think the interface should look like.
Kevin