How do I download YouTube videos in 1080p instead of 4k with yt-dlp?
This is killing me. Videos that are gigabytes in size instead of a couple hundred mb. I don't have the storage space for this. I don't have the bandwidth for this. More and more content creators are using 4k video instead of 1080p. Is there an easy way to make it only download videos in 1080p? I've found a few commands around the internet that don't work, presumably they work on some videos sometimes but that's just not good enough.
I download videos from a custom made web interface connected to yt-dlp so if it's no longer going to be possible to automate the process of video and playlist downloading then everything is going to become a huge pain in the ass.
This entry was edited (1 month ago)
like this
Moshe
in reply to PenisDuckCuck9001 • •If a video is prohibited to download, another possibility is via Chrome and a specific plug-in 🤪😎
Selfhosted reshared this.
Dr. Wesker
in reply to Moshe • • •solrize
in reply to PenisDuckCuck9001 • • •aedelred
in reply to solrize • • •like this
Moshe likes this.
PenisDuckCuck9001
in reply to solrize • • •cmnybo
in reply to PenisDuckCuck9001 • • •solrize
in reply to PenisDuckCuck9001 • • •just_another_person
in reply to PenisDuckCuck9001 • • •GitHub - yt-dlp/yt-dlp: A feature-rich command-line audio/video downloader
GitHubAzzu
in reply to PenisDuckCuck9001 • • •-f "[height=1080]"
like this
rand_alpha19 likes this.
rand_alpha19
in reply to Azzu • • •yt-dlp -S "res:1080"
- it works with vertical videos too (will scale using the smallest dimension).like this
rand_alpha19 likes this.
xavier666
in reply to PenisDuckCuck9001 • • •alphacyberranger
in reply to PenisDuckCuck9001 • • •Earlier you can simply download 1080p videos in one go. Now I have to download 1080 video and corresponding audio separately and use a FFMEG command to merge them. Though it's a pain, I'm still thankful that yt-dlp works.
Davel23
in reply to alphacyberranger • • •alphacyberranger
in reply to Davel23 • • •Davel23 likes this.
hedgehog
in reply to PenisDuckCuck9001 • • •I use
--format-sort +res:1080
, which, if my understanding of the documentation is correct, will make it prefer 1080p, the smallest video larger than 1080p if 1080p isn’t available, or the largest video if nothing 1080p or larger is available.res
is the smallest dimension of the video (so for a 1080x1920 portrait video, it would be 1080).Default sort is descending order. The
+
makes it sort in ascending order instead.KingJalopy
in reply to PenisDuckCuck9001 • • •Pax
in reply to PenisDuckCuck9001 • • •This has been working for me for ages:
-f "bestvideo[height<=1080][dynamic_range=SDR]
like this
Moshe likes this.