Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lukasjhan/ffmpeg-cmd
Typescript ffmpeg command builder
https://github.com/lukasjhan/ffmpeg-cmd
Last synced: 12 days ago
JSON representation
Typescript ffmpeg command builder
- Host: GitHub
- URL: https://github.com/lukasjhan/ffmpeg-cmd
- Owner: lukasjhan
- Created: 2022-06-02T09:39:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-24T00:25:08.000Z (almost 2 years ago)
- Last Synced: 2024-10-24T08:52:37.769Z (2 months ago)
- Language: TypeScript
- Homepage:
- Size: 65.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# FFmpeg Command Generator
This library provides a simple API for generating FFmpeg commands in TypeScript, Rust, and Go. It is designed to make it easy to create complex FFmpeg commands programmatically, without needing to remember all the command-line options and arguments.
## Usage
```ts
const input = ffmpeg.input('hi.mp4');
const image = ffmpeg.input('hi.png');
const filter = ffmpeg.filter([input, image], 'overlay');
const output = filter.output('output.mp4');
output.compile().join(' ');
// ffmpeg -hide_banner -i hi.mp4 -i hi.png -filter_complex [0][1]overlay[s0] -map [s0] output.mp4 -y
```