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

Lack of Documentation of New Format Merging Ability and Its Syntax #2258

Closed
EveryDirection opened this issue Jan 28, 2014 · 2 comments
Closed

Lack of Documentation of New Format Merging Ability and Its Syntax #2258

EveryDirection opened this issue Jan 28, 2014 · 2 comments

Comments

@EveryDirection
Copy link

@EveryDirection EveryDirection commented Jan 28, 2014

The documentation outputted by --help currently states only

-f, --format FORMAT
video format code, specify the order of preference using slashes: "-f 22/17/18". "-f mp4" and "-f flv" are also supported. You can also use the special names "best", "bestaudio", "worst", and "worstaudio". By default, youtube-dl will pick the best quality.

No mention is made of how the option now supports syntax like

-f, --format FORMATVIDEO+FORMATAUDIO

(by the way, this new option is pretty awesome; kudos to the developers responsible!)

to download both DASH video and audio and automatically merge them. The documentation should be updated to reflect the new syntax options and also to clarify possible ambiguities in its usage:

  • does this only work for DASH formats, or for all formats?
  • does this only work if one of the formats is video and the other is audio?
  • can you switch the two arguments (e.g. audio format first, video format second)?
  • what happens if more than two format arguments are supplied? for example, if three formats are supplied, does it download and attempt to merge all three formats?
@phihag
Copy link
Contributor

@phihag phihag commented Jan 28, 2014

This is intentional, we do not feel that the option has gotten the appropriate love in order to be documented. Before making it official, we'll likely want to respect keepvideo (#2108), more testing on more platforms, and add a facility to make it default for IEs that are interested (namely YouTube).

To answer your questions:

Like any other option (unless documented otherwise), the syntax does work for all formats in all extractors. As far as we know, it is only useful for YouTube DASH videos. We do not support more than two options or anything other than video and audio (or audio and video, you can switch these as you wish). However, there is no code preventing you from letting ffmpeg merge the file.

@phihag phihag closed this Jan 28, 2014
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jan 28, 2014

Note that if you do {audio_format}+{video_format}, you will get a file with the m4a extension, instead of mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.