PHP-FFMpeg API
Class

FFMpeg\Format\Audio\DefaultAudio

abstract class DefaultAudio extends EventEmitter implements AudioInterface, ProgressableInterface

Methods

array() getExtraParams()

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

string getAudioCodec()

Returns the audio codec.

setAudioCodec(string $audioCodec)

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

integer getAudioKiloBitrate()

Gets the audio kiloBitrate value.

setAudioKiloBitrate(integer $kiloBitrate)

Sets the kiloBitrate value.

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

Creates the progress listener.

Details

at line 33
public array() getExtraParams()

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

Return Value

array()

at line 41
public string getAudioCodec()

Returns the audio codec.

Return Value

string

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

at line 71
public integer getAudioKiloBitrate()

Gets the audio kiloBitrate value.

Return Value

integer

at line 82
public setAudioKiloBitrate(integer $kiloBitrate)

Sets the kiloBitrate value.

Parameters

integer $kiloBitrate

Exceptions

InvalidArgumentException

at line 96
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