Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I view gstreamer debug output?

Tags:

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?

like image 850
vivek.m Avatar asked Jul 21 '10 12:07

vivek.m


People also ask

How do I get GStreamer logs?

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.

What is GStreamer pipeline?

GStreamer is a pipeline-based multimedia framework that links together a wide variety of media processing systems to complete complex workflows. For instance, GStreamer can be used to build a system that reads files in one format, processes them, and exports them in another.

How do I learn GStreamer?

Firstly, I think the best way to learn Gstreamer is to use Community. There are many developers who works for companies like RidgeRun, Samsung, Collabora, Igalia. These companies extensively use Gstreamer in projects for thousands of people and they could help to solve some of your issues.


1 Answers

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.

like image 127
elmarco Avatar answered Oct 10 '22 02:10

elmarco