PHP FFMpeg API
Class

FFMpeg\Format\Video\Ogg

class Ogg extends DefaultVideo

The Ogg video format

Methods

integer getWidth()

Returns the width

from DefaultVideo
integer getHeight()

Returns the height

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

Set the dimensions

from DefaultVideo
setResizeMode(string $mode)

Set the resize mode

from DefaultVideo
string getResizeMode()

Get the current resize mode

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
getAvailableAudioCodecs()

{@inheritDoc}

getAvailableVideoCodecs()

{@inheritDoc}

Details

in DefaultVideo at line 35
public integer getWidth()

Returns the width

Return Value

integer

in DefaultVideo at line 43
public integer getHeight()

Returns the height

Return Value

integer

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

Set the dimensions

Parameters

integer $width The heigth
integer $height The width

Exceptions

InvalidArgumentException

in DefaultVideo at line 77
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 95
public string getResizeMode()

Get the current resize mode

Return Value

string

in DefaultVideo at line 103
public integer getFrameRate()

Returns the frame rate

Return Value

integer

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

Set the framerate

Parameters

integer $frameRate

Exceptions

InvalidArgumentException

in DefaultVideo at line 129
public getVideoCodec()

{@inheritdoc}

in DefaultVideo at line 141
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 158
public getGOPsize()

{@inheritdoc}

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

Set the GOP size

Parameters

integer $GOPsize

Exceptions

InvalidArgumentException

at line 29
public getAvailableAudioCodecs()

{@inheritDoc}

at line 37
public getAvailableVideoCodecs()

{@inheritDoc}