I am using Ubuntu, and the youtube-dl
command is working absolutely fine.
However, now I want to download only a portion a video that is too long. So I want to download only a few minutes of that video, e.g. from minute 13 to minute 17.
Is there any way to do that?
Best Answer
I don't believe
youtube-dl
alone will do what you want. However you can combine it with a command line utility like ffmpeg.First acquire the actual URL using youtube-dl:
Copy the output of the command and paste it as part of the
-i
parameter of the next command:The
-ss
parameter in this position states to discard all input up until 15 seconds into the video. The-t
option states to capture for 10 seconds. The rest of the command tells it to store as an mp4.ffmpeg is a popular tool and should be in any of the popular OS repositories/package managers.