PHP FFMpeg API
Interface

FFMpeg\Format\Video\ResizableVideo

interface ResizableVideo implements Video

The resizable video interface

This interface provides methods for video resizing.

Methods

string getVideoCodec()

Returns the video codec

from Video
integer getWidth()

Returns the width setting.

integer getHeight()

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

array getComputedDimensions(integer $originalWidth, integer $originalHeight)

Returns the computed dimensions for the resize, after operation.

string getResizeMode()

Get the current resize mode name

Details

in Video at line 27
public string getVideoCodec()

Returns the video codec

Return Value

string

at line 32
public integer getWidth()

Returns the width setting.

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

Return Value

integer

at line 40
public integer getHeight()

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

Return Value

integer

at line 50
public array getComputedDimensions(integer $originalWidth, integer $originalHeight)

Returns the computed dimensions for the resize, after operation.

This method return the actual dimensions that FFmpeg will use.

Parameters

integer $originalWidth
integer $originalHeight

Return Value

array An indexed array containing the width and the height

at line 57
public string getResizeMode()

Get the current resize mode name

Return Value

string