0

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.

1 Answer 1

1

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)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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