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.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:

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.


just have a look on the ofVideoPlayer instead the ofVideoGrabber.