PHP FFMpeg API
Class

FFMpeg\Format\Video\WebM

class WebM extends DefaultVideo

The WebM video format

Constants

RESIZEMODE_FIT

RESIZEMODE_INSET

Methods

integer getWidth()

Returns the width setting.

from DefaultVideo
integer getHeight()

Returns the height setting The return of this method should not depend on a media file size

from DefaultVideo
setDimensions(integer $width, integer $height)

Set the dimensions

from DefaultVideo
array getComputedDimensions(integer $originalWidth, integer $originalHeight)

{@inheritdoc)

from DefaultVideo
setResizeMode(string $mode)

Set the resize mode

from DefaultVideo
string getResizeMode()

Get the current resize mode name

from DefaultVideo
integer getFrameRate()

Returns the frame rate

from DefaultVideo
setFrameRate(integer $frameRate)

Set the framerate

from DefaultVideo
getVideoCodec()

{@inheritdoc}

from DefaultVideo
setVideoCodec(string $videoCodec)

Set the video codec, Should be in the available ones, otherwise an exception is thrown

from DefaultVideo
getGOPsize()

{@inheritdoc}

from DefaultVideo
setGOPsize(integer $GOPsize)

Set the GOP size

from DefaultVideo
getExtraParams()

{@inheritDoc}

getAvailableAudioCodecs()

{@inheritDoc}

getAvailableVideoCodecs()

{@inheritDoc}

Details

in DefaultVideo at line 38
public integer getWidth()

Returns the width setting.

The return of this method should not depend on a media file size

Return Value

integer

in DefaultVideo at line 46
public integer getHeight()

Returns the height setting The return of this method should not depend on a media file size

Return Value

integer

in DefaultVideo at line 58
public setDimensions(integer $width, integer $height)

Set the dimensions

Parameters

integer $width The heigth
integer $height The width

Exceptions

InvalidArgumentException

in DefaultVideo at line 76
public array getComputedDimensions(integer $originalWidth, integer $originalHeight)

{@inheritdoc)

Parameters

integer $originalWidth
integer $originalHeight

Return Value

array An indexed array containing the width and the height

in DefaultVideo at line 108
public setResizeMode(string $mode)

Set the resize mode

Parameters

string $mode The mode, one of the self::RESIZEMODE_* constants

Exceptions

InvalidArgumentException

in DefaultVideo at line 126
public string getResizeMode()

Get the current resize mode name

Return Value

string

in DefaultVideo at line 134
public integer getFrameRate()

Returns the frame rate

Return Value

integer

in DefaultVideo at line 146
public setFrameRate(integer $frameRate)

Set the framerate

Parameters

integer $frameRate

Exceptions

InvalidArgumentException

in DefaultVideo at line 160
public getVideoCodec()

{@inheritdoc}

in DefaultVideo at line 172
public setVideoCodec(string $videoCodec)

Set the video codec, Should be in the available ones, otherwise an exception is thrown

Parameters

string $videoCodec

Exceptions

InvalidArgumentException

in DefaultVideo at line 189
public getGOPsize()

{@inheritdoc}

in DefaultVideo at line 201
public setGOPsize(integer $GOPsize)

Set the GOP size

Parameters

integer $GOPsize

Exceptions

InvalidArgumentException

at line 27
public getExtraParams()

{@inheritDoc}

at line 35
public getAvailableAudioCodecs()

{@inheritDoc}

at line 43
public getAvailableVideoCodecs()

{@inheritDoc}