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>