PHP Class FFMpeg\Format\ProgressListener\AbstractProgressListener

Author: Robert Gruendler ([email protected])
Inheritance: extends Evenement\EventEmitter, implements Alchemy\BinaryDriver\Listeners\ListenerInterface
Show file Open project: php-ffmpeg/php-ffmpeg

Public Methods

Method Description
__construct ( FFMpeg\FFProbe $ffprobe, string $pathfile, integer $currentPass, integer $totalPass )
forwardedEvents ( )
getCurrentPass ( ) : integer
getCurrentTime ( ) : integer
getFFProbe ( ) : FFMpeg\FFProbe
getPathfile ( ) : string
getTotalPass ( ) : integer
handle ( $type, $data )

Protected Methods

Method Description
getPattern ( ) Get the regex pattern to match a ffmpeg stderr status line

Private Methods

Method Description
convertDuration ( string $rawDuration ) : number
getProgressInfo ( ) : array
initialize ( )
parseProgress ( string $progress ) : array

Method Details

__construct() public method

public __construct ( FFMpeg\FFProbe $ffprobe, string $pathfile, integer $currentPass, integer $totalPass )
$ffprobe FFMpeg\FFProbe
$pathfile string
$currentPass integer The cureent pass number
$totalPass integer The total number of passes

forwardedEvents() public method

public forwardedEvents ( )

getCurrentPass() public method

public getCurrentPass ( ) : integer
return integer

getCurrentTime() public method

public getCurrentTime ( ) : integer
return integer

getFFProbe() public method

public getFFProbe ( ) : FFMpeg\FFProbe
return FFMpeg\FFProbe

getPathfile() public method

public getPathfile ( ) : string
return string

getPattern() abstract protected method

Get the regex pattern to match a ffmpeg stderr status line
abstract protected getPattern ( )

getTotalPass() public method

public getTotalPass ( ) : integer
return integer

handle() public method

public handle ( $type, $data )