【问题标题】:How to Convert Rtp Multicast Stream from DVB-T to HLS?如何将 Rtp 多播流从 DVB-T 转换为 HLS?
【发布时间】:2017-08-03 17:10:51
【问题描述】:

我使用 Mumudvb 从 dvb-t 和 dvb-s 获取信号到 RTP 多播流并成功地做到了,结果流 URL 类似于 rtp://239.1.2.1:60001。

现在我想知道如何将 RTP(或 UDP)流转换为 Http Live Stream (HLS)?

编辑

我可以使用 ffmpeg 转换实时流,但它不稳定,当 ffmpeg 中发生错误时,对话停止并且无法发现失败,例如重新启动 ffmpeg,我正在寻找该转换操作的新方法。

非常感谢

【问题讨论】:

    标签: multicast rtp http-live-streaming dvb-t


    【解决方案1】:

    VLC 可能可以做到这一点,类似于:

    cvlc -vvv rtp://@239.1.2.1:60001
    --sout '#std{access=livehttp{seglen=5,delsegs=true,numsegs=5,
    index=/path/to/stream.m3u8,
    index-url=http://example.org/stream-########.ts},
    mux=ts{use-key-frames},
    dst=/path/to/stream-########.ts}'
    

    /path/to/stream* 替换为您想要提供播放列表和片段的任何路径,并将http://example.org 替换为您机器的域名或IP 地址。

    请参阅这些command line examples 以获取更多指示。

    我不确定 VLC 在输入错误后是否比 ffmpeg 更优雅地重试。在任何情况下,您都可以在失败行为后编写重试脚本,here is one example

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-06-26
      • 2013-05-09
      • 1970-01-01
      • 2020-06-02
      • 1970-01-01
      • 1970-01-01
      • 2018-09-26
      相关资源
      最近更新 更多