Open zxiiro opened 10 years ago
Another idea is maybe instead of extending plugins we can instead have a shared API which all output plugins can poll from to grab muxers and supported encoders for each muxer.
The output plugin will then just need to define what muxers it wants to support and the API would send back what encoders are supported by that muxer.
Today every output plugin defines it's own set of encoder for audio / video before mixing it into a muxer. This makes it hard to reuse encoder code as each plugin is essentially rewriting that part.
I think there should be a new "Encoder" Plugin type which can be reused by an output plugin. These encoders should be configurable options inside the output plugin.
Whether the "muxer" should be part of the encoder plugin is worth thinking of.