提问人:user2426998 提问时间:11/11/2023 更新时间:11/15/2023 访问量:66
srtsrc 元素的统计信息正在发送没有任何数据的消息
stats for srtsrc element is sending a message without any data
问:
需要从 gstreamer 1.22 版本的 srtsrc 元素获取并打印统计信息。最新版本使用此代码
GstStructure *stats;
g_object_get(source, "stats", &stats, NULL);
gchar *stats_str = gst_structure_to_string(stats);
std::cout << (stats_str ? stats_str : "null") << std::endl;
并收到此结果。只是这个结果,仅此而已。即使您流式传输到源元素,也不会发生任何更改。
application/x-srt-statistics, bytes-received-total=(guint64)0;
据文档所述,在 Gstreamer-java repo srt 中,这个问题可以提供更多信息,例如 msRTT 或带宽速率。 我们如何在 C++ 中获取统计数据?
答: 暂无答案
评论