473,624 Members | 2,253 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# webcam

Hi.

Is it possible to do a program that show the "film" that is currently on our
webcam ?

I do not have a Webcam for the moment, so, if you have advices to chose a
Webcam compliant (with what I want to do), I would be thanksfull.
Jul 21 '05 #1
4 15171
You want to preview and capture video and audio from a webcam (or any other
WDM capture hardware)?

The managed code languages (C#/VB.Net) aren't the right tools if you want to
do that directly because of the lowlevel processing required.. It is
normally done using DirectShow which as I see it is Never Ever Ever going to
be fully available as a managed technology.

If you like C++ then get the free WMFormat SDK and DirectX SDK downloads
from MSDN, there are plenty of VC++ samples there. (The only managed
DirectShow sample, because it's the only thing you can do with Managed code,
is the sample for reading and modifying tags in Media9 audio/video and MP3
files).

If you want to tough it out from a non-.Net non-VC++ viewpoint, look to
www.shrinkwrapvb.com. This site has a number of samples showng how to do
video and audio capture with VBClassic and without any C++ support
libraries.

If you want to just get a good job done, then look to the many ActiveX
DirectShow/WMFormat wrapper components on the market and use them in .Net
via interop.

If it helps you at all... I worked for a media-oriented development company
and did extensive research on the various offerings about a year ago and
went with VidCapX from Fathsoft.com. My CEO thought I was picking it
because of its' low price, but the price wasn't the reason. I chose it
because it's lightweight but has a full load of features including capture
to avi or WMV with custom profiles, frame grabbing, framelevel control of
playback, edit/merge of recorded files, etc, etc) and all of them worked
flawlessly. I no longer work for that company ... but if it means anything
I bought my own copy of the control from Fathsoft because once you start
doing video apps, you start seeing a lot of great reasons to write more
video apps :).

Hope that helps.

Robert Smith
Kirkland, WA
www.smithvoice.com

"Mathieu Chavoutier" <no****@no.spam > wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
Hi.

Is it possible to do a program that show the "film" that is currently on
our webcam ?

I do not have a Webcam for the moment, so, if you have advices to chose a
Webcam compliant (with what I want to do), I would be thanksfull.

Jul 21 '05 #2

"smith" <rc********@smi thvoiceTAKEOUT. com> a écrit dans le message de news:
1a************* ***@newsread3.n ews.pas.earthli nk.net...
You want to preview and capture video and audio from a webcam (or any
other WDM capture hardware)?
In fact, I only want to display the video. I don't want to treat it or save
it. But, I want also
to send it to a specific person over internet.
The managed code languages (C#/VB.Net) aren't the right tools if you want
to do that directly because of the lowlevel processing required.. It is
normally done using DirectShow which as I see it is Never Ever Ever going
to be fully available as a managed technology.
Oki.
If you like C++
I speak C++ too :o)
then get the free WMFormat SDK and DirectX SDK downloads from MSDN, there
are plenty of VC++ samples there. (The only managed DirectShow sample,
because it's the only thing you can do with Managed code, is the sample
for reading and modifying tags in Media9 audio/video and MP3 files).
I will look that website.
If you want to tough it out from a non-.Net non-VC++ viewpoint, look to
www.shrinkwrapvb.com. This site has a number of samples showng how to do
video and audio capture with VBClassic and without any C++ support
libraries.
I don't (want to) speak VB. But I don't want to debate it :o)
If you want to just get a good job done, then look to the many ActiveX
DirectShow/WMFormat wrapper components on the market and use them in .Net
via interop.

If it helps you at all... I worked for a media-oriented development
company and did extensive research on the various offerings about a year
ago and went with VidCapX from Fathsoft.com. My CEO thought I was picking
it because of its' low price, but the price wasn't the reason. I chose it
because it's lightweight but has a full load of features including capture
to avi or WMV with custom profiles, frame grabbing, framelevel control of
playback, edit/merge of recorded files, etc, etc) and all of them worked
flawlessly. I no longer work for that company ... but if it means
anything I bought my own copy of the control from Fathsoft because once
you start doing video apps, you start seeing a lot of great reasons to
write more video apps :).

Hope that helps.


Well, thanks for your long answer. There are a lot of informations, and I
think they could be usefull.
Jul 21 '05 #3
VBClassic, like C#, VB.Net, Delphi and C++ is a tool with it's own unique
advantages for certain situations so offhandedly discounting it as an option
isn't always the most professional approach ;-)

But we're getting closer what what you *really* want to do: Capture and
send over IP. Again, the Fathsoft control does this easily (as do many 3rd
party controls); You just start the capture and specify a port. Open that
port on your firewall (routing it to the correct internal machine) and tell
the remote users the address including the port as in:

http://mydomainname:8080

You can also just tap into the Window Media Encoder (free download from
http://www.microsoft.com/windows/win...r/default.aspx )
either with code using the Encoder SDK or just using the encoder GUI itself
with no code.

Use of the Media Encoder SDK or any DirectShow component in a .Net project
means using Interop because you'e automating ActiveX tools.

Note that encoding adds a delay (and the network adds latency), expect up to
20seconds between direct feed to the cam and receipt of the frames on the
other end. The exact delay amount depends on your quality settings. Use of
the Media Encoder or other WMFormat/DirectShow technologies is not going to
give you a satisfying real-time video "chat" experience, but if both sides
are running broadband then you can easily get tv quality, or better,
reception.

For more information, please switch over to the DirectX and
WindowsMedia\En coder newsgroups.

Robert Smith
Kirkland, WA
www.smithvoice.com
Jul 21 '05 #4

"smith" <rc********@smi thvoiceTAKEOUT. com> a écrit dans le message de news:
lK************* ******@newsread 1.news.pas.eart hlink.net...
For more information, please switch over to the DirectX and
WindowsMedia\En coder newsgroups.


Thank you very much for all your help, I will go on WindowsMedia\En coder
newsgroups in a few minuts :o)
Jul 21 '05 #5

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

Similar topics

1
3935
by: Kelowna | last post by:
Yes... Its a server os... i kno! i hav xp yea but tis system is for screwing with.. Im sure theres alot of ppl here tat kno tis stuff inside-out! im doing this for educational purposes so dont give me that "Its intended for server" stuff... thanks! :-) Now that is out of the way lets get to it: I have Windows 2003 Server Enterprise and a Logitech Quickcam Web. I plugged it in and it loaded all the drivers automatically, yet I do not...
4
11978
by: Joakim Rylander | last post by:
Hi all, I need to create a public booth where people can look at themselves in a webcam and snap a picture which will be seen on a webpage. The backend is easy, it's the webcam part that I have problems with... Could you recommend the best way to capture a Webcam picture from .NET? Do I need device specific drivers or is there a standardized way to do it? Any recommended brand of Webcam?
0
2221
by: Elp | last post by:
Hi, We have developped an client application in C#. Among other things, this application should display in 4 different windows (or 4 different panels in the same window), 4 webcam streams (web streaming) from different webcams. We would like to set up a Webcam server on which we would connect several webcams (at least 12) and stream the output of each webcam on the web. That way, our client application could choose which webcam streams...
0
2047
by: Steve | last post by:
Hi Can anyone please tell me how to use a webcam on a form. I have done an app that uses a webcam, but I have used the drivers for that webcam. Now I need to use a different camera on a different site and obviously will have to reprogram for those drivers. Is there a generic webcam control that can be used I will only be using USB cameras
10
13776
by: aceto | last post by:
Hi. I'm sorry for my bad english, but it's not my motherlanguage. I need to read data from a webcam and display the images on DOS . So, how can i show this images? i have to translate the data received to a bitmap, to display it on the screen in DOS, mut i don't know how to do....can u give me some help or piece of advices? Thank you very much! Mark
5
5604
by: Mathieu Chavoutier | last post by:
Hi. Is it possible to do a program that show the "film" that is currently on our webcam ? I do not have a Webcam for the moment, so, if you have advices to chose a Webcam compliant (with what I want to do), I would be thanksfull.
3
2752
by: DillonCzerny | last post by:
Hello Many times I see a lot of people post webcam videos on google video or youtube. I wonder how do they record it from those people’s webcam? I have a fake webcam and I want to record some webcams so that I can play them on my fake webcam. Does any one know about any good webcam recorder software? Thank you for your help. Newbie
2
4137
by: =?Utf-8?B?d29vZHliZWFy?= | last post by:
I just bought a new Dell, so I'm sorry if this is a stupid question. There is a built-in webcam. Im using the disc provided by Dell (Dell Webcam Software), however during the installation, a pop-up window says to make sure the webcam USB cable is connected to the computer. What does this mean? The webcam is already build-in to the computer? This is preventing the installation of the software. Thank you for you help
13
7192
by: Berco Beute | last post by:
I've been trying to access my webcam using Python, but I failed miserably. The camera works fine under Ubuntu (using camora and skype), but I am unable to get WebCamSpy or libfg to access my webcam. First I tried webcamspy (http://webcamspy.sourceforge.net/). That requires pySerial and pyParallel, and optionally pyI2C. Runing WebCamSpy results in: Exception exceptions.AttributeError: "Parallel instance has no attribute '_fd'" in...
0
8680
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8624
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...
1
8336
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8478
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
7164
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
6111
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
5565
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
4176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2607
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.