Re: [Omnimeeting-devel] H.264
Brought to you by:
pescio
From: Massimo Cora' <ma...@gm...> - 2007-01-01 22:15:32
|
Hi Tay Koon Hwee, Tay Koon Hwee wrote: > I am to create a program whihc stream live video from a webcam, encode in > h.264 format and stream using rtp to a window mobile PDA. > > I have implemented the webcam frame grabber and the h.264 encoder but I have > problems with the rtp. I understand that because h.264 is using NAL rather > than VCL, therefore I have a problem finding a sample source code which can > does h.264 streaming. > > Is your team able to provide one? > you can take as example the H263plusVideoSource class. This, as described by the comments, grabs the frames from a webcam, then encodes them in h263plus (using ffmpeg encoder), and lastly encapsulates them for the sending on the net using LiveMedia libraries. Virtually you can simply add an encoding option to OStreamVideoEncoder, and rework a little bit the H263plusVideoSource class to match you grabber/encoder needs for h264 streaming. I think also that you can let the doGetNextFrame () and deliverFrame () methods unchanged. For the server meetings see also OStreamOnDemandSMS class, which creates an instance of H263plusVideoRTPSink. In your case it should be H264VideoRTPSink. I don't know about NAL or VCL options sorry, I didn't go deep on h264 protocol knowledge. I suppose it's an encoder problem. regards, Massimo |