Learn R Programming

Rvision (version 0.4.3)

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(obj, property, value)

# S3 method for Rcpp_Stream getProp(obj, property)

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

# S3 method for Rcpp_Video getProp(obj, property)

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

# S3 method for Rcpp_VideoWriter getProp(obj, property)

setProp(obj, property, value)

getProp(obj, property)

Arguments

obj

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)
release(balloon)

# }

Run the code above in your browser using DataLab