You are here

protected function PHPVideoToolkit::_logResult in Video 7

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

* Adds lines to the current log file. * * @access protected *

Parameters

$message: * @param $replacements

2 calls to PHPVideoToolkit::_logResult()
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 *
PHPVideoToolkit::_postProcess in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
* Carries out the post processing of the files. * * @access protected *

File

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

Class

PHPVideoToolkit

Code

protected function _logResult($message, $replacements = false) {
  $last = $this
    ->getLastCommand();
  if (is_array($last) === true) {
    $last = implode("\r", $last);
  }
  $this
    ->_addToLog(array(
    $this
      ->_getMessage('ffmpeg_log_separator'),
    $this
      ->_getMessage('ffmpeg_log_ffmpeg_result'),
    $this
      ->_getMessage('ffmpeg_log_separator'),
    $this
      ->_getMessage($message, $replacements),
    $this
      ->_getMessage('ffmpeg_log_separator'),
    $this
      ->_getMessage('ffmpeg_log_ffmpeg_command'),
    $this
      ->_getMessage('ffmpeg_log_separator'),
    $last,
  ));
}