Learn R Programming

Rvision (version 0.6.0)

fourcc: Codec Name to FOURCC Code

Description

fource translates the 4-character name of a video codec into its corresponding FOURCC code.

Usage

fourcc(x)

Arguments

x

A 4-element character chain corresponding to the name of a valid video codec. A list of valid codec names can be found at http://www.fourcc.org/codecs.php.

Value

An integer value corresponding to the FOURCC code of the video codec.

See Also

VideoWriter, videoWriter, codec

Examples

Run this code
# NOT RUN {
fourcc("xvid")

# }

Run the code above in your browser using DataLab