<html><head></head><body><div>On Fri, 2021-03-12 at 17:05 +0500, Hassan Muhammad wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr">Hi there,<div><br></div><div>I have a question regarding generating .dot file for my gstreamer pipeline. I am trying to build an application in gst-rust bindings with webrtc and would like to visualize my dynamic pipeline. I've set the appropriate environment variable however, the .dot files are only generated when using the "gst-launch" command from the terminal. I also looked into the documentation for:</div><div><font face="monospace"><br></font></div><div><font face="monospace">"gstreamer::functions::debug_bin_to_dot_file" </font></div><div><font face="monospace"><br></font></div><div>and called the function with the following parameters:</div><div><br></div><div><font face="monospace">gst::debug_bin_to_dot_file(&pipeline, gst::DebugGraphDetails::ALL, "C:/tmp/out.dot")</font></div><div><br></div><div>but after launching the application, no files are generated. </div></div></blockquote><div><br></div><div>Please check the C documentation here: <a href="https://gstreamer.freedesktop.org/documentation/gstreamer/gstdebugutils.html?gi-language=c#GST_DEBUG_BIN_TO_DOT_FILE">https://gstreamer.freedesktop.org/documentation/gstreamer/gstdebugutils.html?gi-language=c#GST_DEBUG_BIN_TO_DOT_FILE</a></div><div><br></div><div>In short, you need to set an environment variable for defining the directory where the .dot files should be dumped and then the filename you provide to the function call is really just a filename (prefix).</div><div><br></div><div>You can use <font face="monospace">gst::debug_bin_to_dot_data()</font> to get a string and handle the writing yourself if you need more control. That function is also not affected by the environment variable.</div><div><br></div><div><span><pre>-- <br></pre><div data-evo-paragraph="" class="" style="width: 71ch;" data-evo-signature-plain-text-mode="">Sebastian Dröge, Centricular Ltd · <a href="http://www.centricular.com">https://www.centricular.com</a></div><div data-evo-paragraph="" class="" style="width: 71ch;"><br></div></span></div></body></html>