If your application generates output, you can redirect it to Syslog as follows: MY_APP=gst-render$MY_APP| logger -t"$MY_APP:" Generated files debug There are some tools that can be used for getting information from generated files by GStreamer: ...
gst_message_parse_error(msg, &err, &debug_info); g_printerr("Error received from element %s: %s\n", GST_OBJECT_NAME(msg->src), err->message); g_printerr("Debugging information: %s\n", debug_info ? debug_info : "none"); g_clear_error(&err); g_free(debug_info); break; case ...
To enable debug output, set the GST_DEBUG environment variable to the desired debug level. All levels below that will also be shown (i.e., if you set GST_DEBUG=2, you will get both ERROR and WARNING messages). Furt...
g_free (debug);g_main_loop_quit (loop); break; } case GST_MESSAGE_EOS: /* end-of-stream */ g_main_loop_quit (loop); break; default: /* unhandled message */ break; }/* we want to be notified again the next time there is a message ...
如果应用程序出错,请提供gst调试日志。您可以通过设置 GST_DEBUG=*:6 环境变量和 GST_DEBUG_FILE=/tmp/dbg.log 来获得一个/数据库日志. 最终生成的文件可能非常大,因此建议使用 xz -9 /tmp/dbg.log 对其进行压缩/数据库日志在分享之前。还可能要求您提供特定调试类别的调试日志,而不是所有内容 (*:6)。
#include gst/gst.h static GMainLoop *loop; static gboolean my_bus_callback (GstBus *bus, GstMessage *message, gpointer data) { g_print (Got %s message\n, GST_MESSAGE_TYPE_NAME (message)) ; switch (GST_MESSAGE_TYPE (message)) { case GST_MESSAGE_ERROR: { GError *err; gchar *debug...
print(f"Debugging information: {debug['debug']}") elif msg.type == Gst.MessageType.EOS: print("End-Of-Stream reached (This should not happen in a live camera stream)") # 结束推流(例如:当需要停止时) pipeline.set_state(Gst.State.NULL) ...
(0x00000002):udp-mcast-GST_RTSP_LOWER_TRANS_UDP_MCAST(0x00000004):tcp-GST_RTSP_LOWER_TRANS_TCP(0x00000010):http-GST_RTSP_LOWER_TRANS_HTTP(0x00000020):tls-GST_RTSP_LOWER_TRANS_TLSdebug:Dump request and response messages tostdout(DEPRECATED:Printed allRTSPmessage to gstreamer logas'log'level)...
#include gst/gst.h static GMainLoop *loop; static gboolean my_bus_callback (GstBus *bus, GstMessage *message, gpointer data) { g_print (Got %s message\n, GST_MESSAGE_TYPE_NAME (message)); switch (GST_MESSAGE_TYPE (message)) { case GST_MESSAGE_ERROR: { GError *err; gchar *debug;...
#define CAPS "video/x-raw,format=RGB,pixel-aspect-ratio=1/1" GST_DEBUG_CATEGORY_STATIC(my_...