cross-posted from: https://mander.xyz/post/14609590

Can I have some help regarding using yt-dlp.

  1. How to select a specific duration of video to be downloaded like from 00 to 600 seconds in video of 8 hours.
  2. When downloading songs from youtube with metadata and thumbnail I get thumbnails in rectangular shape instead of square. How to turn them square?

Asking it here cause, Discussion on repository is closed and it is FOSS software.

  • PatheticGroundThing@beehaw.org
    link
    fedilink
    arrow-up
    15
    ·
    5 months ago

    First question: You use

    --download-sections "*00:00-10:00"

    as an option to download the first 10 minutes. The asterisk means the numbers are treated as a timestamp instead of looking for a chapter with that title.

    Second question I don’t know.

    • 🦊 OneRedFox 🦊@beehaw.org
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 months ago

      Well that’s a game changer, because I’ve been using ffmpeg directly to trim the files and it’s very clunky by comparison.

  • meow
    link
    fedilink
    arrow-up
    6
    ·
    5 months ago

    to my knowledge you can’t get squares from yt-dlp. Strawberry Music Player has a feature to download and embed the cover from MusicBrainz, I usually use that (I have to correct the tags from yt-dlp most of the time anyways). I think Picard has that too, but I don’t use that.

  • mox@lemmy.sdf.org
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    5 months ago

    How to turn them square?

    I don’t think yt-dlp has built-in image cropping, so it’s just going to download thumbnails in the resolutions provided by the server. (See the --list-thumbnails option.) To crop what you download, consider a tool like ImageMagick.