How to download a specific part of YouTube video?

I want to download a part of a long video - about one hour and a half - but i don’t know how and the apps which use command line makes me so confused , Right now iam using Seal which is only available for android , And for Windows iam using nothing actually.

So is there anyway to download a specific part of YouTube video using Seal or another trusted app ???

I don’t know of a way to do this.

Normally I just use yt-dlp to download the whole video and rencode with ffmpeg, using the -ss and -t options. Eg:

  1. Download

  2. Re-encode from a particular time code to webm format.
    Cut a particular segment from the video.

    ffmpeg -ss 00:00:06 -i input.mp4 -t 00:00:21 \
           -c:v libvpx -crf 4 -b:v 1M -c:a libvorbis output.webm

    Alternatively, instead of ogg/webm you might want to use a better codec like H264, or H265.

    Or, copy without re-encoding:

    ffmpeg -i input.mp4 \
           -c:v copy -c:a copy output.webm
  3. Alternatively use -an to strip audio from the video

I use Freetube for Windows, you can easily download the entire video but you’ll have to edit it afterwards with some video editing software if you want to cut only a specific part.

Seems this can be done with just yt-dlp, if the video has sections:

[–]Empty_Change 2 points 7 hours ago


Use --download-sections to specify the range (prefixed with *):

yt-dlp --download-sections '*4:45:00-5:00:00' ''

obviously replace the time and url with whatever you want. The video has to be re-encoded, which might take some time, but since you said your internet is slow it is likely bottlenecked by the internet bandwidth anyways.

1 Like