如何查看gstreamer调试输出? [英] How do I view gstreamer debug output?

查看:574
本文介绍了如何查看gstreamer调试输出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何查看GST_CAT_INFO,GST_DEBUG等功能的输出? 我需要使用调试级别集自己编译gstreamer还是可以在应用程序级别完成编译?

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?

推荐答案

可以使用GST_DEBUG环境变量在stderr中打印调试消息(如果gstreamer已使用--enable-gst-debug编译,则为默认设置).

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).

例如:GST_DEBUG=audiotestsrc:5 gst-launch audiotestsrc ! fakesink将记录来自audiotestsrc元素的所有内容(5).

For example: GST_DEBUG=audiotestsrc:5 gst-launch audiotestsrc ! fakesink will log everything (5) from the audiotestsrc element.

您可以使用setenv("GST_DEBUG","cat:level...", 1)

有时阅读GStreamer调试可能很乏味.您可以尝试 gst-debug-viewer .

Sometime reading GStreamer debugging can be tedious. You can give gst-debug-viewer a try.

您可以阅读文档以获取其他详细信息.

You can read the Documentation for other details.

这篇关于如何查看gstreamer调试输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆