pjmedia start sending media rtp packet before ice negotiate success?

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

 



Hi Faba,

For now, you can try sending the keyframe using
pjmedia_vid_stream_send_keyframe() once the ice nego is complete.

Regards,
Ming

On Mon, Jun 25, 2012 at 4:46 PM, Faba Aa <aafaba at gmail.com> wrote:
> Thanks, this is a work around method, but not prefer one.
>
> On Mon, Jun 25, 2012 at 3:23 PM, Fedot Fedotov <fedot.fedotov at gmail.com>
> wrote:
>>
>> 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;
>> }
>>
>> _______________________________________________
>> Visit our blog: http://blog.pjsip.org
>>
>> pjsip mailing list
>> pjsip at lists.pjsip.org
>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>



[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