videoWriter: Create an object of class 'VideoWriter'

Description Usage Arguments Value Note Author(s) Examples

View source: R/VideoWriterClass.R

Description

Function for creating VideoWriter objects.

Usage

1
2
videoWriter(outputFile, fourcc, fps, height, width, isColor = TRUE,
  api = "ANY")

Arguments

outputFile

An character string corresponding to the path to an output file.

fourcc

A 4-character string corresponding to the fourcc code of the codec to be used. A list of fourcc codes can be obtained at http://www.fourcc.org/codecs.php.

fps

A numeric value corresponding to the framerate of the output video.

height

An integer value corresponding to the height of the video in pixels.

width

An integer value corresponding to the width of the video in pixels.

isColor

A logical indicating whether the output video is a color (default: TRUE) or grayscale (FALSE) video.

api

A character string corresponding to the API to use for reading the video from the file (see Note; default: "ANY").

Value

A VideoWriter object.

Note

Hereafter is a list of all supported APIs. Note that not all APIs will be available on your computer (actually most of them will not be).

Author(s)

Simon Garnier, garnier@njit.edu

Examples

1
# TODO

neuroconductor-releases/Rvision documentation built on Nov. 10, 2020, 9:10 p.m.