title: Using FFMPEG to stream continuously videos files to a RTMP server
body: <p><code>ffmpeg</code> handles RTMP streaming as input or output, and it's working well.</p>
  
  <p>I want to stream some videos (a dynamic playlist managed by a python script) to a RTMP server, and i'm currently doing something quite simple: streaming my videos one by one with FFMPEG to the RTMP server, however this causes a connection break every time a video end, and the stream is ready to go when the next video begins.</p>
  
  <p>I would like to stream those videos without any connection breaks continuously, then the stream could be correctly viewed.</p>
  
  <p>I use this command to stream my videos one by one to the server</p>
  
  <pre><code>ffmpeg -re -y -i myvideo.mp4 -vcodec libx264 -b:v 600k -r 25 -s 640x360 \
  -filter:v yadif -ab 64k -ac 1 -ar 44100 -f flv \
  "rtmp://mystreamingserver/app/streamName"
  </code></pre>
  
  <p>I looked for some workarounds over the internet for many days, and i found some people talking about using a named pipe as input in <code>ffmpeg</code>, I've tried it and it didn't work well since <code>ffmpeg</code> does not only close the RTMP stream when a new video comes but also closes itself.</p>
  
  <p>Is there any way to do this ? (stream a dynamic playlist of videos with <code>ffmpeg</code> to RTMP server without connection breaks</p>