Simple shell script to help download parts of YouTube videos in high quality using youtube-dl.
Uses commands described in this StackExchange answer.
Only requires YouTube URL, start timestamp, and length of clip. Can also specify what name to save the video as.
Current script only downloads as .mp4
. Function verified on Windows 10.
Download youtube-dl. Place download.sh
in the same directory as youtube-dl.exe
. Run the shell script. Demonstration below:
The finished video will save in the same directory as download.sh
and youtube-dl.exe
.
Inputting a simple number like 12
equates to 00:00:12
(12 seconds) for the start time/duration.
- End timestamp function
- Ability to choose file extension (even audio?)