codec: Describe a codec

Description Usage Arguments Details Value Author(s) References See Also

Description

Create an object that contains a description of a codec for ffmpeg.

Usage

1
2
3
4
5
6
7
8
copy()
VP8(bitrate = 1, quality = 10, quantizer = NULL, constant = FALSE,
    altref = 0)
VP9(bitrate = 1, quality = 10, quantizer = NULL, constant = FALSE,
    pass = NULL, altref = 1, laginframes = ifelse(altref, 0, 16),
    threads = NULL, speed = NULL, tilecolumns = NULL, frameparallel = 0,
    an = FALSE)
vorbis()

Arguments

bitrate

A number of megabits per second.

quality

The constant quality setting (between 4 and 63) for variable bitrate mode.

quantizer

If not NULL, a vector of two values specifying minimum and maximum quantizer settings (between 0 and 63).

constant

A logical indicating whether to use a constant bitrate. If this is TRUE, quality and quantizer are ignored.

pass

If not NULL, either 1 or 2 to indicate which pass is being encoded (in two-pass encoding).

altref

Either 0 or 1, indicating whether to enable (1) or disable (0) the alternate reference frame.

laginframes

Number of frames to look ahead for alternate reference frame.

threads

Number of threads to use for encoding.

speed

Quality/speed ratio (higher numbers speed up encoding at the expense of quality).

tilecolumns

Number of tile columns.

frameparallel

Enable (1) or disable (0) frame parallel decodability features.

an

A logical indicating whether to disable audio recording.

Details

For VP9, setting both bitrate and quality produces “constrained quality”. To get “constant quality”, you must set bitrate to zero.

Value

A codec object.

Author(s)

Paul Murrell

References

https://ffmpeg.org/

See Also

ffmpeg


pmur002/ffmpeg documentation built on May 11, 2020, 5:52 a.m.