I have created a small and simple-to-use webcam recording application in Delphi using the TVideoGrabber library.
It does exactly what I need but the output files (320×240 resolution 25 FPS) are huge – 10 seconds of recording can result in a 20mb+ AVI file using some of the codecs I have installed on my system!
I have tried several codecs – some have produced smaller files but the quality of the recording is usually poor and/or there are video-sound synchonisation issues.
It certainly seems that the problem is codec-related so I need someone experienced in video recording and/or TVideoGrabber development to find me a suitable codec (ideally freeware) and provide the relevant codec settings to achieve a good quality recording (AVI format) with good compression and no sound-sync issues.