Video call in iOS

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

 



Thank you Albert. I'll give it a try.

By the way, i'm not getting the latest version from the trunk, i'm actually
using the one available for download - 2.1.0.
I can't figure out which one i should use. Is there like a specific branch
for iphone that i should get instead?

Thanks,
Jules




On Mon, Apr 29, 2013 at 10:30 AM, Albert Nadal <anadalg at gmail.com> wrote:

> Hi Jules, a year ago I developed a workaround for running videoconference
> using the iOS port, I remember I get green frames when receiving the video
> during the first tests. First of all, be sure you are receiving RTP packets
> in the receiver endpoint. Check the image color space conversion when
> sending the frames, I did it by using simple and very fast memcpy
> operations. I recommend you to send allways the same frame from a local
> image (in CIF, QCIF or the size you need) in your resources bundle instead
> of trying to send the frames retrieved from the AVFoundation API. Also I
> recommend you to use first the h263 codec implementation included in the
> ffmpeg, but its just a recomendation for making your tests more easy. Luck!
>
> Albert,
> http://lafruitera.com
>
>
> 2013/4/29 Jules Jefferson <jjefferson2089 at gmail.com>
>
>> Hi all,
>>
>> I've been trying to build a demo app where you can make audio and video
>> calls.
>> I'm using pjsip 2.1.0 with ffmpeg and h264. I'm also using the ios_dev.mmfile and libyuv library that Samuel worked out.
>>
>> I changed some code to present the main and preview windows.
>>
>> My problem:
>> Although i'm able to send video packets correctly, i cannot figure out
>> how to present the ones i'm getting. I get nothing but a green window. When
>> i'm lucky i'm able to see a distorted image.
>>
>> I noticed that there are some ffmpeg errors showing up on the console:
>>
>> *15:53:18.130         ffmpeg  h264: non-existing PPS 0 referenced*
>>
>> *15:53:18.130         ffmpeg  h264: decode_slice_header error*
>>
>> *15:53:18.130         ffmpeg  h264: no frame!*
>>
>> *15:53:18.130 ffmpeg_vid_cod  ffmpeg err -1: Operation not permitted*
>>
>> *15:53:18.130 vstdec0x1ada01  codec decode() error: Bad or corrupted
>> bitstream (PJMEDIA_CODEC_EBADBITSTREAM) [err:220087]*
>>
>> When debugging it looks like we're converting a YUV image to a BGRA one,
>> and then presenting it. It all looks good.
>>
>>
>> Does anyone have any hints?
>>
>> Could it be a wrong configuration when compiling ffmpeg or x264?
>>
>>
>> Thank you very much,
>>
>> Jules
>>
>> _______________________________________________
>> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130502/1a02c023/attachment-0001.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