https://github.com/guanzo/trim-merge
Trim and merge videos
https://github.com/guanzo/trim-merge
cli ffmpeg merge trim video
Last synced: 2 months ago
JSON representation
Trim and merge videos
- Host: GitHub
- URL: https://github.com/guanzo/trim-merge
- Owner: guanzo
- Created: 2018-06-06T07:46:26.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-02-13T09:03:25.000Z (over 1 year ago)
- Last Synced: 2025-04-06T03:06:11.105Z (3 months ago)
- Topics: cli, ffmpeg, merge, trim, video
- Language: JavaScript
- Size: 21.5 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Trim-Merge
##### Under active developmentTrim and - you guessed it - merge videos. There are a ton of tools out there that can trim and merge, so why use this? Trim-merge is focused, lightweight, and dead simple.
1. Download trim-merge and [ffmpeg](http://www.ffmpeg.org) if you don't already have it.
// TODO :)
2. Create a config.yml file that describes your inputs and outputs.
```yaml
# config.ymlclips:
- input: video.mp4
output: merged.mp4
clips:
- time: 00:05-00:10
- time: 00:15-00:20
``````
# Example directory:/Videos
-config.yml
-video.mp4
```
3. Run trim-merge.```
$ cd /Videos
$ trim-merge
``````
# Example directory:/Videos
-config.yml
-merged.mp4
-video.mp4
```NOTE: trim-merge requires ffmpeg to be installed and available as a PATH variable.
### But seriously, why should I use this?
All media editing tools can trim and merge videos, but they often times have lots of other features as well. If all you care about is trim/merge, these other features can get in the way. The GUI's are cluttered with buttons, menus, and widgets, causing you dig through the documentation or google for help. Trim-merge is focused solely on trimming and merging video.
If you need to trim a video multiple times, doing that with a GUI can be slow and repetitive. With trim-merge you define all your trim timestamps in a text file. This allows you to bypass the GUI and move as fast as you can with the keyboard, mouse, and good ole ```Ctrl + C```.
You might be thinking, "But guanzo, ffmpeg is much more powerful and I can automate ffmpeg commands with a script!".
...
:thumbsup: