This app gives user simple command line interface to split video files by timecodes (Youtube-like).
- Clone the repository locally.
- Build app with command
./video-splitter app:build
. - Copy binary from
./builds/video-splitter
to/usr/local/bin/video-splitter
(withsudo
). - Set permission to the executable file if needed.
Once installed, it can be used anythere.
video-splitter split videofile [timecodes] [suffix]
videofile
(required) is a path to the source video file (just filename if cwd or absolute path)timecodes
(optional) is a string with timecodes or path to timecodes file (default: timecodes.txt incwd
)suffix
(optional) is a output chapters filename suffix (before the extension). Can be set by environmental variableVIDEO_SPLITTER_DEFAULT_FILENAME_SUFFIX
in your shell config file (like~./zshrc
)
Timecodes
String or file must looks like
00:00 First chapter
05:32 Second chapter
...
NN:NN N-chapter
Cut a fragment by given timecodes.
video-splitter cut videofile [from] [to] [output?]
Save frame by given timecodes.
video-splitter frame videofile [timecode] [output?]
Converts video to mp3.
video-splitter mp3 videofile {--title} {--artwork} {--artist} {--description} {--album} {--year}