12
submitted 4 days ago by [email protected] to c/[email protected]

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.

you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 2 points 4 days ago

You can use the --download-sections parameter to specify a time range. --download-sections "*0-600" would download the first 600 seconds to the nearest keyframe. To make it exact, you would have to re-encode the video after downloading it.

For making the thumbnail square, you will probably have to write a script to extract it, crop it, and re-insert it.

this post was submitted on 26 Jun 2024
12 points (83.3% liked)

Open Source

28908 readers
330 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 4 years ago
MODERATORS