FFMPEG RTSP -> MPEG-DASH Stops on Long Streams I need to provide MPEG-DASH live content generation from several IP cameras.

I use ngx_rtmp_module + ffmpeg for creating MPEG DASH content.
Everything work fine, but if I leave the conversion running for long periods of time, ffmpeg stops working after 1-2 days (sometimes early, sometimes later).

This is the ffmpeg command I'm using:

ffmpeg -re -f rtsp -rtsp_transport tcp -i &lt;rtsp_url&gt; -c copy -movflags empty_moov+omit_tfhd_offset+frag_keyframe+default_base_moof -f flv rtmp://localhost/myapp/mystream


Then ffmpeg tells me that some RTSP packets were lost and it freezes its work process.

Does anyone know any another tools that can do this conversion that won't stop until I tell it to or there is a problem with the camera? Or possibly another way with ffmpeg that avoids this issue?

Thanks in advance.
Recently I've had the chance to research a bit in this area, and I've come across some rumors that ffmpeg's support for RTSP is somewhat buggy, i.e. it stops suddenly or yields mangled frames.
If you need only video, you can use openrtsp app from Live555 it can output stream to stdout to be consumed with -i -" in ffmpeg (Live555's client seems to be state of the art wiht RTSP)