使用GStreamer转发rtmp流

问题描述 投票:4回答:1

如何使用GStreamer转发RTMP流。以下内容不太有效:

gst-launch-1.0 rtmpsrc location="rtmp://localhost:1936/myapp/mystream" ! queue ! rtmpsink location="rtmp://localhost:1935/test/live"

带有以下debug messages

然后大约2分钟后:

Caught SIGSEGV
Spinning.  Please run 'gdb gst-launch-1.0 21031' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.
gstreamer rtmp live-streaming
1个回答
0
投票

看起来只有在再次进行多路复用和多路复用时,它才有效:

gst-launch-1.0 rtmpsrc location=rtmp://192.168.x.x/live/0 do-timestamp=true ! queue2 ! flvdemux name=demux \
    flvmux name=mux \
    demux.video ! queue ! mux.video \
    demux.audio ! queue ! mux.audio \
    mux.src ! queue ! rtmpsink location='rtmp://192.168.y.y/app'

在此页面上找到,它是管道示例的绝佳资源:http://www.francescpinyol.cat/gstreamer.html#gstreamer_from_rtmp

© www.soinside.com 2019 - 2024. All rights reserved.