Learn R Programming

Rvision (version 0.6.0)

setProp.Rcpp_Stream: Set/Get Video Properties

Description

Set or get the values of various properties of the Video or Stream object.

Usage

# S3 method for Rcpp_Stream
setProp(x, property, value)

# S3 method for Rcpp_Stream getProp(x, property)

# S3 method for Rcpp_Video setProp(x, property, value)

# S3 method for Rcpp_Video getProp(x, property)

# S3 method for Rcpp_VideoWriter setProp(x, property, value)

# S3 method for Rcpp_VideoWriter getProp(x, property)

setProp(x, property, value)

getProp(x, property)

Arguments

x

A Video or Stream object.

property

A character string specifying the name of the property to modify (see details below for a complete list).

value

The new value of the property.

Value

setProp returns TRUE is the property was set successfully. getProp returns a numeric value or a character string depending on property.

See Also

Video, video, Stream, stream

Examples

Run this code
# NOT RUN {
balloon <- video(system.file("sample_vid/Balloon.mp4", package = "Rvision"))
getProp(balloon, "FPS")
setProp(balloon, "POS_FRAMES", 25)

# }

Run the code above in your browser using DataLab