[Libav-user] rtcp doesn't work in rtp muxer

Dmitry Adjiev adjiev.dmitry at gmail.com
Thu Aug 14 13:14:14 CEST 2014


Hello.
I use rtp muxer for streaming video, but ffplay loses a lot of packets.

in rtpenc.c I see the following code:

    if ((s->first_packet || ((rtcp_bytes >= RTCP_SR_SIZE) &&
                            (ff_ntp_time() - s->last_rtcp_ntp_time >
5000000))) &&
        !(s->flags & FF_RTP_FLAG_SKIP_RTCP)) {
        av_log(NULL, AV_LOG_INFO, "Send rtcp packet\n");
        rtcp_send_sr(s1, ff_ntp_time(), 0);
        s->last_octet_count = s->octet_count;
        s->first_packet = 0;
    }

value 5000000 seems too large ...
What I do wrong?
Also what port libavformat uses for rtcp, I think it should be
multicast_ip:multicast_port + 1 right?
-- 
Regards,
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20140814/22cfa920/attachment.html>


More information about the Libav-user mailing list