You are here

public function video_ffmpeg::__construct in Video 6.4

Same name and namespace in other branches
  1. 7 transcoders/video_ffmpeg.inc \video_ffmpeg::__construct()

File

transcoders/video_ffmpeg.inc, line 17

Class

video_ffmpeg

Code

public function __construct() {
  $this->nice = variable_get('video_ffmpeg_nice_enable', FALSE) ? 'nice -n 19 ' : '';
  $this->thumbcmdoptions = variable_get('video_ffmpeg_thumbnailer_options', '-i !videofile -an -y -f mjpeg -ss !seek -vframes 1 !thumbfile');
  $this->enablefaststart = variable_get('video_ffmpeg_enable_faststart', FALSE);
  $this->faststartcmd = variable_get('video_ffmpeg_faststart_cmd', '/usr/bin/qt-faststart');
  $this->cmdpath = variable_get('video_transcoder_path', '/usr/bin/ffmpeg');
  $this->logcommands = (bool) variable_get('video_ffmpeg_log_commands', TRUE);
}