Skip to content

Debug a gst pipeline

Anselmo Battisti edited this page Oct 8, 2019 · 3 revisions

To generate an image like the above image from the pipeline of your code you can follow the above steps.

  1. export GST_DEBUG_DUMP_DOT_DIR=/tmp
  2. inside your c code place this line before the command tha plays the pipeline
  3. GST_DEBUG_BIN_TO_DOT_FILE(GST_BIN(pipeline), GST_DEBUG_GRAPH_SHOW_VERBOSE, "pipeline");
  4. Run the program
  5. Access the /tmp folder, should be a file called pipeline.dot
  6. install the xdot script and run xdot pipeline.dot