473,320 Members | 1,948 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 15146
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****************@TK2MSFTNGP15.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********@smithvoiceTAKEOUT.com> a écrit dans le message de news:
1a****************@newsread3.news.pas.earthlink.ne t...
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\Encoder newsgroups.

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

"smith" <rc********@smithvoiceTAKEOUT.com> a écrit dans le message de news:
lK*******************@newsread1.news.pas.earthlink .net...
For more information, please switch over to the DirectX and
WindowsMedia\Encoder newsgroups.


Thank you very much for all your help, I will go on WindowsMedia\Encoder
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
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...
4
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...
0
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...
0
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...
10
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...
5
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...
3
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...
2
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...
13
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...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.