Important alert: (current site time 7/16/2013 4:00:11 AM EDT)
 

winzip icon

Advanced Video Capture

Email
Submitted on: 10/5/1999
By: Patrick K. Bigley  
Level: Not Given
User Rating: By 11 Users
Compatibility: VB 5.0, VB 6.0
Views: 72064
 
     Advanced version! If you have a Video Capture card installed on your computer, then this will work great! I tested this on 3 different capture cards on different computers with 100% satisfaction! Thanks to E. J. Bantz Jr. for providing this free code from his website.
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 32 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Not Given category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
10/7/1999 2:24:00 AMaDriaN

I used this source code with VB6 and when I made the .exe file and try to run it with my video capture card, I see only a blue screen. The program detected my driver but no picture. Whats wrong?
(If this comment was disrespectful, please report it.)

 
10/26/1999 10:34:00 PMJeremy T. Parker

Well, if you use a program that comes with your capture card, and when it first starts, or if it has no input to display, it will give you a screen with blue in it, you need to have something hooked into your capture card in order for it to display anything besides blue.
(If this comment was disrespectful, please report it.)

 
11/5/1999 2:53:00 AMBilly Tang

I tried to let the capturing running in the background and used a command button to stop the capturing. So, I set CAP_PARAMS.fYield to true. However, the program will be hanged up. Do you know why???
CAP_PARAMS.fYield = True

Thanks.
Billy

(If this comment was disrespectful, please report it.)

 
11/6/1999 4:57:00 PMTaloN

Just letting ya all know,
Im using a USB (Quixcam Color) and it works great!


(If this comment was disrespectful, please report it.)

 
11/28/1999 9:51:00 PMRay Mercer

If you have a vidcap device, you should also check out the free code that is available on www.shrinkwrapvb.com for VB video capture.
(If this comment was disrespectful, please report it.)

 
12/15/1999 4:55:58 PMjim

im new to computers, what is a
video capture?
(If this comment was disrespectful, please report it.)

 
1/14/2000 4:56:15 AMAdrian

I'm now using this code as sort of a foundation to build for a video capturing program to suit me needs. I added a file open function and now I'm looking into a time lapse function. I need to take a snap shot every period of time and save them in the HD. Also I need to creat a second view port to preview the capture shots. Any help of these matters would be great. Thanks in advance
(If this comment was disrespectful, please report it.)

 
2/29/2000 4:29:23 PMMalcolm Hubert

I'm using a PCI Win/TV card
Why is it not refreshing very often?

I had a blue screen to start with.
I chose Tuner as the input and it was blue. so i closed vb, opened my cards tv program then closed it and went back to vb and it was working fine (apart from it being slow to refresh)
(If this comment was disrespectful, please report it.)

 
4/19/2000 6:36:09 AMMario Vairinhos

i've tryed with a matrox rainbow
(If this comment was disrespectful, please report it.)

 
4/19/2000 6:39:01 AMMário Vairinhos

i've tryed with a matrox rainbow runner and at a first glance it works finne. However i think it was refreshing at 10 o 12 FPS. The scaling feature is very usfull.
(If this comment was disrespectful, please report it.)

 
6/13/2000 6:07:14 PMJason

I like your code a lot, thanks for posting it. I was wondering, how is it possible to capture one frame and save it as a picture file? My e-mail address is jasonatgcn@hotmail.com, Thanks for any help you offer and good luck.
(If this comment was disrespectful, please report it.)

 
7/3/2000 10:46:47 AMYuth

I like your code very much. I'd like touse video data for copy picture from capwindow. (Now, I copy pic. by getDCand BitBlt. But it copy any thing thatover capwindow)I think, capwindow size176*144 use 76,032 bytes but video datause only 38016. How I decode video datato RGB format. (I use usb camera| I420)Thank you for your code. yuth_a@hotmail.com
(If this comment was disrespectful, please report it.)

 
7/13/2000 12:16:54 PMJason

I have a question. I set the hWnd to that of a Picture box that I added to the form. I am unable however, to use the SavePicture keyword on the Picture Box. Could someone please tell me how I could get the SavePicture command to work with this code?
(If this comment was disrespectful, please report it.)

 
8/30/2000 9:04:33 PMJess

Wonderful! It's sad a spinning cube that serves 0 purpose at all is in the spot this one should be.

(If this comment was disrespectful, please report it.)

 
9/8/2000 7:46:01 PMAnthrax Virus

Well, i would just like to say that this was the foot in the door that i needed. i am going to make a video-chat program, and this is what made it all possible. thank you, whoever made this code.

PS, if you want in on the program, let me know, i could use some help in the sockets programming. Spokehedz@dsl.telocity.com is my e-mail address.
(If this comment was disrespectful, please report it.)

 
3/16/2002 10:40:54 AMDave

Hi, great code. I used to have it working just fine under WinME, but now I have 'up'graded to Win2k and I cannot seem to get it working. Any Ideas?
(If this comment was disrespectful, please report it.)

 
4/30/2002 4:59:13 AMHamdy

That's quite a neat program, but i was wondering if you could make it do something a little more than to just capture video. y'know, even editting and stuff. do you know of any video editting program (Freee ofcourse;)?
(If this comment was disrespectful, please report it.)

 
6/20/2003 4:33:04 PMSean Siegel

This code looks great and just what i need. Could you please tell me what capture cards you tested it with? im looking to buy a good one that can capture 640x480 at least with your code. any suggestions?
(If this comment was disrespectful, please report it.)

 
7/7/2003 3:08:51 AM

Dear sir;

I have an Geforce2 MX Garphic video in card.
I test Your code .
I Playing my input video composite But I can't copy the Image in clipboard.
in program when I click in Edit/copy the
"Out of memory 402" error occur.
and when I paste in Paintbroush the "Error getting the clipboard data!" occur.

please help me.

regards
(If this comment was disrespectful, please report it.)

 
3/4/2004 2:14:54 PMEshaq Amir

have you tested this in windows XP?
(If this comment was disrespectful, please report it.)

 
5/7/2004 9:10:08 AM

First of all let me thank you for a wonderful code for VB developer for Capturing from normal frame grabber cards (for Video for Windows driver )


Now can you suggest me how to ....

(1) Use one video source in one window
and Another video source (say S-Video) in another window simultaneoulsy

(2) Can I see this video live in both windows or do I have to do preview?

(3) How can I use dual Monitor for both this videos?

(4) Is there any faster method to capture a single frame. Right now I am using

capEditCopy lwndC
Picture2.Picture = Clipboard.GetData()

And then use Point to read the picture datas.

a1 = Picture2.Point(olix, oliy)

Is there any faster way to grab this picture and do image analysis.

(5) do you know of subpixel edge detection


Sorry in advance if I have troubled you.

Best regards


Utpal

(If this comment was disrespectful, please report it.)

 
8/5/2004 2:07:36 AM

Wow!, this was the great program and i searched it for long time. I used to test in XP and it work well.
Currently i had a video card with 4 video input. The problem is how i going to assign this 4 input to 4 different window (as i wish)since it auto detect.
Anybody could help?
(If this comment was disrespectful, please report it.)

 
9/14/2004 4:36:21 PM

hello
the program is very good, but I have a question for you, when I run your program the video format is in 320 x 240, my capture card works in 640 x 480 perfectly with the software of the capture card, but with your software I can't work with 640 x 480 , can you helpme? can you tellme why?
thank you very much
(If this comment was disrespectful, please report it.)

 
9/26/2004 1:04:16 PM

I need to use it with a Matrox RTx100 Capture Card... It'll work?!
(If this comment was disrespectful, please report it.)

 
11/13/2004 9:18:03 AM

Hi guys trying to put more inputs to more windows, been looking for that several weeks - no success yet:-(
If sb knows or finds answer, pls let other know here, thx
(If this comment was disrespectful, please report it.)

 
9/26/2005 6:37:18 PMLiam

Nice code, except it actually broke my capture card! No idea why, ATI eHome Wonder, after I ran this program media center couldn't detect a cable signal.
(If this comment was disrespectful, please report it.)

 
10/8/2005 8:44:22 AMrajesh rr

hai mr.Patrick K. Bigley
im rajesh from india, i saw ur programm it's very nice. i never & ever saw like this type of programm. but im having handycam & webcam, in ur application is allowing only webcamera & tv tunner card ( pinnacle ) but handycam doesn't supporting ur application. can u help me what is the solution to detect handycam preview in my application. im recording handycam with ur application but is not display at preview window. plz can u help me...
(If this comment was disrespectful, please report it.)

 
11/22/2005 6:16:07 AMrajesh rr

hello mr.Patrick K. Bigley
im rajesh, i saw ur programm that's too great, i like very much, but i have a doubt in that - in ur programm how we can stop capturing through command button. plz if u know how to do, then plz mail to me , thanks in advance,

thank u sir

(If this comment was disrespectful, please report it.)

 
12/13/2005 11:01:01 PMWill Ross

does this program record sound from the sound card as well?
(If this comment was disrespectful, please report it.)

 
3/28/2006 5:01:31 AMrajesh rr

Hai Mr.Patrick K. Bigley,

I like your development, but divx or other 3rd party compressions are not displaying to encode at realtime, so can u plz help me, how to encode realtime in vb

regards
rajesh rr
(rajesh@meru.co.in)
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.