PHP-FFMpeg API
Class

FFMpeg\Format\Video\DefaultVideo

abstract class DefaultVideo extends DefaultAudio implements VideoInterface

The abstract default Video format

Methods

array() getExtraParams()

Returns an array of extra parameters to add to ffmpeg commandline.

from DefaultAudio
string getAudioCodec()

Returns the audio codec.

from DefaultAudio
setAudioCodec(string $audioCodec)

Sets the audio codec, Should be in the available ones, otherwise an exception is thrown.

from DefaultAudio
integer getAudioKiloBitrate()

Gets the audio kiloBitrate value.

from DefaultAudio
setAudioKiloBitrate(integer $kiloBitrate)

Sets the kiloBitrate value.

from DefaultAudio
array createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, Integer $pass, Integer $total)

Creates the progress listener.

integer getKiloBitrate()

Gets the kiloBitrate value.

setKiloBitrate(integer $kiloBitrate)

Sets the kiloBitrate value.

string getVideoCodec()

Returns the video codec.

setVideoCodec(string $videoCodec)

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

string getPasses()

Returns the number of passes.

integer getModulus()

Details

in DefaultAudio at line 33
public array() getExtraParams()

Returns an array of extra parameters to add to ffmpeg commandline.

Return Value

array()

in DefaultAudio at line 41
public string getAudioCodec()

Returns the audio codec.

Return Value

string

in DefaultAudio at line 54
public setAudioCodec(string $audioCodec)

Sets the audio codec, Should be in the available ones, otherwise an exception is thrown.

Parameters

string $audioCodec

Exceptions

InvalidArgumentException

in DefaultAudio at line 71
public integer getAudioKiloBitrate()

Gets the audio kiloBitrate value.

Return Value

integer

in DefaultAudio at line 82
public setAudioKiloBitrate(integer $kiloBitrate)

Sets the kiloBitrate value.

Parameters

integer $kiloBitrate

Exceptions

InvalidArgumentException

at line 108
public array createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, Integer $pass, Integer $total)

Creates the progress listener.

Parameters

MediaTypeInterface $media
FFProbe $ffprobe
Integer $pass The current pas snumber
Integer $total The total pass number

Return Value

array An array of listeners

at line 38
public integer getKiloBitrate()

Gets the kiloBitrate value.

Return Value

integer

at line 49
public setKiloBitrate(integer $kiloBitrate)

Sets the kiloBitrate value.

Parameters

integer $kiloBitrate

Exceptions

InvalidArgumentException

at line 63
public string getVideoCodec()

Returns the video codec.

Return Value

string

at line 75
public setVideoCodec(string $videoCodec)

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

Parameters

string $videoCodec

Exceptions

InvalidArgumentException

at line 92
public string getPasses()

Returns the number of passes.

Return Value

string

at line 100
public integer getModulus()

Return Value

integer