Question Regarding GStreamer Pipeline Graph

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Question Regarding GStreamer Pipeline Graph

mhassan
Hi there,

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:

"gstreamer::functions::debug_bin_to_dot_file" 

and called the function with the following parameters:

gst::debug_bin_to_dot_file(&pipeline, gst::DebugGraphDetails::ALL, "C:/tmp/out.dot")

but after launching the application, no files are generated. 
Any help would be appreciated. 

Thanks,
Hassan

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Question Regarding GStreamer Pipeline Graph

Sebastian Dröge-3
On Fri, 2021-03-12 at 17:05 +0500, Hassan Muhammad wrote:
Hi there,

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:

"gstreamer::functions::debug_bin_to_dot_file" 

and called the function with the following parameters:

gst::debug_bin_to_dot_file(&pipeline, gst::DebugGraphDetails::ALL, "C:/tmp/out.dot")

but after launching the application, no files are generated. 


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).

You can use gst::debug_bin_to_dot_data() to get a string and handle the writing yourself if you need more control. That function is also not affected by the environment variable.

-- 
Sebastian Dröge, Centricular Ltd · https://www.centricular.com


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Question Regarding GStreamer Pipeline Graph

mhassan
Thank you for your prompt response. I was able to use the gst::debug_bin_to_dot_data() function as per your suggestion to get a string and write a .dot file which I then converted to a graph.

On Fri, Mar 12, 2021 at 5:45 PM Sebastian Dröge <[hidden email]> wrote:
On Fri, 2021-03-12 at 17:05 +0500, Hassan Muhammad wrote:
Hi there,

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:

"gstreamer::functions::debug_bin_to_dot_file" 

and called the function with the following parameters:

gst::debug_bin_to_dot_file(&pipeline, gst::DebugGraphDetails::ALL, "C:/tmp/out.dot")

but after launching the application, no files are generated. 


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).

You can use gst::debug_bin_to_dot_data() to get a string and handle the writing yourself if you need more control. That function is also not affected by the environment variable.

-- 
Sebastian Dröge, Centricular Ltd · https://www.centricular.com

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel