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.

  • Pax@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 months ago

    This has been working for me for ages:

    -f "bestvideo[height<=1080][dynamic_range=SDR]

  • hedgehog@ttrpg.network
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 months ago

    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.

  • alphacyberranger@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 months ago

    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.

    • Davel23@fedia.io
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      Do you have the FFMPEG executable in the same directory as yt-dlp? They should merge automatically if so.

  • solrize@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    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@lemmynsfw.comOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      2 months ago

      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.

  • moshe@foggyminds.com
    link
    fedilink
    arrow-up
    0
    arrow-down
    2
    ·
    2 months ago

    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 🤪😎