readVid: Load video file in memory

Description Usage Arguments Details Value See Also Examples

Description

This function reads a video file and return a vpVideo object that can be manipulated using the videoplayR image and video manipulation toolbox. This function should support most video formats and codecs listed at http://www.fourcc.org/codecs.php.

Usage

1
readVid(filename)

Arguments

filename

A character string of the path to the video file.

Details

The vpVideo object created by the readVid function is not a persistent object, but a pointer to a C++ object that cannot be saved for reuse in a different session.

Value

This function returns a vpVideo object.

See Also

readImg, readStream, getFrame, vpVideo

Examples

1
2
3
4
filename <- system.file("sample_vid/SampleVideo_1080x720_5mb.mp4", package = "videoplayR")
vid <- readVid(filename)
frame <- getFrame(vid, 1)
imshow(frame)

swarm-lab/videoplayR documentation built on May 30, 2019, 9:36 p.m.