Hello I have the same problem when using ffmpeg to save RTSP streams from Axis IP cameras. I am able to start streaming from the camera using av_open_input_file() and av_read_frame(), but the stream from the camera stops after approx 1minute.
The camera requires RTCP receiver reports to keep the connection alive. I have analysed network traffic to the camera, and no RTCP reports are sent to the camera when reading RTP packets My question is, does ffmpeg support sending RTCP RR packets and if so, how do I send them correctly. I am using the following versions: libavutil 50.19. 0 / 50.19. 0 libavcodec 52.78. 0 / 52.78. 0 libavformat 52.71. 0 / 52.71. 0 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 1.20. 1 / 1.20. 1 libswscale 0.11. 0 / 0.11. 0 Any help would be greatly appreciated, thank you. On Sat, 2010-03-06 at 16:39 +0100, Alex wrote:
Hi. I need to capture a MPEG4 stream from an IP camera. I want to use ffmpeg to handle all the streaming thing. So far the rtsp negotiating goes well but I run into a problem: the camera demands RTCP receiver report messages both to start streaming and keep the conection alive.
If it wants an RTCP RR to start streaming, I think it is broken :) Anyway, the current version of ffmpeg (current svn) should send a fake RTCP RR when you open the stream (for NAT trasversal), and automatically sends RTCP RR packets when you read RTP packets (not for all the reads, only when needed). I remember we had problems with such packets, I'll check if the patch solving those problems has been committed or not. _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
