How to Convert Rtp Multicast Stream from DVB-T to HLS?

↘锁芯ラ 提交于 2019-12-11 01:55:15

问题


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.

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

Edit:

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.

Thanks a lot


回答1:


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}'

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.

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.



来源:https://stackoverflow.com/questions/35134894/how-to-convert-rtp-multicast-stream-from-dvb-t-to-hls

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!