I am getting started with computer stereo vision. I am using very simple VideoCapture code and trying to save two videos that are synchronized against each other. So far I wrote code to save image pair when key is hit (source here). I used Android stopwatch apps (UltraChron Stopwatch Lite and Stopwatch Timer) on my Samsung Galaxy S3 mini to realize that my saved still images are out of sync (show different time on stopwatch).
I moved the waitKey function before "cap1 >> frame1;" and increased timeout to 1000ms (waitKey(1000);) - this helped getting about 1FPS but they still were not 100% in sync (only some frames were in sync). The webcams I use are Microsoft LifeCam Studio (resolution 640x480).
An ideal result would be a 100% synchronized stereo video stream with X FPS.
Thanks for help in advance!