I need to re-stream/mirror some HLS’s (HTTP Live Stream) using a Linux server.
From input
http://anystream.com/channel1.m3u8
To output
http://127.0.0.1/abc.m3u8
I found several media servers but they lack of documentation. (like crtmpserver or next gen media server)
But it doesn’t have to be a server solution, a how-to for ffmpeg or a PHP/Phyton script (if possible) would be great too.
Thank you in advance.
Best Answer
you can try
ffmpeg
- it does haveffserver
which allows to either prepare a local file for on-demand streaming, or you could also set the stream address as a source and re-broadcast it viaffserver
- I did a few tests a couple of years ago - including mplayer, which I used to get the stream, re-encode viaffmpeg
and push it toffserver
My idea of "rebroadcast" was to provide a local, stream server on LAN, and have the clients connect locally, instead opening 10-20 connections to the remote and killing the WAN.