Video format codes are not listed anywhere #17

Closed
opened 2026-02-20 22:23:22 -05:00 by deekerman · 5 comments
Owner

Originally created by @jameshfisher on GitHub (Nov 10, 2010).

The --help text refers to "video format codes", but nowhere are these listed or defined. It gives the example of "17" as a format code (for the mobile version), which seems arbitrary to me. I couldn't find the codes in the source. My expectation of a "format code" would be something like "720p", "480p", "320p", or "240p". Do the used numeric codes correspond to these, and if so how?

Originally created by @jameshfisher on GitHub (Nov 10, 2010). The --help text refers to "video format codes", but nowhere are these listed or defined. It gives the example of "17" as a format code (for the mobile version), which seems arbitrary to me. I couldn't find the codes in the source. My expectation of a "format code" would be something like "720p", "480p", "320p", or "240p". Do the used numeric codes correspond to these, and if so how?
Author
Owner

@rg3 commented on GitHub (Nov 10, 2010):

See the "YouTube formats" section in the program webpage.

http://rg3.github.com/youtube-dl/

@rg3 commented on GitHub (Nov 10, 2010): See the "YouTube formats" section in the program webpage. http://rg3.github.com/youtube-dl/
Author
Owner

@jameshfisher commented on GitHub (Nov 10, 2010):

Ah, didn't see that. Could we include the Wikipedia URL in the --help text?

@jameshfisher commented on GitHub (Nov 10, 2010): Ah, didn't see that. Could we include the Wikipedia URL in the --help text?
Author
Owner

@rg3 commented on GitHub (Nov 10, 2010):

That would be too long, and the official documentation has always been the webpage. The --help text is, like most help texts, a quick reference to find all the options at a glance. However, I think I'll reorganize the webpage and add an index at the top, so that the formats section will be spotted easily.

@rg3 commented on GitHub (Nov 10, 2010): That would be too long, and the official documentation has always been the webpage. The --help text is, like most help texts, a quick reference to find all the options at a glance. However, I think I'll reorganize the webpage and add an index at the top, so that the formats section will be spotted easily.
Author
Owner

@ghost commented on GitHub (Apr 18, 2015):

Still actual.

@ghost commented on GitHub (Apr 18, 2015): Still actual.
Author
Owner

@dstftw commented on GitHub (Apr 18, 2015):

-F, --list-formats               List all available formats
@dstftw commented on GitHub (Apr 18, 2015): ``` -F, --list-formats List all available formats ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl-ytdl-org#17
No description provided.