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:
-
Download
yt-dlp https://example.com
-
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
-
Alternatively use
-an
to strip audio from the video