You are here

public function PHPVideoToolkit::addCommand in Video 7.2

Same name and namespace in other branches
  1. 7 libraries/phpvideotoolkit/phpvideotoolkit.php5.php \PHPVideoToolkit::addCommand()

Adds a command to be bundled into the ffmpeg command call. (SPECIAL NOTE; None of the arguments are checked or sanitized by this function. BE CAREFUL if manually using this. The commands and arguments are escaped however it is still best to check and sanitize any params given to this function)

@access public

Parameters

string $command:

mixed $argument:

Return value

boolean

24 calls to PHPVideoToolkit::addCommand()
PHPVideoToolkit::addWatermark in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
Adds a watermark to the outputted files. This effects both video and image output.
PHPVideoToolkit::adjustVolume in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
This will adjust the audio volume.
PHPVideoToolkit::disableAudio in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
Disables audio encoding
PHPVideoToolkit::disableVideo in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
Disables video encoding
PHPVideoToolkit::execute in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
Commits all the commands and executes the ffmpeg procedure. This will also attempt to validate any outputted files in order to provide some level of stop and check system.

... See full list

File

libraries/phpvideotoolkit/phpvideotoolkit.php5.php, line 3520
Libary to access FFmpeg

Class

PHPVideoToolkit

Code

public function addCommand($command, $argument = FALSE, $before_input = FALSE) {
  $this->_commands[$before_input][$command] = $argument === FALSE ? FALSE : escapeshellarg($argument);
  return TRUE;
}