如何将Rtp组播流从DVB-T转换为HLS? [英] How to Convert Rtp Multicast Stream from DVB-T to HLS?

查看:675
本文介绍了如何将Rtp组播流从DVB-T转换为HLS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I use Mumudvb to get signal from dvb-t and dvb-s to RTP Multicast stream and successfully do that, The result stream URL is something like rtp://239.1.2.1:60001.

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

Now i want to know How can i convert RTP (Or UDP)stream to Http Live Stream (HLS)?

修改:

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

I could convert live stream with ffmpeg, but its not stable, when an error occurred in ffmpeg the conversation stop and there is no way to found fail and for example restart ffmpeg, I am looking for new way for that convert operation.

非常感谢

推荐答案

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

VLC can probably do this, something along the lines of:

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地址.

Substitute /path/to/stream* with whatever path you want to serve your playlist and segments from, and http://example.org with your machine's domain name or IP address.

请参阅以下命令行示例以获得进一步的指针.

See these command line examples for further pointers.

我不确定输入错误后VLC是否比ffmpeg更重试.无论如何,您都可以在发生故障行为后编写脚本,然后尝试重试,这是一个示例.

I'm not sure if VLC retries more gracefully after input errors than ffmpeg. In any case, you can script retry after failure behavior, here is one example.

这篇关于如何将Rtp组播流从DVB-T转换为HLS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆