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

batch downloading video of medium quality with audio #2535

Closed
shnk opened this issue Mar 10, 2014 · 3 comments
Closed

batch downloading video of medium quality with audio #2535

shnk opened this issue Mar 10, 2014 · 3 comments

Comments

@shnk
Copy link

@shnk shnk commented Mar 10, 2014

I am using this command to download the video of desired quality but the problem is that it has no audio.

youtube-dl -o"%(title)s.%(ext)s" -f 135/134/136/137 [URL]

I can download the video with this command but it takes too much bandwidth and disk space, so I want to avoid it.

youtube-dl -o"%(title)s.%(ext)s" -f "best" [URL]

I do not understand why aforementioned command does not work.
Please help.
thanks.

@phihag
Copy link
Contributor

@phihag phihag commented Mar 10, 2014

Well, all of the formats you list are DASH formats and therefore don't contain audio. What you can do is run youtube-dl -F YOUR_VIDEO_URL. That will output a list of formats that the given video is available in. Pick the formats that are of acceptable size and do contain both video and audio, i.e. do not include DASH in their description.

@phihag phihag closed this Mar 10, 2014
@shnk
Copy link
Author

@shnk shnk commented Mar 10, 2014

@phihag
I want to batch download all the links written in the given text file using convenient code. Like

youtube-dl -o"%(title)s.%(ext)s" -f "medium" -a location_of_text_file

I know there isn't any keyword like "medium". But still, is it possible to reach this goal using alternative code? If yes, then please help.

Alternatively, is it possible to download desired dash Audio and Video and then combine them?

@phihag
Copy link
Contributor

@phihag phihag commented Mar 10, 2014

You don't actually want medium, do you? Imagine a video that is only available in 100MB/s, 50MB/s, 20MB/s, 10MB/s, 2MB/s, 1MB/s. medium would be 20MB/s, but you would want 1MB/s. What you can do is pick any video and look at the available formats and pick those that you like. For example,

-f 18/43/5/best

is a reasonable value for YouTube.

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
2 participants
You can’t perform that action at this time.