A command line tool for cutting videos into segments of a specified duration, ideal for WhatsApp statuses.
- Cut long videos into shorter segments.
- Specify the preferred duration for each segment.
- Multiple aliases
v-split
,v-splitter
,video-splitter
. - Choose whether to output segments in a separate folder or directly in the output directory.
- Ideal for creating videos suitable for WhatsApp statuses.
- Node.js (version 18.18.0 or higher)
- npm (version 9.8.1 or higher)
npm install -g video-splitter
v-split -v /path/to/video.mp4 -d 45 -o /path/to/output --no-folder
-v, --video <path>
: Path to the input video file.-d, --duration [seconds]
: Preferred duration for each trimmed segment in seconds (default is 30).-o, --output [path]
: Output folder path (default is current working directory).-c, --concurrency [count]
: Maximum number of concurrent trim operations.--no-folder
: Place output files directly in the output directory without creating a folder.
-
Trim a video into 45-second segments and place them directly in the output directory:
v-split -v /path/to/video.mp4 -d 45 -o /path/to/output --no-folder
-
Trim a video into 30-second segments 5 at a time and organize them in a separate folder:
v-split -v /path/to/video.mp4 -d 30 -c 5 -o /path/to/output
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or create a pull request.
This project is licensed under the MIT License.