
This is actualy a badly munged copy of the software,which uses 32 bpp RGB
for the uncompressed capture.  16 BPP YUV is the design goal, but for some
reason the device driver, which worked fine in 3.2, hates my card in 4.1.1.
I have spoken to the mantainer of the driver, and it is aparently very 
difficult to reproduce.  (Sigh)

Anyway...

This is an extra cheesy video capture and playback set.  Its one redeeming
feature is that it can do 352x240x30fps with synced audio using only 20% of
my CPU (dual pentium-3 450).

to compile:  
cd video ; make
cd cvdir/mpeg ; make

This will make videocat, videoplay, getframe, and mpeg.  If you add
mpeg_musicin (from the mpeg_encode package, I think) and the mpegedit
package (I also think), the compressit script will make you mpeg-1
system streams of the video...

run videocat like so:
videocat filename width height framecount brightness contrast input field

or more specificly:
videocat test.ppm 352 240 56000 127 127 0

Break it when you're done.  It'll spit out "sync" messages every 11 seconds
or so.  If it doesn't spit out any sync messages, then its not getting any
frames.  It will by default request a interlaced image... to get just the
odd field, add one more argument:

videocat test.ppm 352 240 56000 127 127 0 anything

To play it back:

videoplay -f test.ppm

The frame rate will be completely messed up.  I haven't had the knowledge or
time to fix that yet...  I use it more to verify the file is at least close
to sane before doing the mpeg compression.

It will work well enough though to display a deformed image...  

The file format is a "P7" ppm file, I made them up...  Its YUV 422 data,
followed by 1472 samples of audio, some if which are skipped, to keep
the audio in sync.  See comments in videocat.c for more specifics.

The code is a mess...  

-Tommy Johnson
protius@bobdbob.com
