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

Force mp4 and max resolution (1920x1080p) at the same time ...? #26470

Closed
Wogol opened this issue Aug 30, 2020 · 2 comments
Closed

Force mp4 and max resolution (1920x1080p) at the same time ...? #26470

Wogol opened this issue Aug 30, 2020 · 2 comments
Labels

Comments

@Wogol
Copy link

@Wogol Wogol commented Aug 30, 2020

Checklist

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

Question

WRITE QUESTION HERE
Im trying to create a bash script for youtube-dl and one of the issues is I cant get youtube-dl to force mp4 download AND limit it to max 1080p videos.
https://stackoverflow.com/questions/63336809/youtube-dl-download-script-debug

Works, force mp4:

-f bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best --merge-output-format mp4

Have tested all this and more and dont work

-f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio' --merge-output-format mp4 -f 'bestvideo[height<=1080]+bestaudio/best[height<=1080]'
-f 'bestvideo[ext=mp4,height<=1080]+bestaudio[ext=m4a]/bestvideo+bestaudio' --merge-output-format mp4
-f 'bestvideo[ext=mp4,height<=1080p]+bestaudio[ext=m4a]/bestvideo+bestaudio' --merge-output-format mp4
-f 'bestvideo[ext=mp4:height<=1080]+bestaudio[ext=m4a]/bestvideo+bestaudio' --merge-output-format mp4

....

Do youtube-dl support force mp4 and max resolution of video to download?

@Wogol Wogol added the question label Aug 30, 2020
@Wogol Wogol changed the title Force mp4 and max resolution. Youtube-dl supports it? Force mp4 and max resolution...? Youtube-dl supports it? Aug 30, 2020
@Wogol Wogol changed the title Force mp4 and max resolution...? Youtube-dl supports it? Force mp4 and max resolution (1920x1080p) at the same time ...? Aug 31, 2020
@Wogol
Copy link
Author

@Wogol Wogol commented Aug 31, 2020

https://github.com/ytdl-org/youtube-dl#format-selection

Thanks. After some reading and testing back and forth this works.

-f bestvideo[ext=mp4][height<=1080]+bestaudio[ext=m4a]/best[ext=mp4]/best --merge-output-format mp4
@Wogol Wogol closed this Aug 31, 2020
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.