• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

C# Web Webcam Capture Help

Joined
Dec 22, 2007
Messages
184 (0.03/day)
Location
Central Nebraska
System Name CORSAIR
Processor AMD Phenom 1090T x6 @3.2
Motherboard Gigabyte Ga-78LMT-S2P
Cooling High efficiency dust cooling
Memory 8GB GSkill DDR3 1333
Video Card(s) Sapphire Radeon HD3870 512MB GDDR4 PCI-e toxic
Storage Seagate SV35.3 ST3250310SV 250GB SATAII(Windows 7 Pro x64), 320GB Samsung SATAII(Storage and SuSE)
Display(s) Dell 20" LCD, Dell 17" LCD
Power Supply Antec Cool Blue 650W Modular
Software Windows 7 Professional SP1, Visual Studio 2010 Ultimate
Hello all. I stumbled across this project: http://kristoffer.vinther.name/projects/managed-directshow/ which could be used in a project I've been wanting to take on for a while now. However, when I set up the "Camcorder" application to capture from a webcam source as shown on the project's page, I get this error from visual studio 2010:
No overload for method 'Record' takes 0 arguments
pointing to this line:
Code:
this.asfRecorder1.Record();

When I investigate the error further, VS2010 tells me it's looking for "String what" and "Records string contents to a file"

The help online says "String
A designation of what is to be recorded, e.g. the title of a show. " - http://kristoffer.vinther.name/proj...DirectShow.Components.AsfRecorderMembers.html and http://kristoffer.vinther.name/proj...tShow.Components.FileRecorderBase.Record.html

If anyone can help me make sense of this, It is greatly appreciated. Thanks in advance.
 
Not entirely sure, seems like a fun project. It could just simply be the string of the filename to write to. like

Code:
this.asfRecorder1.Record("outputfile.wmv");
 
Negatore. I have tried that as well. throws an undefined exception.
 
The reference leave a bit to be desired with no code examples.
Can you put the method call in a try/catch block to see if you can get a little more info on the exception?
 
Back
Top