pjmedia start sending media rtp packet before ice negotiate success?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

I fixed this by adding after existing code(in file
pjproject-2.0\pjmedia\src\pjmedia-codec\ffmpeg_vid_codecs.c, method
ffmpeg_codec_encode_whole):

    /* Force keyframe */
    if (opt && opt->force_keyframe) {
#if LIBAVCODEC_VER_AT_LEAST(53,20)
avframe.pict_type = AV_PICTURE_TYPE_I;
#else
avframe.pict_type = FF_I_TYPE;
#endif
    }

next (my own) code:

//we set I-Frame all first 4 frames of video stream
if (m_first_frame_counter < 4)
{
avframe.pict_type = AV_PICTURE_TYPE_I;
m_first_frame_counter++;
}else
{
m_first_frame_counter = 4;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120625/baf067e6/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux