Video processing CLI tool for creating vertical (9:16) clips with watermark and optional subtitles.
./clip.sh <input> [options]| Option | Description | Example |
|---|---|---|
--clip "START END" |
Time range to extract | --clip "0 30" or --clip "05:58 06:00" |
--crop left|center|right |
Crop horizontal position | --crop left |
--subtitle |
Generate auto subtitles | --subtitle |
--watermark "TEXT" |
Custom watermark (default: "obrolan_clip") | --watermark "mytext" |
# Local file
./clip.sh video.mp4
# Clip a local file (seconds)
./clip.sh --clip "0 30" video.mp4
# Clip a local file (timestamp)
./clip.sh --clip "05:58 06:00" video.mp4
# YouTube video (full)
./clip.sh "https://youtu.be/XXXXX"
# YouTube video with clip
./clip.sh --clip "0 30" "https://youtu.be/XXXXX"
# Regular URL
./clip.sh "https://example.com/video.mp4"
# With crop, subtitles, and custom watermark
./clip.sh --clip "0 30" --crop center --subtitle --watermark "mytext" video.mp4Generated videos are saved to result/ directory with clip- prefix.