[FFmpeg-devel] [RFC] Scripting filter and foreign language bindings
stefasab at gmail.com
Mon Jan 14 00:43:50 CET 2013
in many applications it is useful to perform very specific tasks
e.g. to coordinate events in a filtergraph.
For example, a filter may want to stop/start a stream depending on
some external conditions (e.g. according to the result of inspecting
the filesystem, or accessing an external DB, etc.). For such needs
having a scripting engine in the filtergraph would be the best
solution, since it would allow to write the logic in a compact way,
relying on scripting and (possibly) external libraries with no need to
hack/recompile the library.
Thus I'm considering to write a scripting filter as a proof of
concept. The filter should be able to load a program specified in the
given script, which would provide hooks for the usual callbacks,
should be able to process data, process and send events, call a given
subsets of the public and private libav* API and such.
I'm considering to try at first with Lua, since it seems it was
designed with the objective of being easily embeddable in C, but if
the experiment works nothing prevents us to extend the idea to other
Sending this email in case someone has ideas or recommendations to
FFmpeg = Forgiving and Frenzy Mysterious Perennial Erotic Gymnast
More information about the ffmpeg-devel