Dnia 02-03-2006 o 10:34:23 Islamegy® <NU************ ****@yahoo.com>
napisa³:
Hiiiiiii
I'm working on a client server application which work like messnger.. I
was
able to capture the camera with no problem but now i want my my program
to
listen to incoming connection and start sending..
I'm using UPDClient (I think TCP is not the right protocol to send video
stream) and i send it via NetworkStream but no luck..
I'm new in network and socket programming but i was able to send text and
images but no luck with vedio..
Am i use the right protocol UDP?? is there any article which may help
me??
[PD] Actually you should use RTP protocol - an UDP based protocol designed
to send real time data like audio and video. There is a free library in
C++ to send data with RTP - jrtplib. But that's only beginning. To send
video data efectively you should encode it and pack in the RTP packets in
a specific way. You sholud look at H.263, H.261, H.264 or MPEG4 codecs,
that are usually used for video conferencing. Than you should look at
RFC's for packing the encoded data into RTP packets (H.263 over RTP, H.261
over RTP etc).
Probably you don't want to write all this by yourself - you can look at
some existing solutions like
http://www.elecard.com/products/comp...product_id=191
(unfortunatelly only MPEG2 streaming :( ) or JMF (unfortunatelly Java only
:( ).
There is also good solution from Microsoft you can use if you are not
interested in interoperabilit y with the rest of the world:
http://www.conferencexp.com/communit...ex=12&tabid=22
--
Piotr Dobrowolski
Piotr.Dobrowols ki@_usun_gmail. com