Skip to contents

Retrieve the frame rate (in frames per second) of a Video, VideoStack, or VideoWriter object.

Usage

# S3 method for class 'Rcpp_Video'
fps(x)

# S3 method for class 'VideoStack'
fps(x)

# S3 method for class 'Rcpp_VideoWriter'
fps(x)

fps(x)

Arguments

x

A Video, VideoStack, or VideoWriter object.

Value

A numeric value.

Author

Simon Garnier, garnier@njit.edu

Examples

balloon <- video(system.file("sample_vid/Balloon.mp4", package = "Rvision"))
#> Error: Could not open the video.
fps(balloon)
#> Error in eval(expr, envir, enclos): object 'balloon' not found