Grabbing Video from Video File instead of Camera

Hi all,
I am playing with an open source smile detector and at some point this program grabs the video with this function:

ofVideoGrabber cam;

cam.setDeviceID(which);
cam.initGrabber(width, height);

However, what I want is to grab video frames from a stored video file instead of a camera.
I’ve checked this page and tried to understand what setDeviceID() is doing:

http://www.openframeworks.cc/documentation?detail=ofVideoGrabber#ofVideoGrabber

But could not find anything useful. Where do you think I should check to find a function that takes video file as an input?

Thanks in advance.

hi!

just have a look on the ofVideoPlayer instead the ofVideoGrabber.

http://www.openframeworks.cc/documentation?adv=yes&detail=ofVideoPlayer#ofVideoPlayer

ben