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

Print a list of available formats #61

Closed
dd1 opened this issue Jan 23, 2011 · 7 comments
Closed

Print a list of available formats #61

dd1 opened this issue Jan 23, 2011 · 7 comments
Labels

Comments

@dd1
Copy link

dd1 commented Jan 23, 2011

It would be nice to have a CL option enabling one to obtain a list of all available formats for a specific video (URL). In other words, how can I know what to specify as FORMAT for -f? Thanks in advance.

@devconsole
Copy link

Here's what I do, but maybe there's a better way:

./youtube-dl --all-formats --get-filename http://www.youtube.com/watch?v=dQw4w9WgXcQ

That gives you a list of file names like so:
dQw4w9WgXcQ-35.flv
dQw4w9WgXcQ-34.flv
dQw4w9WgXcQ-18.mp4
dQw4w9WgXcQ-5.flv

The numbers next to the dashes are the video formats (35, 34, 18, 5). The list of formats is documented here: http://en.wikipedia.org/wiki/YouTube#Quality_and_codecs

@shirishag75
Copy link

At the extent of being an idiot, can somebody explain me how can I make sure that I get the format. While the above works, I do have an issue with downloading a specific version. I have seen this happen with few other videos as well.

This is on a friend's window machine.

C:\Documents and Settings\Admin\Commands>youtube-dl.py --all-formats --get-file
name "http://www.youtube.com/watch?v=ssxB0a3Js7I"
ssxB0a3Js7I-22.mp4
ssxB0a3Js7I-35.flv
ssxB0a3Js7I-34.flv
ssxB0a3Js7I-18.mp4
ssxB0a3Js7I-5.flv

C:\Documents and Settings\Admin\Commands>youtube-dl.py --format=mp4 "http://www.
youtube.com/watch?v=ssxB0a3Js7I"
[youtube] Setting language
[youtube] ssxB0a3Js7I: Downloading video webpage
[youtube] ssxB0a3Js7I: Downloading video info webpage
[youtube] ssxB0a3Js7I: Extracting video information
ERROR: requested format not available

Can somebody explain that to me.

@dd1
Copy link
Author

dd1 commented Apr 14, 2011

ssxB0a3Js7I-22.mp4
[...]
ssxB0a3Js7I-18.mp4

Which of the above do you mean?

youtube-dl.py --format=mp4 "..."
[...]
ERROR: requested format not available

I guess you should probably try --format=22 or --format=18.

Dmitry Chistikov

@nirbheek
Copy link

Isn't this solved with the "-F" option now?

@andrew-aladev
Copy link

yes. "-F" works perfect

@Sepero
Copy link

Sepero commented Oct 31, 2012

I think this issue can be marked as closed also. Cheers

@viliyam2811
Copy link

It's not youtube-dl.py --format=mp4.... it's youtube-dl.py --format mp4

joedborg referenced this issue in joedborg/youtube-dl Nov 17, 2020
[pull] master from rg3:master
tsukumijima pushed a commit to tsukumijima/youtube-dl that referenced this issue Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants