klips
is a collection of script utils for video manipulation.
Clone this repository
git clone https://github.com/specialgee/klips.git
Add scripts to your shell configuration file (.bashrc
, .zshrc
) i.e.
source "/path/to/your/script.sh"
extract gif from video
uses FFmpeg filter from GIPHY: how-to-make-gifs-with-ffmpeg
gif input output start end fps width
-input video input path
-output gif output path
-start start time in seconds/timestamp
-end end time in duration/timestamp
-fps framerate
-width output image width
chop video
chop input output start end fps width
-input video input path
-output video output path
-start start time in seconds/timestamp
-end end time in timestamp
-fps framerate
-width output video width
extract one frame from video
frame input timestamp output
-input video input path"
-output video output path"
-time frame position timestamp"
scale input to specific size
scale input output width height
-input video input path"
-output video output path"
-width scaled width size"
-height scaled height size"
transform a video file with 16:9 aspect ratio into 4:3
vx input output
-input file input path
-output file output path
transcode video to constant framerate
cfr input output fps
-input file input path
-output file output path
-fps framerate
download audio/video from Youtube with youtube-dl
yt [format] url
-url youtube video url
-format currently supported: mp3, mp4
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.