![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: May 2005
Posts: 7
Rep Power: 0
![]() |
Is there any way to record from a webcam using vb6? ![]() |
|
|
|
|
|
#2 |
|
Expert Programmer
|
Most probably dependent on the device drivers and the accompanying, if any, SDK. Microsoft did standardise this, so the best place to check would be MSDN: You would be using out-of-process components written in Asm so performance would not be an issue with VB or any other language.
|
|
|
|
|
|
#3 |
|
Newbie
Join Date: Jun 2005
Posts: 4
Rep Power: 0
![]() |
Their most certainly is my freind
Here is a direct example which shows how to initalize and show webcam: Webcam Example. It also shows how to fit to size 'stretch'. However you specificaly asked how to 'Record' from a webcam. For that you will also have to have a way to capture, record and save the file to hard drive. Hope that helped mate. shaneapp |
|
|
|
|
|
#4 |
|
Expert Programmer
|
The SDK you're interested in is the MS Video capture library (avicap32.dll) for which information is freely available on MSDN.
Thanks shaneapp , but this particular code sample, as well as being bloated and confusing, doesn't use the full potential of this library: it has native support for capturing frames (stillls) and chunks (periods of video) yet an odd method of screenshotting to the clipboard is being used (which won't even work if you're using hardware accelerated surfaces).I would recommend http://www.developerfusion.co.uk/show/1988/ as it's virtually the same code, but cleaner and more to the point - MSDN and googling normally come before psc 'cause the code there is normally bloated and pointlessly "show-offy" (ooh evil windows developers!). Again shaneapp, no direct offence intended! ![]() |
|
|
|
|
|
#5 |
|
Newbie
Join Date: May 2005
Posts: 7
Rep Power: 0
![]() |
Thanks for your help, i've used the code in my application
|
|
|
|
|
|
#6 |
|
Newbie
Join Date: Jun 2005
Posts: 4
Rep Power: 0
![]() |
No problem Rory im no proffessional VB programmer so the best suggestion or answer to a question is best. I my self am not advanced enough to think up my own code, i continualy have to refer to psc for snippets of code, which isnt the best way to go about making a program (im using delphi at the moment). But its the only way i can think of to learn code specifics.
|
|
|
|
|
|
#7 | |
|
Expert Programmer
|
Quote:
![]() |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|