Video acquisition in C/C++ using OpenCV