PHP-FFMpeg API
Class

FFMpeg\Format\Video\X264

class X264 extends DefaultVideo

The X264 video format

Methods

integer getKiloBitrate()

Gets the kiloBitrate value.

from DefaultVideo
setKiloBitrate(integer $kiloBitrate)

Sets the kiloBitrate value.

from DefaultVideo
string getVideoCodec()

Returns the video codec.

from DefaultVideo
setVideoCodec(string $videoCodec)

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

from DefaultVideo
string getPasses()

Returns the number of passes.

integer getModulus()

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

Creates the progress listener.

from DefaultVideo
__construct($audioCodec = 'libfaac', $videoCodec = 'libx264')

Boolean supportBFrames()

Returns true if the current format supports B-Frames.

getAvailableAudioCodecs()

{@inheritDoc}

array getAvailableVideoCodecs()

Returns the list of available video codecs for this format.

Details

in DefaultVideo at line 38
public integer getKiloBitrate()

Gets the kiloBitrate value.

Return Value

integer

in DefaultVideo at line 49
public setKiloBitrate(integer $kiloBitrate)

Sets the kiloBitrate value.

Parameters

integer $kiloBitrate

Exceptions

InvalidArgumentException

in DefaultVideo at line 63
public string getVideoCodec()

Returns the video codec.

Return Value

string

in DefaultVideo 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 53
public string getPasses()

Returns the number of passes.

Return Value

string

at line 58
public integer getModulus()

Return Value

integer

in DefaultVideo 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 19
public __construct($audioCodec = 'libfaac', $videoCodec = 'libx264')

Parameters

$audioCodec
$videoCodec

at line 29
public Boolean supportBFrames()

Returns true if the current format supports B-Frames.

Return Value

Boolean

at line 37
public getAvailableAudioCodecs()

{@inheritDoc}

at line 45
public array getAvailableVideoCodecs()

Returns the list of available video codecs for this format.

Return Value

array