Originally Posted by
stampede
Which operating systems you want to support ? You can use OpenCV to capture and write frames to file, its cross-platform but AFAIK wont give you full control over camera parameters (like gain, exposure, zoom etc. ). On windows, you can use DirectShow, for linux there is v4l, I dont know about mac.
Definitely you dont have to write separate code for every camera model or write a driver, this would be ridiculous, just use one of mentioned interfaces (DirectShow, OpenCV, v4l).