How to get only a portion of a video, youtube-dl command?

Hello,

Sometimes I have videos of which I am only interested in keeping a few minutes, the rest is irrelevant … How can a section or part of a video be recorded / downloaded with the youtube-dl command? - The youtube-dl-gui application does not have a way to achieve this.

I’ve tried things like this, but they don’t work for me:

Thanks for any advice on this.

Greetings.

simple use screencaster? like simplescreenrecorder, where you can select a region of the screen to record

If I remember correctly, youtube-dl can’t download specific times. You need to cut it with ffmpeg, as described in the link you provided.

ffmpeg -ss 00:00:15.00 -i "FILE" -t 00:00:10.00 -c copy out.mp4
2 Likes
type or p[keos@keos-pc ~]$ ffmpeg $(youtube-dl -g 'https://www.youtube.com/watch?v=Ymkl0t0FOcw' | sed "s/.*/-ss 00:00 -i &/") -t 06:48 -c copy out.mkv
aste code here

I never tried the last command ... it works!!.

Thanks.
1 Like