Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Checklist
Description
I often need to download the whole video only to extract from it a short clip later, with
ffmpeg's-ssand-tkeys. Thus downloading the rest of the video is redundant, and consumes lots of traffic and disk space.For HLS videos, which are present on lots of supported sites including YouTube, only certain chunks
may be fetched if their timing is known. Thus the time range may be specified via CLI parameters, either the start point and the duration, or the start and end points.
youtube-dlshould automatically pick the smallest number of chunks that fit the specified range; optionally it also may pass the parameters toffmpegafter downloading, so it trims the unnecessary parts from the edge chunks. If the video is not chunked,youtube-dlmay fall back to downloading the whole video, or trigger an error.