3 ms·
What's your opinion on libraries like python-ffmpeg that allow you to build filter graphs programmatically with tree-like data structures?
by heavyset_go 4y ago
What's your opinion on libraries like python-ffmpeg that allow you to build filter graphs programmatically with tree-like data structures?
- zackoverflow 4y agoI haven't played around much with ffmpeg-python, I used to use fluent-ffmpeg for a bit. They're an improvement over writing raw command strings, but they lack static analysis features to verify the correctness of your command at compile time. There's only so much you can do with the constraints of general programming languages. I'm going to add the ability to export graphs as ffmpeg-python/fluent-ffmpeg code, and to import a graph from ffmpeg-python/fluent-ffmpeg code as well.
- TsiCClawOfLight 4y agoIn something like Haskell or OCaml, it would be possible to verify the tree/graph at compile the time. That's why functional languages with powerful (or even dependent) type systems are so popular!