2007-08-20

Convert JPEG to AVI using CAVIGenerator

# Source code : CAVIGenerator

# AVICOMPRESSOPTIONS
AVICOMPRESSOPTIONS opts;
opts.fccType=streamtypeVIDEO;
opts.fccHandler=mmioFOURCC('I','V','4','1'); // codec you want to use
opts.dwFlags=8;
opts.dwKeyFrameEvery=30;

//AVICOMPRESSF_DATARATE = 0x2; AVICOMPRESSF_INTERLEAVE = 0x1; AVICOMPRESSF_KEYFRAMES = 0x4; AVICOMPRESSF_VALID = 0x8;


# You can find the list of available VCM codecs installed on a given machine that you can use in VFW by enumerating the values in the registry key :
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32],
vidc.xxxx

No comments:

Post a Comment