c++ - 如何从 GStreamer 中的应用程序获取事件?

标签 c++ linux gstreamer

我将事件发送到管道:

GstElement* pipeline = gst_pipeline_new();
GstEvent*  event = gst_event_new_eos();
gst_element_send_event(pipeline, event);

如何管道获取(处理)发送的eos事件。非常感谢!

最佳答案

您需要在 GstBus (gst_pipeline_get_bus) 上监听 GstMessage。当流到达结束时,将发出 GST_MESSAGE_EOS。

关于c++ - 如何从 GStreamer 中的应用程序获取事件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9495448/

相关文章:

android - 当前目录上的符号链接(symbolic link)级别太多?

gstreamer - Stagefright vs Gstreamer

linux - Gstreamer,如何将输出路由到文件而不是帧缓冲区

Windows 和 Linux 之间的 C++ 可移植性

c++ - char数组字符串混淆

c++ - 接收控制台输出

c++ - 不使用 goto 退出嵌套循环

Ruby 或 Bash 或 Grep 正则表达式不适用于 '?',即前一个字符出现 0 次或 1 次

linux - 批处理文件不允许我登录

c - Gstreamer 教程给出了扭曲/扭曲的视频