Repository navigation
Clips
Khryz-Navarro edited this page Nov 9, 2026
·
1 revision
Paste a YouTube clip link (youtube.com/clip/…) and get just that part of the video, not the whole thing. The file name shows where the clip comes from: Video Title (1:23–1:45).mp4.
- Recognizing a clip: yt-dlp recognizes clip links and reports the clip's start and end along with the original video. The preview can show "Clip, 1:23–1:45 of Video Title".
-
Downloading only the clip: check on the current yt-dlp whether it downloads just the clip by itself. If it doesn't, pass the times with
--download-sections "*START-END". That needs ffmpeg, which the app bundles. -
Where it goes in the code:
-
download_argsinsrc/ytdlp.rsgets the section option, before--like every other option. - The clip times come from yt-dlp's own lookup, never from the page.
- The
NAME|print line gains the start and end, sostyled_namecan add them in every file-name style.
-
- Quality choices: stay the same. Audio-only clips work too.
- Should clips be cut at the exact frame, which means re-encoding and is slower, or at the nearest keyframe, which is fast but can start a second early? yt-dlp has
--force-keyframes-at-cutsfor the exact cut. - Should a pasted clip link offer "download the whole video" as well?
- YouTube changes how clips are served from time to time. The feature depends on yt-dlp keeping up, which it does through its daily updates.
Phase 1: links you paste
Phase 2: tools for your files
Phase 3: new engines
Phase 4: beyond the desktop