stryku / ffcms Goto Github PK
View Code? Open in Web Editor NEWFFmpeg's `-filter_complex` made simple
License: MIT License
FFmpeg's `-filter_complex` made simple
License: MIT License
In your example, instead of repeating the same input 4 times, you can make it more concise by just using the split
filter to make multiple copies of the same input:
ffmpeg -f lavfi -i testsrc -filter_complex \
"[0:v]split=4[v2][v3][v4],negate[a]; \
[v2]hflip[b]; \
[v3]edgedetect[c]; \
[v4][a]hstack=inputs=2[top]; \
[b][c]hstack=inputs=2[bottom]; \
[top][bottom]vstack=inputs=2[out]" -map "[out]" -c:v ffv1 -t 5 multiple_input_grid.avi
Cool tool! Cheers
This looks like a really cool project. We ended up doing something very similar as part of an effort to build a video editor in the browser. You can see our format documented at https://github.com/ThreadsStyling/video-renderer/blob/master/docs/shared.md I wonder if it would be worth establishing some kind of standard for "Complex filters represented as JSON" as I can imagine there being lots of use cases for this.
At this point, ffcms
handles only JSON format. I (and people around) am thinking that JSON is not so good to be edited by humans. So, I think about accepting one more language: TOML. If you have any thought (or like the idea), leave a comment.
With --run
argument present, ffcms
would execute the command right away, not only print it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.