Enable Logs

To enable the log function for GStreamer, follow the procedure below.
  1. Set environment variables.
    export GST_DEBUG=2
    Or specified before the command, and invalid after the end of the command.
    GST_DEBUG=2 gst-play-1.0
  2. Specify the log levels for each module.
    The following code block shows an example, fpsdisplaysink is specified as DEBUG (5), xvimage* is specified as FIXME (3), and the others are specified as WARNING (2).
    GST_DEBUG=2,fpsdisplaysink:5,xvimage*:3
    The following screen shows the GStreamer log levels in detail. For more information, see GStreamer Official Documentation on Environment Variables.
    Figure 1. GStreamer Log Levels