【问题标题】:Gstreamer cant play stream from other pc: h264->rtp->udpGstreamer 无法播放来自其他电脑的流:h264->rtp->udp
【发布时间】:2022-05-10 20:13:33
【问题描述】:

我想通过 UDP 将 h264 视频流式传输到另一台电脑。 我正在使用这个管道来生成流:
videotestsrc ! video/x-raw,width=400,height=400,framerate=7/1 ! videoconvert ! x264enc ! h264parse config-interval=1 ! video/x-h264,stream-format=byte-stream,alignment=nal ! rtph264pay ! udpsink host=192.168.1.100 port=2705

我可以使用这条管道在同一台机器(IP 地址为 192.168.1.100)上玩这个:
udpsrc port=2705 ! application/x-rtp,width=400,height=400,encoding-name=H264,payload=96,framerate=7/1 ! rtph264depay ! h264parse ! avdec_h264 ! autovideosink

但是当我尝试将它从另一台电脑流式传输到同一台机器时,我只得到这个输出并且它会永远等待:
将管道设置为暂停 ...
管道是实时的,不需要 PREROLL ...
将管道设置为 PLAYING ...
新时钟:GstSystemClock
重新分配延迟...
重新分配延迟...

这可能是什么问题?

【问题讨论】:

    标签: udp gstreamer h.264 rtp


    【解决方案1】:

    我找到了解决方案。播放管道中需要一个 videoconvert 元素。
    正在运行的播放管道是:

    udpsrc port=2705 ! application/x-rtp,width=400,height=400,encoding-name=H264,payload=96,framerate=7/1 ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert ! autovideosink

    【讨论】:

      猜你喜欢
      • 2017-09-22
      • 1970-01-01
      • 1970-01-01
      • 2012-08-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多