[FFmpeg-devel] ffmpeg Filtergraph Output

Soft Works softworkz at hotmail.com
Sun May 24 05:43:52 EEST 2020


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: graph_example.jpg
Type: image/jpeg
Size: 40938 bytes
Desc: graph_example.jpg
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200524/7958cf1b/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg_filtergraph.json
Type: application/octet-stream
Size: 8504 bytes
Desc: ffmpeg_filtergraph.json
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200524/7958cf1b/attachment.obj>


More information about the ffmpeg-devel mailing list