Showing posts from June, 2019

How to download a portion of Youtube Video with youtube-dl

First make you have both youtube-dl and ffmpeg installed:

sudo apt install youtube-dl ffmpeg

Then download a portion of your desired YouTube Video with the following command:

-ss 00:15 --> skip first 15 seconds of video
-t 00:45 --> record for 45 seconds

ffmpeg $(youtube-dl -g '' | sed "s/.*/-ss 00:15 -i &/") -t 00:45 -c copy video.mkv