SIVP Toolbox
Last update : April, 2006

aviopen - Open a video file. (experimental)

Calling Sequence

n = aviopen(filename)

Parameters

Description

aviopen open a video file, but it does not read frames from the file. Please use im=avireadframe(n) to get a frame from the n'th opened video file. Remember to close the opened file using aviclose(n) or avicloseall().

Video support for SIVP is only available when SIVP is compiled with OpenCV which support video I/O.

Examples

	
    n = aviopen(SCI+'/contrib/sivp/images/video.avi');
    im = avireadframe(n); //get a frame
    imshow(im);

    avilistopened()
    aviclose(n);

Authors

Shiqi Yu <shiqi.yu[at]gmail.com>

Availability

The latest version of SIVP can be found at

http://sivp.sourceforge.net

See Also

aviinfo,  camopen,  avifile,  addframe,  aviclose,  avicloseall,  avilistopened,  avireadframe,