There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

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.

KingJalopy ,

Newpipe

alphacyberranger ,
@alphacyberranger@sh.itjust.works avatar

Recently youtube changed a few things and everything was breaking for me NewPipe, Freetube, yt-dlp. NewPipe and Freetube immediately released updates. Yt-dlp also got updated but this time there is a change. 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.

xavier666 ,

I didn’t want to do this but RTFM!

Azzu ,

-f “best[height=1080]”

rand_alpha19 ,

Could also do yt-dlp -S "res:1080" - it works with vertical videos too (will scale using the smallest dimension).

just_another_person ,
solrize ,

Use yt-dlp -F to list the available formats, and pick the one you want. See the “Video Format Options” section of the man page.

PenisDuckCuck9001 OP , (edited )

Guess I’ll have to find a way to get my script to automate that somehow. My goal is to get it back to where the only thing I have to do to download a video is paste the url in a lan webpage on my local server.

cmnybo ,

You can specify multiple formats and it will download the first one that’s available.

solrize ,

I don’t remember the format codes but they are generally pretty stable across a given host like youtube. The trouble is that not every video has all of the formats. You might have to just find the nearest one and convert with ffmpeg.

aedelred ,
@aedelred@lemmy.world avatar

To elaborate a little on this, if the format you want doesn’t have audio you may have to combine two formats. -F lists the formats, -f to choose them. As an example you can choose to combine an audio and video format like this: yt-dlp -f 136+140 [URL]

moshe ,

Use a web site or a smart phone app to download.
If a video is prohibited to download, another possibility is via Chrome and a specific plug-in 🤪😎

wesker ,

Most of those sites and apps are ad and malware ridden cancer.

downpunxx ,

I don't know about that but I sure do love your Israeli flag, man. Am YIsrael Chai!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines