I have following code which reads frames from video file and stores as jpg. The code works fine if I read frames from camera directly but for video file it doesn\'t read the