You are here

public function PHPVideoToolkit::addCommand in Video 7

Same name and namespace in other branches
  1. 7.2 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: * @param mixed $argument * @return boolean

23 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. * * @access public *
PHPVideoToolkit::adjustVolume in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
* This will adjust the audio volume. * * @access public *
PHPVideoToolkit::disableAudio in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
* Disables audio encoding * * @access public *
PHPVideoToolkit::disableVideo in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
* Disables video encoding * * @access public *
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. * * @access public *

... See full list

File

libraries/phpvideotoolkit/phpvideotoolkit.php5.php, line 3857

Class

PHPVideoToolkit

Code

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