Questions tagged [vfw]

Video for Windows (VFW) is a legacy API in Microsoft Windows to provide functions that enable an application to process video data.

Video for Windows (VFW) provides functions that enable an application to process video data. VFW was introduced in 16-bit Windows. Many of its features have been superseded by features in DirectX. For more information, see the DirectX documentation.

58 questions
7
votes
3 answers

How to copy image without using the clipboard?

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,…
Stefan Steiger
  • 78,642
  • 66
  • 377
  • 442
6
votes
2 answers

ISampleGrabber deprecated?

I have an old computer vision experiment that uses Video for Windows to grab frames from a camera connected to the PC. It's a hack, it uses VfW to create a preview window, then it does a GetDIBits from the window DC. I'm finally ready to port this…
Adrian McCarthy
  • 45,555
  • 16
  • 123
  • 175
6
votes
3 answers

Getting a snapshot from a webcam with Delphi

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…
rossmcm
  • 5,493
  • 10
  • 55
  • 118
6
votes
1 answer

Is it possible to encode using the MRLE codec on Video for Windows under Windows 8?

The Problem I have an old application that provides videos inside .avi containers using the MRLE codec. The code uses the Video for Windows API. This has worked admirably for many years, but I've just discovered that my code does not behave…
David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
5
votes
1 answer

How to get AVICOMPRESSOPTIONS without AVISaveOptions Dialog?

I am attempting to programmatically generate a AVI file from Bitmaps using an example I found somewhere online (can't remember the exact source). Here is my code to get the options unsafe private void SetOptions() { AVICOMPRESSOPTIONS…
4
votes
1 answer

Library or component for creating video files (AVI, etc.) with Delphi 6 (C/C++ OK too)?

I have a stream of JPEG frames and accompanying audio buffers that I want to write to a video file. If possible, I'd like to let the user choose their format from the available Windows codecs if the library/component supports the use of those. If…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
4
votes
1 answer

Lookup compressor/filter friendly name from FOURCC ID in Delphi 6 application?

I have a Delphi 6 application that asks the user to select an audio and video compressor using AVISaveOptions(). I then store the FOURCC IDs of each selection in a data file. I want to look up the Filter friendly name for each selection using the…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
3
votes
1 answer

Why is it necessary to nuke the IAviFile pointer in this case before calling AviFileExit()?

I found a Stack Overflow post with a sample showing how to get the duration of an AVI file: Getting AVI file duration I modified it for my purposes in my Delphi 6 app and created the code below. Initially I removed the line that nukes the IAviFile…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
2
votes
1 answer

Windows API Function AVIFileOpenW takes PAVISTREAM as input but AVIStreamSetFormat takes PAVIFILE

I am making a clipping software which clips the last 30 seconds of your screen. I am trying to write the results to an AVI file, but I am running into issues. Here is my code: #include #include #include #include…
joeymalvinni
  • 343
  • 9
2
votes
2 answers

VFW: AVIStreamGetFrameOpen() returns NULL

I'm trying to write a C++ Video class using the Video For Windows interface, based on concepts from this NeHe tutorial, but with more modern code (for OpenGL 3/4). In my function that initially loads the video (not retrieve the frames), I refer to…
TheTrueJard
  • 471
  • 4
  • 18
2
votes
4 answers

Where to find documentation for vfw.h?

I'm a Linux programmer adventuring on Microsoft territories, and I'm completely lost on where to find documentation for Windows APIs like VFW (Video for Windows). I'm trying to get a video stream from a webcam (OpenCV is not suitable for me). I'm…
lzm
  • 827
  • 2
  • 11
  • 25
2
votes
2 answers

Adjust webcam brightness (exposure/gain) C#

I'm trying to adjust the brightness of my webcam. I need 3 diffrent pictures taken with a diffrent brightness setting. I don't want to make it manual so if want to include the settings in the programm. Below ist the code I'm using. With the methode…
user3077796
  • 192
  • 1
  • 19
2
votes
1 answer

Can't create AVI file with both video and audio (VFW) in Delphi 6 app

I'm trying to write a Delphi 6 app that takes video and audio and writes it to an AVI using the VFW services. I managed to get the video stream working properly. It plays fine in VLC or Windows Media Player. But when I then add an audio stream…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
2
votes
1 answer

AVIERR_MEMORY error occurs during AVIStreamSetFormat() call

I have a Delphi 6 application that makes AVI movies. I have gotten to the point that I can write AVI files that have uncompressed video frames. When I try to create a compressed video stream I get an AVIERR_MEMORY error when I call…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
1
vote
1 answer

Video for Windows error 80044066

I'm using Video for Windows to record screen grabs to AVI files. Usually it works fine, but some users report the error: AVI error (80044066): Bad format Any explanations of what this error means and what might be causing it would be gratefully…
Mike Sutton
  • 4,191
  • 4
  • 29
  • 42
1
2 3 4