473,698 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Socket: Webcam broadcasting

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
Mar 2 '06 #1
2 10263
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
Mar 2 '06 #2

Islamegy® wrote:
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


Mar 3 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3812
by: Gordon Wetzstein | last post by:
Hello everyone, I have a problem with python sockets. I broadcast a lot of pickled objects with socket. sendto(...), that works. Ireceive them on the other site with socket.recvfrom(16384) The pickled objects are smaller (like 10000 bytes) than the max bytes. The problem appears if I send too many pickled objects very quickly one after another, then I only receive a part of the sent objects.
6
5481
by: Rune | last post by:
Hi, I've written a very simple 'kill-server' to help me shut down processes through Telnet or HTTP. The kill-server is a function and is launched as a thread. I use the module socket.py on Python v2.3 (Windows) I can use telnet host:port and enter the secret killword or use a broser with http://host:port/secret_killword The 'kill-server' validates the secret_killword and writes a file
1
3305
by: Austin | last post by:
......................... data = .... self.broadcast_ip = 255.255.255.255 UDPSock.sendto(data,(self.broadcast_ip,36)) .......................... These codes run on Windows without errors and warnings. But i excute that on Fedora Core 2, it shows the error
4
563
by: Alexander Muylaert | last post by:
Hi I their a way I can interupt socket.Receive. I want my multi-threader server to be able to handle requests as wel as Broadcast messages. This broadcasting is done when the socket is not handling a request. How can I do something like this
5
2089
by: Justin Creasy | last post by:
If this is the wrong group for this posting please let me know and I'll move it. I have an application that has an ArrayList of sockets to clients. For standard one-to-one messages my application works great, the problem is if I want to "broadcast" a message to all my clients. Right now I just iterate through my sockets list and send the message to each client. This works fine until I need to send something large like a file. Is there a...
4
6730
by: rs | last post by:
how I the client tell the server that the socket is closed? or this there an even that informs the server that the clients socket is close? Oh, I am using vb.net 2003 Thanks
5
5316
by: Marco | last post by:
I have a problem with the establishement of a three way handshake through raw socket. The problem is that if in my application client I use the syscall socket(AF_INET,SOCK_RAW,IPPROTO_RAW) the kernel will refuse the server answer because there isn't a CONNECTED socket. So I used the syscall connect() but if I want sent another TCP packet I need to know the sequence number that the connect() has utilized and the ack from the server and...
4
12076
by: david | last post by:
hello, I have a client/server application. the server capture picture from webcam and send it to every client connected to it.the network part works good and the capture from webcam too. I associate an event when a capture is done, then every frame of the webcam should be sent to the client. but I cannot find a way to send bitmap throught network, of course I found many method from internet, some doen't work, some work but it's never...
0
2345
by: Peter Morris | last post by:
Hi all I'd like to capture live video from the web cam, interleave it with recorded audio, and then compress it for broadcasting over the Internet. If anyone has any experience of doing this I would be very interested in any information at all you'd be willing to share. Regards
0
8672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8600
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9021
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8860
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7712
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4614
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2323
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.