Hi,
I am using ffmpeg libraries to receive a mpeg-4 stream from a rtsp
server (Siqura C60 E encoder). The server expects a RR packet from the
client as a reply to the SR packet it sends. I am using
*rtp_check_and_send_back_rr()
*function to send a RR packet to the server. After analyzing the packets in
wireshark, I have noticed a couple of things
1. The RR packet has the correct timestamp but the delay ( delay_since_last
in the function) seems to be always 0.
So I have adjusted to use the following in *rtp_check_and_send_back_rr().*
*
*
*uint64_t ntp_time= av_gettime()/1000000;*
*for *
*uint64_t ntp_time = s->last_rtcp_ntp_time; *
The above would calculate the current time in secs hence the delay will be a
realistic value in seconds.
*
*
*
*
2. Wireshark is displaying all the SR RTCP packets but sometimes the library
seems to send a RR packet with an old timestamp hence the server is tearing
down the connection.
Is it possible that some RTCP packets can be discarded for a reason and
where can it happen in the code?
It would be great if anyone can point me in the right direction.
Thanks.
Sateesh
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user