Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to re-stream/mirror some HLS’s (HTTP Live Stream) using a Linux server.

From input

To output

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.

share|improve this question
up vote 0 down vote accepted

you can try ffmpeg - it does have ffserver 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 via ffserver - I did a few tests a couple of years ago - including mplayer, which I used to get the stream, re-encode via ffmpeg and push it to ffserver

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.

share|improve this answer

You can do that easlily with VLC. Just stream the link using the GUI, and as soon as you could be able to do this, you can extract the command line and run it as command line on your server. Result will be something like this:

vlc :sout=#http{mux=ffmpeg{mux=flv},dst=:8080/music} :sout-keep

But, be sure to use GUI and replace the streaming code yourself to get it easy.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.