Codec of a Video
Source:R/VideoClass.R, R/VideoStackClass.R, R/VideoWriterClass.R, and 1 more
codec.RdRetrieve the codec of a Video,
VideoStack, or VideoWriter object.
Usage
# S3 method for class 'Rcpp_Video'
codec(x)
# S3 method for class 'VideoStack'
codec(x)
# S3 method for class 'Rcpp_VideoWriter'
codec(x)
codec(x)Arguments
- x
A
Video,VideoStack, orVideoWriterobject.
Value
A character string corresponding to the FOURCC code of the codec.
Author
Simon Garnier, garnier@njit.edu
Examples
balloon <- video(system.file("sample_vid/Balloon.mp4", package = "Rvision"))
#> Error: Could not open the video.
codec(balloon)
#> Error in eval(expr, envir, enclos): object 'balloon' not found