- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在用 C 做一个 Gstreamer 1.0 应用程序。
管道是根据运行时的用户配置和系统“状态”构建的。
因此,我使用了多个 GstElements,这些 GstElements 稍后添加并链接到“GstElement 管道”。
这是一个更好地理解的最小示例:
GstElement *pipeline = gst_pipeline_new("mypipeline");
...
GstElement *src = gst_element_factory_make("videotestsrc", NULL);
...
gst_bin_add_many(GST_BIN(pipeline), src, enc, pay, NULL);
gst_element_link_many(src, enc, pay, NULL);
...
gst_rtsp_media_factory_set_launch
函数只接受
const gchar *
管道。
GstElement *pipeline
到 const gchar*
表示(有点反向 gst_parse
)GstElement *pipeline
启动 GstRTSPMediaFactory (请参阅下面的编辑#1)The default implementation of GstRTSPMediaFactory allows you to easily create GStreamer pipelines using the gst-launch syntax. It is possible to create a GstRTSPMediaFactory subclass that uses different methods for constructing pipelines.
最佳答案
是的,gst-rtsp-server
存储库有 an example在其子文件夹示例中。总结一下:创建 GstRTSPMediaFactory
的子类并覆盖 create_element()
虚方法。
顺便说一句,这也意味着您之前提供的 2 个选项不正确;
- transforming the GstElement pipeline to a const gchar representation (kinda reverse gst_parse)
- or launching the GstRTSPMediaFactory from a GstElement *pipeline (see edit #1 below)
GstRTSPMediaFactory
推出
GstPipeline
基于您的
get_element()
执行。反之亦然,每个管道都启动自己的 RTSP 服务器。
关于c - 从 GstElement 管道启动 GstRTSPServer,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47269193/
如何向现有管道添加过滤器。 目前我正在使用现有的视频文件,然后使用 gst_parse_launch 处理它 gst_parse_launch("-v -m -t filesrc location=.
我正在用 C 做一个 Gstreamer 1.0 应用程序。 管道是根据运行时的用户配置和系统“状态”构建的。 因此,我使用了多个 GstElements,这些 GstElements 稍后添加并链接
我是一名优秀的程序员,十分优秀!