aktis
asked on
capture one video frame as save as bitmap
I have an Intel Video Input Card. I can save the video as an avi file with Video for windows but how can I capture one frame and save it as a bitmap using Visual Basic
Ahh, an easy one :-)... just pause the video and press Alt-Printscreen. Then start a paint program and paste the graphic. It should be easy then to remove the border (I do this all the time, just select the picture part and copy/paste to a new graphic). Hope this is an adequate answer. It does work pretty nicely for just about any kind of window capture.
Oops.. I missed the "using Visual Basic" part, sorry about that (doh...). Well... This would be something of a pain to do using plain old visual basic and would probably require some API calls. I guess I'll let someone else answer it since I've never done anything like that with VB.
ASKER
Adjusted points to 100
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
aktis,
In my answer above I assumed that you allready have captured the video first, and saved it as an AVI file.
In my answer above I assumed that you allready have captured the video first, and saved it as an AVI file.
ASKER
Thanks but my problem is than I haven't allready captured the video. I has only one video input card connected to a video.
aktis,
The only way I would think you could possibly do what you want is to contact Intel and see if you can get a list of DLL's that came with the software for your video input card (the drivers, etc) and a list of the API calls associated with the software that drives the card. Otherwise, there is no way to interface with the card(well, no way unless you had detailed info from Intel about interacting directly with their hardware, an extremely unlikely event).
The only way I would think you could possibly do what you want is to contact Intel and see if you can get a list of DLL's that came with the software for your video input card (the drivers, etc) and a list of the API calls associated with the software that drives the card. Otherwise, there is no way to interface with the card(well, no way unless you had detailed info from Intel about interacting directly with their hardware, an extremely unlikely event).
ASKER
Is there a common protocol between video capture cards?
Hi aktis
Sorry for being away for a few days.
From your comments, I understand that you want to capture a frame directly from the video source in visual basic. As Future said, you must use one or more DLL's that come with the capture card software to be able to do what you want directly from visual basic. And regarding your last comment about if there is a common protocol between video capture cards, the answer is NO. Each manufacturer develops his own drivers and DLL's for his card.
Now regarding your original question, you can SHELL the capture software from your VB program, capture the video sequence, close the capture program, and play the clip just captured in your VB program to do the frame capture.
Best Regards.
Sorry for being away for a few days.
From your comments, I understand that you want to capture a frame directly from the video source in visual basic. As Future said, you must use one or more DLL's that come with the capture card software to be able to do what you want directly from visual basic. And regarding your last comment about if there is a common protocol between video capture cards, the answer is NO. Each manufacturer develops his own drivers and DLL's for his card.
Now regarding your original question, you can SHELL the capture software from your VB program, capture the video sequence, close the capture program, and play the clip just captured in your VB program to do the frame capture.
Best Regards.