【问题标题】:Forward rtmp stream with GStreamer使用 GStreamer 转发 rtmp 流
【发布时间】:2016-12-04 04:41:16
【问题描述】:

如何使用 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.

【问题讨论】:

  • 不确定该方法.. 但它在调试时输出什么(使用 GST_DEBUG=4)?
  • 添加了他们@otopolsky
  • 这些不是调试日志.. 像这样运行它:GST_DEBUG=4 gst-launch-1.0 ....
  • 抱歉@otopolsky 将它们链接在一个粘贴箱中,因为数量庞大。到目前为止无法真正解析出任何问题。
  • 看起来工作正常.. 那是什么问题?嗯,有一些延迟“标记待定 DISCONT”.. 但这是预期的

标签: gstreamer rtmp live-streaming


【解决方案1】:

看起来它只有在你再次 demux 和 mux 时才有效:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-31
    • 1970-01-01
    • 1970-01-01
    • 2020-03-23
    • 2014-04-26
    相关资源
    最近更新 更多