Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/soixantecircuits/etna
A tool for video editing with a json file
https://github.com/soixantecircuits/etna
automation ffmpeg nuke spacebro vfx video video-editing
Last synced: about 2 months ago
JSON representation
A tool for video editing with a json file
- Host: GitHub
- URL: https://github.com/soixantecircuits/etna
- Owner: soixantecircuits
- Created: 2015-12-03T15:34:15.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2023-03-07T17:09:01.000Z (almost 2 years ago)
- Last Synced: 2024-04-09T21:05:02.565Z (10 months ago)
- Topics: automation, ffmpeg, nuke, spacebro, vfx, video, video-editing
- Language: JavaScript
- Size: 8.44 MB
- Stars: 3
- Watchers: 10
- Forks: 2
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A cli tool to do video editing using [spacebro](https://github.com/spacebro/spacebro)
Made with nodejs and ffmpeg.# How to
## Requires
Install ffmpeg
`
sudo add-apt-repository ppa:kirillshkrogalev/ffmpeg-next && sudo apt-get update -qq
sudo apt-get update
sudo apt-get install ffmpeg
`Install npm packages
```
npm i
```If you need to change settings,
Copy settings.default.json to settings.json```
cp settings/settings.default.json settings/settings.json
```And edit settings.json
You can also change settings with argv parameters.
Learn more about this on [standard-settings](https://github.com/soixantecircuits/standard-settings)## Spacebro
You can use etna by sending commands via spacebro.
The example above watermarks a video.The watermark recipe is in the `basic.js` file.
```
spacebroClient.emit('new-media-for-etna', {
recipe: 'watermark',
input: 'example/calculatedmovements.mp4',
params: {watermark: 'example/pacman.mov'}
})```
For a full working example, look at `test/simpletest.js`
Start etna:
```
node index.js
```and start the example script
```
node test/simpletest.js
```## Recipes
A recipe is an operation on the input media. Like the watermark above, or a crop, or anything you could do on a video or image.
All recipes are in the `recipes` folder. A recipe is a named function you can export from within the recipes folder.
To use a recipe, mention in in the media sent on spacebro, or in the settings.## Thumbnail
You often need a thumbnail of the video generated.
If so, you can add in the media meta:```
meta: {
thumbnail: {
position: '50%'
}
```Position can be either a float representing a time in seconds, or a percent of the video duration.
## Command-line
You can use etna with the command line with a json file.
You can try the example with```
node index.js -f example/edit.json
```