This project shows how to generate a .dot file for a GStreamer pipeline and visualize it using Graphviz. It helps you inspect and debug GStreamer pipeline structures.
- Create a GStreamer pipeline in C.
- Set the
GST_DEBUG_DUMP_DOT_DIRenvironment variable. - Run the application.
- GStreamer generates a
.dotfile representing the pipeline. - Convert the
.dotfile to a.pngusing Graphviz (dot -Tpng).
- GStreamer (with
gst-launch-1.0) - Graphviz (
dotcommand) - GCC
export GST_DEBUG_DUMP_DOT_DIR=./
./main
dot -Tpng pipeline.dot -o pipeline.png