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

Download only 1080p videos #5738

Closed
WeWin55 opened this issue May 17, 2015 · 2 comments
Closed

Download only 1080p videos #5738

WeWin55 opened this issue May 17, 2015 · 2 comments

Comments

@WeWin55
Copy link

@WeWin55 WeWin55 commented May 17, 2015

Hello,

I want to download just 1920x1080 mp4 videos with audio.

My download script for downloading the video is:

-f "bestvideo[ext=mp4][height=1080]+bestaudio/best"

But if youtube is working on the video and its only available at lower resolution it just downloads the lower ones.
I dont know how to make youtube-dl to just download videos that are mp4 and 1920x1080
PS: Another little question:
I it possible to put the output file name of the finished downloaded file in a variable?

Thanks in advance,

Greetings WeWin

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented May 18, 2015

/best means that it will fallback to the best format if the 1080p format is not available, using -f "bestvideo[ext=mp4][height=1080]+bestaudio" will only download the 1080 format (but it will fail if it's not available).

it possible to put the output file name of the finished downloaded file in a variable?

Use --get-filename, which will only print the filename and not download the video.

@jaimeMF jaimeMF closed this May 18, 2015
@WeWin55
Copy link
Author

@WeWin55 WeWin55 commented May 18, 2015

Thanks ;)
Am 18.05.2015 11:25 vorm. schrieb "Jaime Marquínez Ferrándiz" <
notifications@github.com>:

/best means that it will fallback to the best format if the 1080p format
is not available, using -f "bestvideo[ext=mp4][height=1080]+bestaudio" will
only download the 1080 format (but it will fail if it's not available).

it possible to put the output file name of the finished downloaded file
in a variable?

Use --get-filename, which will only print the filename and not download
the video.


Reply to this email directly or view it on GitHub.

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.