An open API service indexing awesome lists of open source software.

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.

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
```
### Cut

Cut 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}
```