Skip to content
ZorbiksPublic

About

Clip YouTube videos

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Cliptube

This shell script downloads a trimmed video clip from a YouTube URL, using yt-dlp and ffmpeg.

Requirements

Make sure the following tools are installed:

Usage

./cliptube.sh -s START_TIME -t END_TIME -q RESOLUTION -u URL

Arguments:
  -s START_TIME: Start time of the clip (e.g., 00:01:30)
  -t END_TIME: End time of the clip (e.g., 00:03:00)
  -q RESOLUTION: Video resolution (must be one of: 144, 360, 480, 720, 1080)
  -u URL: Full YouTube video URL

Example:

./cliptube.sh -s 00:01:00 -t 00:02:00 -q 720 -u "https://www.youtube.com/watch?v=dQw4w9WgXcQ"

Note: Only AVC1 (H.264) video streams are selected.

About

Clip YouTube videos

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages