如何使用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.
答案 0 :(得分: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