You are here

protected function PHPVideoToolkit::_logResult in Video 7.2

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

Adds lines to the current log file.

@access protected

Parameters

$message:

$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.
PHPVideoToolkit::_postProcess in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
Carries out the post processing of the files.

File

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

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,
  ));
}