简体   繁体   English

Gstreamer调试不起作用

[英]Gstreamer debug not working

I'm trying to debug an linux application that uses gstreamer library 0.10 but I can't get the gstreamer logs to work. 我正在尝试调试使用gstreamer库0.10的linux应用程序,但我无法使gstreamer日志正常工作。 Here's what I tried so far: 这是我到目前为止尝试过的:

export GST_DEBUG="*:6"

GST_DEBUG=*:6 ./app

I also tried to put the flag option in the pipeline creation: 我还尝试将标志选项放入管道创建中:

gst_parse_launch("appsrc name=myappsrc ! alsasink --gst-debug=*:6", NULL);

gst-launch doesn't work either I tried: 我尝试过gst-launch不起作用:

GST_DEBUG=6 gst-launch-0.10 filesrc location=out.opus ! oggdemux ! opusdec ! audioconvert ! alsasink

or 要么

gst-launch-0.10 filesrc location=out.opus ! oggdemux ! opusdec ! audioconvert ! alsasink --gst-debug-level=6

I wasted a lot of time on this, some help would be very appreciated. 我在此上浪费了很多时间,非常感谢您的帮助。

enable debugging for all elements : 对所有元素启用调试:

gst-launch --gst-debug-level=5 videotestsrc ! autovideosink

enable debugging only for one element: 仅对一个元素启用调试:

export GST_DEBUG=videoscale:5
gst-launch videotestsrc ! videoscale ! ffmpegcolorspace ! video/x-raw-gray, width=640,height=512 ! ffmpegcolorspace ! autovideosink

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM