You are here

public function video_ffmpeg::__construct in Video 7

Same name and namespace in other branches
  1. 6.4 transcoders/video_ffmpeg.inc \video_ffmpeg::__construct()
1 call to video_ffmpeg::__construct()
video_ffmpeg_php::__construct in transcoders/video_ffmpeg_php.inc
Constructor. Just call the parent.
1 method overrides video_ffmpeg::__construct()
video_ffmpeg_php::__construct in transcoders/video_ffmpeg_php.inc
Constructor. Just call the parent.

File

transcoders/video_ffmpeg.inc, line 18

Class

video_ffmpeg

Code

public function __construct() {

  // setting up trasncoders path
  $this->params['ffmpeg'] = variable_get('video_ffmpeg_path', '/usr/bin/ffmpeg');
  $this->params['ffmpeg2theora'] = variable_get('video_ffmpeg2theora_path', '/usr/bin/ffmpeg2theora');
  $this->params['mcoder'] = variable_get('video_mcoder_path', '/usr/bin/mcoder');
  $this->params['handbreke'] = variable_get('video_handbreke_path', '/usr/bin/HandBrakeCLI');
  $this->params['other'] = variable_get('video_other_path', '');
  $this->params['thumb_command'] = variable_get('video_ffmpeg_thumbnailer_options', $this->thumb_command);
  $this->nice = variable_get('video_ffmpeg_nice_enable', FALSE) ? 'nice -n 19 ' : '';
  $this->params['enable_faststart'] = variable_get('video_ffmpeg_enable_faststart', 0);
  $this->params['faststart_cmd'] = variable_get('video_ffmpeg_faststart_cmd', '/usr/bin/qt-faststart');
}