Socket: Webcam broadcasting

I

Islamegy®

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??
thanx
 
P

Piotr Dobrowolski

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/components_table.php?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 interoperability with the rest of the world:
http://www.conferencexp.com/community/Default.aspx?tabindex=12&tabid=22
 
L

louie_griffin

Islamegy® said:
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??
thanx i wanna broadcast
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top