PHP Class FFmpeg, ffmpeg-php-class

Datei anzeigen Open project: olaferlandsen/ffmpeg-php-class Class Usage Examples

Public Properties

Property Type Description
$command

Public Methods

Method Description
__call ( $method, $args )
__construct ( $ffmpeg = null, $input = false )
_unset ( string $key ) : object
aspect ( string $aspect ) : object
audioBitrate ( $ab )
audioChannels ( $ac )
audioCodec ( $acodec = 'copy' )
audioDisable ( )
audioQuality ( $aq )
audioSamplingFrequency ( $ar )
bitrate ( string $b ) : object
call ( $method, $args = [] )
clear ( ) : object
duration ( string $t ) : object
ffmpeg ( $ffmpeg ) : object
fileSizeLimit ( string $fs ) : object
flip ( $flip ) : object
forceFormat ( string $forceFormat ) : object
frameRate ( string $r ) : object
grayScale ( ) : object
hFlip ( ) : object
input ( string $file ) : object
itsoffset ( $itsoffset ) : object Set the input time offset in seconds. [-]hh:mm:ss[.xxx] syntax is also supported. The offset is added to the timestamps of the input files.
logLevel ( string $level = "verbose" ) : object
output ( string $output = null, string $forceFormat = null ) : object
overwrite ( ) : object
pass ( integer $pass ) : object
position ( $ss ) : object When used as an input option (before "input"), seeks in this input file to position. When used as an output option (before an output filename), decodes but discards input until the timestamps reach position. This is slower, but more accurate.
progress ( string $progress ) : object
ready ( string $append = null ) : object
redirectOutput ( string $std ) : object
set ( string $key, string $value = null, boolen $append = false ) : object
size ( string $s ) : object
thumb ( string $size, string $start, string $videoFrames = 1 ) : object ATENTION!: This method is experimental
transpose ( string $transpose ) : object
vFlip ( ) : object
videoCodec ( string $vcodec = 'copy' ) : object
videoDisable ( ) : object
videoFrames ( string $number ) : object

Method Details

__call() public method

public __call ( $method, $args )

__construct() public method

public __construct ( $ffmpeg = null, $input = false )

_unset() public method

public _unset ( string $key ) : object
$key string
return object Self

aspect() public method

public aspect ( string $aspect ) : object
$aspect string sample aspect ratio @return object @access public
return object

audioBitrate() public method

public audioBitrate ( $ab )

audioChannels() public method

public audioChannels ( $ac )

audioCodec() public method

public audioCodec ( $acodec = 'copy' )

audioDisable() public method

public audioDisable ( )

audioQuality() public method

public audioQuality ( $aq )

audioSamplingFrequency() public method

public audioSamplingFrequency ( $ar )

bitrate() public method

public bitrate ( string $b ) : object
$b string set bitrate (in bits/s) @return object @access public @example $ffmpeg->bitrate('3000/1000');
return object

call() public method

public call ( $method, $args = [] )

clear() public method

public clear ( ) : object
return object @access public

duration() public method

public duration ( string $t ) : object
$t string Stop writing the output after its duration reaches duration. duration may be a number in seconds, or in hh:mm:ss[.xxx] form. @return object @access public
return object

ffmpeg() public method

public ffmpeg ( $ffmpeg ) : object
return object @param string ffmpeg @access public

fileSizeLimit() public method

public fileSizeLimit ( string $fs ) : object
$fs string
return object Self

flip() public method

public flip ( $flip ) : object
return object @param $flip v=vertial OR h=horizontal @access public @example $ffmpeg->flip('v');

forceFormat() public method

public forceFormat ( string $forceFormat ) : object
$forceFormat string Force format output @return object @access public
return object

frameRate() public method

public frameRate ( string $r ) : object
$r string Set frame rate (Hz value, fraction or abbreviation). @return object @access public
return object

grayScale() public method

public grayScale ( ) : object
return object Self

hFlip() public method

public hFlip ( ) : object
return object @access public

input() public method

public input ( string $file ) : object
$file string input file path @return object @access public @version 1.2 Fix by @propertunist
return object

itsoffset() public method

@param string $t Specifying a positive offset means that the corresponding streams are delayed by offset seconds.
public itsoffset ( $itsoffset ) : object
return object @access public

logLevel() public method

public logLevel ( string $level = "verbose" ) : object
$level string @return object @access public
return object

output() public method

public output ( string $output = null, string $forceFormat = null ) : object
$output string Output file path @param string $forceFormat Force format output @return object @access public
$forceFormat string
return object

overwrite() public method

public overwrite ( ) : object
return object Self

pass() public method

public pass ( integer $pass ) : object
$pass integer
return object Self

position() public method

@param string $s position may be either in seconds or in hh:mm:ss[.xxx] form.
public position ( $ss ) : object
return object @access public

progress() public method

public progress ( string $progress ) : object
$progress string
return object Self

ready() public method

public ready ( string $append = null ) : object
$append string
return object @param string $append @access public

redirectOutput() public method

public redirectOutput ( string $std ) : object
$std string @return object @access public
return object

set() public method

public set ( string $key, string $value = null, boolen $append = false ) : object
$key string
$value string
$append boolen
return object Self

size() public method

public size ( string $s ) : object
$s string Set frame size. @return object @access public
return object

thumb() public method

@param string $size
public thumb ( string $size, string $start, string $videoFrames = 1 ) : object
$size string
$start string @param string $videoFrames @return object @access public @version 1.2 Fix by @propertunist
$videoFrames string
return object

transpose() public method

public transpose ( string $transpose ) : object
$transpose string http://ffmpeg.org/ffmpeg.html#transpose @return object @access public
return object

vFlip() public method

public vFlip ( ) : object
return object @access public

videoCodec() public method

public videoCodec ( string $vcodec = 'copy' ) : object
$vcodec string
return object Self

videoDisable() public method

public videoDisable ( ) : object
return object Self

videoFrames() public method

public videoFrames ( string $number ) : object
$number string @return object @access public
return object

Property Details

$command public_oe property

public $command