VVAS is based on GStreamer 1.22.12 and offers extensive debugging capabilities.
Enable GStreamer Debug Logs
GStreamer provides extensive logging capabilities that can be enabled through environment variables. To enable debug logs, set the GST_DEBUG environment variable.
export GST_DEBUG=3 # Set the debug level (0-5, where 5 is the most verbose)
GStreamer log levels:
0 - NONE
1 - ERROR
2 - WARNING
3 - INFO
4 - DEBUG
5 - LOG
You can also specify categories to limit the output to specific elements or components.
export GST_DEBUG=*:3,vvas_xinfer:5 # This will set log level 3 to each plugin in the pipeline and log level 5 to vvas_xinfer plugin
Run the GStreamer Pipeline with Debug Logs
Once the GST_DEBUG environment variable is set, run your GStreamer pipeline as usual. The debug logs will be printed to the console.
gst-launch-1.0 <pipeline>
Analyze the Debug Logs
The debug logs provide detailed information about the pipeline’s state, element interactions, and any errors or warnings. Look for messages that indicate issues, such as:
ERROR: Critical issues that need to be resolved.WARNING: Potential issues that might not stop the pipeline but could lead to problems.INFO: General information about the pipeline’s operation.DEBUG: Detailed debugging information.
VVAS Core Debug Logs
In addition to GStreamer debug logs, VVAS core libraries have their own logging mechanism controlled via environment variables.
Enable VVAS Core logs:
export VVAS_CORE_DEBUG=5 # Log level: 0=NONE, 1=ERROR, 2=WARNING, 3=FIXME, 4=INFO, 5=DEBUG
Route logs to a file:
export VVAS_CORE_LOG_FILE_PATH=$PWD/vvas_core.log
Route logs to console:
export VVAS_CORE_LOG_FILE_PATH=CONSOLE
By default, VVAS core logs are routed to syslog (/var/log/syslog or /var/log/messages).
Note
VVAS_CORE_DEBUG has higher precedence than the log level set by GStreamer plugins. You can override the default by setting this environment variable.
For more details on GStreamer debugging tools, refer to GStreamer Debugging Tools.