如果管道具有元素 tcpclientsink + tcpclientsrc,则 GStreamer RTSP 服务器不输出视频

问题描述

在管道中,我想通过 TCP(使用 tcpclientsink)将数据包发送到第二台服务器,然后也将它们取回。

这与 gst-launch-1.0 完美配合,但是在 RTSP Media factory 动态管道中实现时,不会返回任何视频。

当通过管道连接到服务器时,RTSP 服务器当前可以将视频输出显示到 VLC 中:

"( rtspsrc location=\"x\" protocols=\"tcp\" ! parsebin ! decodebin ! x264enc key-int-max=10 bitrate=512 pass=0 tune=zerolatency speed-preset=ultrafast ! rtph264pay name=pay0 config-interval=1 )"

但是当我尝试通过第二个服务器路由数据包时,没有任何反应,服务器运行没有错误,但是 VLC 永远加载或有时超时。

"( rtspsrc location=\"x\" protocols=\"tcp\" ! parsebin ! decodebin ! x264enc key-int-max=10 bitrate=512 pass=0 tune=zerolatency speed-preset=ultrafast ! rtph264pay name=pay0 config-interval=1 tcpclientsink host=127.0.0.1 port=8082 tcpclientsrc host=127.0.0.1 port=8083 )"

第二个服务器管道目前是一个基本的静态管道,具有以下内容

"( tcpserversrc host=127.0.0.1 port=8082 ! tcpserversink host=127.0.0.1 port=8083 )"

RTSP 服务器是否会自动添加接收器元素,但是当我添加 tcpclientsink 元素时它会被删除

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)