GStreamer Daemon - Enabling the Debug Subsystem

From RidgeRun Developer Connection
Revision as of 10:40, 31 March 2020 by Spalli (talk | contribs)
Jump to: navigation, search

Receiving Signals

Home

Low-level Implementation for Applications

This wiki shows how to enable the debug to a given pipeline. Sometimes the errors in a pipeline can be hard to debug, however that tool can enable and modify the level of the debug as your needed and debug a pipeline easier.

Enable Debug

Enable debug using the command shown below. The Debug takes the argument true or false.

debug_enable true/false 
       Enable debug of the pipeline.

Debug Level

Once the Enable debug is on true, the debug level can be set, that more level shows more debug. The Debug Level takes a keyword and the debug level in the argument.

debug_threshold threshold 
       Debug Level of the pipeline.

Enable Debug Colors

Sometimes analyze a log can be heavy or maybe bored, the debug color can be that task easier to search and found the error. Debug color takes true/false in the argument.

debug_color true/false 
       Debug Color of the pipeline.

For example:
Gstd Commands:

1 pipeline_create p1 videotestsrc ! autovideosink
2 pipeline_play p1
3 debug_enable true 
4 debug_threshold *sink*:6
5 debug_color true

will respectively

  1. Create a pipeline p1
  2. Put it to playing
  3. Enable debug
  4. Set the debug level on 6
  5. Enable the debug color

The debug command will typically fail for any of the following:

  • No pipeline was given
  • Wrong debug property

Alternatively, the debug can be enable using the low level CRUD syntax:
Gstd Commands:

1 update /debug/enable <true/false>
2 update /debug/threshold/ <value>
3 update /debug/color/ <true/false>

API Summary

High Level Command Low Level CRUD Description
debug_enable <true/false> update /debug/enable <true/false> Enable debug of the pipeline
debug_threshold <threshold> update /debug/threshold <threshold> Set the level of debug
debug_color <true/false> update /debug/color <true/false> Enable the color in debug




Receiving Signals

Home

Low-level Implementation for Applications