Video calling with PJSIP on an iphone

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

 



Sorry, wrong statement below. I downloaded the H264 decoder from here:
http://sourceforge.net/projects/p264decoder/ and created a wrapper in x264.h
for it  to make it look uniformed. It is not included as part of x264 it
seems...

Again, I have just reached a state where I can compile all of this stuff.
Haven't actually dont the real check to see if it works. Maybe Dzmitry can
throw insights.



On Mon, Dec 6, 2010 at 9:36 AM, Rob Wilkes <wilkrob at gmail.com> wrote:

> Yes,
> once you have libx264.a built, you need to add it to your project and
> #include "x264.h". It provides you with
>
> x264_encoder_encode
>
> x264_encoder_decode
>
> APIs. But documentation seems very hard to find.....
>
>
> On Sun, Dec 5, 2010 at 10:05 PM, bo shi <cnshibo at gmail.com> wrote:
>
>> Hi all,
>>   x264 provide decode function?
>>   videolan.org page introdcuce "x264 - a free h264/avc encoder" ....
>>
>> BRs,
>> bo
>>
>>
>> On Mon, Dec 6, 2010 at 10:54 AM, Rob Wilkes <wilkrob at gmail.com> wrote:
>> > Never mind - got it sorted out. Thanks!
>> >
>> > On Sun, Dec 5, 2010 at 9:36 PM, Rob Wilkes <wilkrob at gmail.com> wrote:
>> >>
>> >> Dzmitry, I now have an iphone build for x264. Just as a quick
>> >> clarification, I only need libx264.a - I can discard the ffmpeg and
>> xvid
>> >> libraries, right? Did you find any easy tutorial on how to use x264
>> >> libraries? As my first test, I am planning to write a small iphone
>> program
>> >> that just picks up some encoded frames in H264 and I want to pass it to
>> x264
>> >> to decode as raw so I can construct and display an UIImage. Once I have
>> >> that, I will integrate with PJ. X264 is completely new to me.
>> >> thx
>> >>
>> >> On Sun, Dec 5, 2010 at 10:01 AM, Dzmitry Yablonski <grizlik at gmail.com>
>> >> wrote:
>> >>>
>> >>> You could check it. Try to load array of images and renew UIImageView
>> >>> with images from array for different FPS. You could also try to play
>> with
>> >>> image size and UIImageView size (fit image to screen for different
>> >>> orientation mode).
>> >>> On 05.12.2010, at 15:39, Rob Wilkes wrote:
>> >>>
>> >>> Now this is very interesting, Dzmitry. I thought I have to fiddle with
>> >>> iOS core media framework.
>> >>> So you are suggesting that I construct a UIImage from the raw decoded
>> >>> H.264 buffer and pass it to UIImageView for each frame? I thought this
>> would
>> >>> be very slow, but I guess you've done it!
>> >>>
>> >>> On Sun, Dec 5, 2010 at 8:40 AM, Dzmitry Yablonski <grizlik at gmail.com>
>> >>> wrote:
>> >>>>
>> >>>> Hi Rob
>> >>>> You should add Video media to PjSip.
>> >>>> Use UIImageView for displaying frames after decoding.
>> >>>> Best regards, Dima
>> >>>> On 05.12.2010, at 13:55, Rob Wilkes wrote:
>> >>>>
>> >>>> Super! That's all  I need to know - that it is practically possible
>> >>>> without mind bending hacks :)
>> >>>> Thanks.
>> >>>>
>> >>>> On Sat, Dec 4, 2010 at 11:55 AM, Dzmitry Yablonski <
>> grizlik at gmail.com>
>> >>>> wrote:
>> >>>>>
>> >>>>> Hi Bo
>> >>>>>
>> >>>>> Yes, we use x264 ( from
>> http://www.videolan.org/developers/x264.html)
>> >>>>> for decode h264.
>> >>>>>
>> >>>>> best regards, Dima
>> >>>>>
>> >>>>>
>> >>>>> On 04.12.2010, at 16:41, bo shi wrote:
>> >>>>>
>> >>>>> > Hi Dima,
>> >>>>> >   I learned that the iPhone sdk does not publish the H.264 codec
>> API,
>> >>>>> > so developer can not use hardware decoder to decode raw H.264
>> stream
>> >>>>> > directly, how can you do that? You decode video in soft way?
>> >>>>> >
>> >>>>> > Thanks in advance!
>> >>>>> > Bo
>> >>>>> >
>> >>>>> >
>> >>>>> > On Saturday, December 4, 2010, Dzmitry Yablonski <
>> grizlik at gmail.com>
>> >>>>> > wrote:
>> >>>>> >> Hello Rob
>> >>>>> >> We have implemented video call with PjSip 1.8.5 on iPhone.
>> >>>>> >> Best regards, Dima.
>> >>>>> >>
>> >>>>> >>
>> >>>>> >> On 04.12.2010, at 15:26, Rob Wilkes wrote:
>> >>>>> >> I also noticed that your roadmap says it will initially be for
>> >>>>> >> windows. My requirement is for iphone. I guess my question is not
>> really a
>> >>>>> >> PJSIP question, but rather to developers who may have used PJ to
>> make video
>> >>>>> >> work on iPhone - just wanted to check if it is doable or
>> impossible today
>> >>>>> >> due to some iphone restriction :)
>> >>>>> >>
>> >>>>> >> On Sat, Dec 4, 2010 at 8:42 AM, Rob Wilkes <wilkrob at gmail.com>
>> >>>>> >> wrote:
>> >>>>> >>
>> >>>>> >> Hi Benny, Yes, I know PJSIP also plans to support it - but for
>> this
>> >>>>> >> project, I cannot wait for that update, so I plan to do it
>> myself. Since you
>> >>>>> >> may be ahead of me, I was curious if there are any restrictions
>> in the
>> >>>>> >> iPhone APIs itself that will inhibit PJSIP (or any other stack)
>> to not work
>> >>>>> >> with video. For example, it looks like I cannot use the Movie
>> Player class
>> >>>>> >> as it expects a URL.For  this to work, we will need frame/frame
>> >>>>> >> encode/decode and display support on the iPhone.
>> >>>>> >>
>> >>>>> >>
>> >>>>> >> thanks!
>> >>>>> >>
>> >>>>> >> On Fri, Dec 3, 2010 at 10:12 PM, Benny Prijono <
>> bennylp at teluu.com>
>> >>>>> >> wrote:
>> >>>>> >>
>> >>>>> >> Hi, FYI we are also working on video and it is planned for the
>> >>>>> >> upcoming 2.0 release. Have a look at our roadmap in the trac
>> site.
>> >>>>> >>
>> >>>>> >> Best regards,
>> >>>>> >>  Benny
>> >>>>> >>
>> >>>>> >>
>> >>>>> >> On Sat, Dec 4, 2010 at 3:51 AM, Rob Wilkes <wilkrob at gmail.com>
>> >>>>> >> wrote:
>> >>>>> >>> Hi, I have started on an activity to get a basic Video call
>> working
>> >>>>> >>> on
>> >>>>> >>> iPhone. It needs be be over RTP, preferably with H.264 codec.
>> Has
>> >>>>> >>> anyone
>> >>>>> >>> written a video client with PJSIP specifically for the iphone?
>> Are
>> >>>>> >>> there any
>> >>>>> >>> road blocks? ( I know PJSIP doesnt support video for now, but I
>> >>>>> >>> plan to
>> >>>>> >>> extend it - my question is more in the iPhone side). Prelim.
>> >>>>> >>> analysis shows
>> >>>>> >>> I can pass H.264 streams to the iphone media player framework
>> and
>> >>>>> >>> it can
>> >>>>> >>> instantiate the appropriate player. My approximate plan is to
>> send
>> >>>>> >>> audio +
>> >>>>> >>> video data using PJSIP, then extend PJSIP to support video
>> decoding
>> >>>>> >>> and pass
>> >>>>> >>> the decoded H264 buffer to the media framework of iphone.
>> >>>>> >>>
>> >>>>> >>>
>> >>>>> >>> _______________________________________________
>> >>>>> >>> Visit our blog: http://blog.pjsip.org <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 <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
>> >>>>> >>
>> >>>>> >>
>> >>>>> >
>> >>>>> > _______________________________________________
>> >>>>> > 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
>> >>>>
>> >>>> _______________________________________________
>> >>>> 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
>> >>>>
>> >>>
>> >>> _______________________________________________
>> >>> 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
>> >>>
>> >>
>> >
>> >
>> > _______________________________________________
>> > 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/20101206/3b49a27c/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