class VideoCodec extends BaseQualifier

Determines the video codec to use.

Learn more: Video codec settings

Methods

auto()

Auto video codec.

vp8()

Video codec vp8.

vp9()

Video codec vp9.

proRes()

Video codec proRes (Apple ProRes 422 HQ).

h264(string $profile = null, string $level = null)

Video codec h264.

h265()

Video codec h265.

theora()

Video codec theora.

__construct(string $codec)

VideoCodec constructor.

codec(string $codec)

Sets the codec.

profile(string $profile)

Sets codec profile.

level(string $level)

Sets codec level.

fromParams(array $qualifiers)

Creates a new VideoCodec instance from an array of qualifiers.

Details

static VideoCodec auto()

Auto video codec.

Return Value

VideoCodec

static VideoCodec vp8()

Video codec vp8.

Return Value

VideoCodec

static VideoCodec vp9()

Video codec vp9.

Return Value

VideoCodec

static VideoCodec proRes()

Video codec proRes (Apple ProRes 422 HQ).

Return Value

VideoCodec

static VideoCodec h264(string $profile = null, string $level = null)

Video codec h264.

Parameters

Name Type Description
$profile string
$level string

Return Value

VideoCodec

static VideoCodec h265()

Video codec h265.

Return Value

VideoCodec

static VideoCodec theora()

Video codec theora.

Return Value

VideoCodec

__construct(string $codec)

VideoCodec constructor.

Parameters

Name Type Description
$codec string The video codec.

$this codec(string $codec)

Sets the codec.

Parameters

Name Type Description
$codec string The codec name.

Return Value

$this

$this profile(string $profile)

Sets codec profile.

Parameters

Name Type Description
$profile string The profile. Use the constants defined in the VideoCodecProfile class.

Return Value

$this

See also

VideoCodecProfile

$this level(string $level)

Sets codec level.

Parameters

Name Type Description
$level string The codec level. Use the constants defined in the VideoCodecLevel class.

Return Value

$this

See also

VideoCodecLevel

static VideoCodec fromParams(array $qualifiers)

Creates a new VideoCodec instance from an array of qualifiers.

Parameters

Name Type Description
$qualifiers array The video codec qualifiers.

Return Value

VideoCodec

Constants

AUTO

VP9

VP8

PRO_RES

H264

H265

THEORA