Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 1st, 2005, 12:02 PM   #1
bigbondfan
Newbie
 
bigbondfan's Avatar
 
Join Date: May 2005
Posts: 7
Rep Power: 0 bigbondfan is on a distinguished road
Cool recording from a webcam

Is there any way to record from a webcam using vb6?
bigbondfan is offline   Reply With Quote
Old Jun 1st, 2005, 1:11 PM   #2
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
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.
Rory is offline   Reply With Quote
Old Jun 2nd, 2005, 11:56 AM   #3
shaneapp
Newbie
 
Join Date: Jun 2005
Posts: 4
Rep Power: 0 shaneapp is on a distinguished road
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
shaneapp is offline   Reply With Quote
Old Jun 3rd, 2005, 1:21 AM   #4
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
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!
Rory is offline   Reply With Quote
Old Jun 3rd, 2005, 3:06 PM   #5
bigbondfan
Newbie
 
bigbondfan's Avatar
 
Join Date: May 2005
Posts: 7
Rep Power: 0 bigbondfan is on a distinguished road
Thanks for your help, i've used the code in my application
bigbondfan is offline   Reply With Quote
Old Jun 3rd, 2005, 5:43 PM   #6
shaneapp
Newbie
 
Join Date: Jun 2005
Posts: 4
Rep Power: 0 shaneapp is on a distinguished road
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.
shaneapp is offline   Reply With Quote
Old Jun 3rd, 2005, 11:47 PM   #7
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
Quote:
Originally Posted by shaneapp
i continualy have to refer to psc for snippets of code
Yeah I used to do that a lot, but I found the code there to be "too complete" in that there's always a lot of code devoted to "polishing" the submission (adding gimmicky UI effects) that are usually just confusing. Having said that, the hall of fame winners are brilliant, but you can always get more from looking around a bit
Rory is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:02 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC