vfw

How to copy image without using the clipboard?

余生长醉 提交于 2020-01-02 03:37:09
问题 Question: I have the below code to capture an image from a webcam. My problem is this part: SendMessage(hCaptureWnd, WM_CAP_COPY, 0, 0); // copy it to the clipboard What it does is copy the image from the window to the clipboard, and then create a byte array out of it. It works - as long as you don't use the clipboard while the program is running. The problem is, this doesn't even work for myself, as I sometimes copy something while Visual Studio takes ages to start debug the web application,

AVI created with AVIStreamWrite has incorrect length and playback speed

陌路散爱 提交于 2019-12-13 08:28:45
问题 I'm trying to write to an AVI file using AVIStreamWrite but the resulting avi file is a bit messed up. The images in the avi contain the proper image and colors but the duration and speed of the video is off. I recorded a video that should have been around 7 seconds and looking at the file properties in Windows explorer it showed it had a duration of about 2 seconds. When I played it in Media Player it was too short and seemed to be playing very rapidly (motion in the video was like fast

Does DirectShow allow one to decode virtually any video based on installed codecs?

倾然丶 夕夏残阳落幕 提交于 2019-12-13 03:29:18
问题 I am comparing VFW, MediaFoundation, and DirectShow.. Although VFW is very old and dated, it at least allows a lot of flexibility in encoding and decoding videos because you can choose virtually any encoder/decoder, AFAIK, and you are not limited to a subset of decoders/encoders that only microsoft has chosen. Does DirectShow offer the ability to decode (decompress) multiple video kinds (like vfw) using any chosen codec, or must you only use a subset that microsoft has chosen? Indeed some api

Getting a snapshot from a webcam with Delphi

◇◆丶佛笑我妖孽 提交于 2019-11-29 00:17:13
I need to get a regular snapshot from a webcam in Delphi. Speed is not a problem (once a second is fine). I have tried demo code from based on stuff from http://delphi.pjh2.de but I can't get it to work. It compiles and runs OK but the callback function never fires. I don't have a real webcam but am running instead a simulator. The simulator works (I can see the video using Skype) but not with the test app. I don't really know where to start looking... Can anyone be bothered to try this code? (Apologies for the voluminous post - couldn't find how or if you can attach files - a zip file is

Getting a snapshot from a webcam with Delphi

空扰寡人 提交于 2019-11-27 15:15:04
问题 I need to get a regular snapshot from a webcam in Delphi. Speed is not a problem (once a second is fine). I have tried demo code from based on stuff from http://delphi.pjh2.de but I can't get it to work. It compiles and runs OK but the callback function never fires. I don't have a real webcam but am running instead a simulator. The simulator works (I can see the video using Skype) but not with the test app. I don't really know where to start looking... Can anyone be bothered to try this code?