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 <rtsp_url> -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.