Forum

Post a new question

Categories:

Tags:

stream in udp multicast from local loop file

Luc 2018-11-20 20:27:11 UTC in Nimble Streamer
7fe105568c672a3bb7d67cb8c7f4bf93

I'm searching a solution to stream endlessly a file in h.265 over multicast/udp in mpegts. Is this something nimble server could do? As I can see it doesn't appear to be possible

Denis Slobodskoy 2018-11-21 01:13:31 UTC
C723b4e32e1909d3d1b5519f98b586fe

You can use Live transcoder to produce stream from a file: https://blog.wmspanel.com/2017/01/bind-unsynced-video-audio-transcoder.html . However, it will need to be decoded and re-encoded continuously, so I would not recommend this. Instead, you can use FFmpeg to send stream from file:
ffmpeg -re -stream_loop -1 -i video_hevc.mp4 -c copy -f mpegts udp://ip:port
Notice that stream_loop has some issues with MP4 files, it's recommended to convert it to .ts first:
ffmpeg -i video.mp4 -c copy -f mpegts video.ts

Luc 2018-11-21 15:25:05 UTC
7fe105568c672a3bb7d67cb8c7f4bf93

Thanks for the reply. FFMPEG is what we currently use, but it doesn't output a compliance MPEGTS files. the timestamp is going backward everyloop and it make multiple pts error so the equippement that we use on the network doesn't like the mpegts/udp produced, so we are searching another solution. I saw multiple post that indicate FFMPEGhas MPEGTS packetizer broken. I was hoping to be able to try Nimble.

Denis Slobodskoy 2018-11-21 23:17:55 UTC
C723b4e32e1909d3d1b5519f98b586fe

In this case you can push stream to Nimble over RTSP and setup Nimble to send it over UDP, as described in this article: https://blog.wmspanel.com/2015/07/advanced-mpegts-delivery-udp-nimble-streamer.html
To push RTSP stream to Nimble you can use this command:
ffmpeg -re -stream_loop -1 -i video_hevc.ts -c copy -f rtsp -rtsp_transport tcp rtsp://nimble_ip:port/live/stream1

Post a reply



This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the Privacy Policy. If you want to know more or withdraw your consent to all or some of the cookies, please refer to the Privacy Policy.
By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to the use of cookies.