https://github.com/dbelyaeff/video-splitter
This command line app can split any video by given timecodes.
https://github.com/dbelyaeff/video-splitter
Last synced: 3 months ago
JSON representation
This command line app can split any video by given timecodes.
- Host: GitHub
- URL: https://github.com/dbelyaeff/video-splitter
- Owner: dbelyaeff
- Created: 2023-05-03T18:46:04.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-24T15:51:35.000Z (about 1 year ago)
- Last Synced: 2025-01-24T15:34:58.421Z (4 months ago)
- Language: PHP
- Size: 18.1 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Video Splitter
This app gives user simple command line interface to split video files by timecodes (Youtube-like).
## Installation
1. Clone the repository locally.
2. Build app with command `./video-splitter app:build`.
3. Copy binary from `./builds/video-splitter` to `/usr/local/bin/video-splitter` (with `sudo`).
4. Set permission to the executable file if needed.## Usage
Once installed, it can be used anythere.
### Split
```bash
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* in `cwd`)
* `suffix` (optional) is a output chapters filename suffix (before the extension). Can be set by environmental variable `VIDEO_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
```
### CutCut a fragment by given timecodes.
```bash
video-splitter cut videofile [from] [to] [output?]
```### Frame
Save frame by given timecodes.
```bash
video-splitter frame videofile [timecode] [output?]
```### Mp3
Converts video to mp3.
```bash
video-splitter mp3 videofile {--title} {--artwork} {--artist} {--description} {--album} {--year}
```