tags:

views:

18

answers:

1

How to view the output of functions like GST_CAT_INFO, GST_DEBUG etc? Do I need to compile gstreamer myself with debug level set or it can be done at application level?

+1  A: 

Debugging messages can be printed in stderr by using the GST_DEBUG environment variable (if gstreamer has been compiled with --enable-gst-debug, which is default).

For example: GST_DEBUG=audiotestsrc:5 gst-launch audiotestsrc ! fakesink will log everything (5) from the audiotestsrc element.

You can change your program debugging output at runtime using setenv("GST_DEBUG","cat:level...", 1)

Sometime reading GStreamer debugging can be tedious. You can give gst-debug-viewer a try.

You can read the Documentation for other details.

elmarco
cool! many thanks for the info. And this is how I redirected the output to a file.$ GST_DEBUG=audiotestsrc:5 gst-launch audiotestsrc ! fakesink 2> file.txtIt should help me in debugging gstreamer. And the good thing is it is working in windows also.However, I am not getting any output from gst-debug-viewer. it shows the following info. in the shell but does not show any output in its window, just empty columns.http://tinypic.com/r/io16xi/3
vivek.m
Hmm, I forgot to mention that gst-debug-viewer take output without colors.Try generating the log with GST_DEBUG_NO_COLOR=1
elmarco
yes, gst-debug-viewer works now. thanks.
vivek.m