Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wkentaro/video-cli
Command line tools for quick video editing.
https://github.com/wkentaro/video-cli
cli command-line python video
Last synced: 13 days ago
JSON representation
Command line tools for quick video editing.
- Host: GitHub
- URL: https://github.com/wkentaro/video-cli
- Owner: wkentaro
- Created: 2020-03-26T17:14:47.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-20T18:31:15.000Z (over 2 years ago)
- Last Synced: 2024-10-17T15:07:25.411Z (27 days ago)
- Topics: cli, command-line, python, video
- Language: Python
- Homepage:
- Size: 1.27 MB
- Stars: 131
- Watchers: 3
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Video-cli is made aiming at editing video with a one-line
command on a terminal. More detailed video editing can be done with
other Python tools (e.g., [MoviePy](https://github.com/Zulko/moviepy))
and GUI video editors (e.g., [iMovie](https://www.apple.com/imovie/)),
which is not the goal of this tool.## Installation
```bash
pip install video-cli
```## Commands
### `video-retime`: **Video Retiming (Speed Up/Down)**
```bash
video-retime data/2018-11-02_14-44-14.mp4 --retime 2
video-retime data/2018-11-02_14-44-14.mp4 --retime 2 --inplace
```### `video-togif`: **Create a GIF**
```bash
video-togif data/2018-11-02_14-44-14.mp4 --fps 2 --duration 5
video-togif data/2018-11-02_14-44-14.mp4 --fps 2 --duration 5 --resize 0.5
```### `video-trim`: **Video Triming**
```bash
video-trim data/2018-11-02_14-44-14.mp4 --start 3 --duration 5
```### `video-tile`: **Video Tiling**
```bash
video-tile data/2018-11-02_14-44-14.mp4 data/2018-11-02_14-44-14.mp4 --shape 1x2 -o tile.mp4
```### `video-toimg`: **Convert a Video to Images**
```bash
video-toimg data/2018-11-02_14-44-14.mp4 --per 10 --start 3 --duration 10
```### `video-tovideo`: **Convert to Video**
```bash
video-tovideo data/2018-11-02_14-44-14.mp4
```### `video-resize`: **Video Resizing**
```bash
video-resize data/2018-11-02_14-44-14.mp4 --scale 0.5
```### `video-fromimg`: **Create a Video from Images**
```bash
video-toimg data/2018-11-02_14-44-14.mp4
video-fromimg --input-files "data/2018-11-02_14-44-14/*.jpg" --fps 30 out.mp4
```### `video-crop`: **Crop a region of a Video**
```bash
video-crop data/2018-11-02_14-44-14.mp4
```