You are here

protected function PHPVideoToolkit::_addMetaToFLV in Video 7

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

* When converting video to FLV the meta data has to be added by a ruby program called FLVTools2. * This is a second exec call only after the video has been converted to FLV * http://inlet-media.de/flvtool2 * * @access protected

File

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

Class

PHPVideoToolkit

Code

protected function _addMetaToFLV($files) {
  $file = array_pop($files);

  //			prepare the command suitable for exec
  $exec_string = $this
    ->_prepareCommand(PHPVIDEOTOOLKIT_FLVTOOLS_BINARY, '-U ' . $file);

  //			execute the command
  exec($exec_string);
  if (is_array($this->_processed[0])) {
    array_push($this->_processed[0], $exec_string);
  }
  else {
    $this->_processed[0] = array(
      $this->_processed[0],
      $exec_string,
    );
  }
  return true;
}