[FFmpeg-devel] ffmpeg Filtergraph Output

Dennis Mungai dmngaie at gmail.com
Sun May 24 05:55:43 EEST 2020


On Sun, 24 May 2020 at 05:44, Soft Works <softworkz at hotmail.com> wrote:

> Hello,
>
> I've seen the commit about the option for dumping the filtergraph and that
> reminded me about something that I'd be willing to contribute in case
> anybody likes it.
>
> A while ago I was looking for a way to get information about the
> filtergraphs that ffmpeg builds at runtime, the individual formats that
> have been negotiated between input and output pins and which filters have a
> hardware context.
>
> I had expected that this is what the graph2dot is intended to do, but that
> wasn't the case. Turning a filter string into a graph is not what I was
> looking for.
>
> Eventually I have implemented a feature that iterates all filters, their
> connections and the negotiated media formats during runtime and writes them
> out as json or xml (using the same methods that ffprobe uses).
>
> I have attached an example output and an image as an example for what
> could be done with the output.
>
> Let me know whether there's some interest in this.
>
> Regards
> Softworkz
>
> Direct links to the attachments:
> https://gist.github.com/softworkz/4f4bf2c1365d2ce3f6ac70b1b434aa40
> https://github.com/softworkz/ffmpegfiltergraphs/issues/1
>
>
>
This is very fascinating, thanks for working on this.
Such output would allow for troubleshooting filter performance, especially
in complex filter setups where hardware contexts are in use.


More information about the ffmpeg-devel mailing list