Hi,
Hello,
First attempt for VFW capture support in Windows. For testing purposes only!
Enable it with: ./configure --enable-memalign-hack --enable-vfw-cap
It prints lots of (somewhat useless) debug messages. Image is upside down =). I just have to find the right PIX_FMT and width/height... I'm way too tired to look at that now.
Note: Run this FFmpeg from Windows' command prompts (cmd or command)! *Not MSys!*. This patch includes the patch I sent to ffmpeg-devel for interactive support for Windows. You must kill it with 'q' or Ctrl+C, or else the capture device won't be released, and you'll have to reboot Windows to get it back. MSys doesn't capture 'q' nor Ctrl+C, so it's doomed to make you loose control of the device.
Tried under Cygwin, I got this: $ ./ffmpeg -t 2 -y -an -s "320x240" outfile.mpg FFmpeg version SVN-r6907, Copyright (c) 2000-2006 Fabrice Bellard, et al. configuration: --enable-mp3lame --enable-a52 --disable-static --enable-shared --enable-pthreads --enable-swscaler --enable-avisynth --enable-gpl --extra-cflags=-march=pentium4 --enable-vfw-cap libavutil version: 49.0.2 libavcodec version: 51.24.0 libavformat version: 51.6.0 built on Nov 5 2006 23:14:45, gcc: 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125) vfw_read_header called capCreateCaptureWindow 1048992 and then hanged, nor 'q' nor Ctrl+C worked. My VfW default device is my hybrid analog-digital TV card, a bad beast that only Graphedit or Windows Media Center seem able to understand (VirtualDub and others have failed on it), so the "hang" is expected. Do you know how could I get the list of video devices in Windows, in a format valid for option -vd? (I also have firewire and a DV camcorder, and I could try to capture from it instead) Regards, V?ctor P.S: there were some trailing CRs in patch