You are here

function ffmpeg_check_exe_path in Video 6.3

Implementing hook_chcek_exepath() on inc To check the the path is executable or not

Parameters

<type> path to check:

Return value

bool TRUE/FALSE

File

plugins/ffmpeg.inc, line 202
Provide a api for video conversion and auto thumbnailing using ffmpeg.

Code

function ffmpeg_check_exe_path($path = NULL) {
  if (!$path) {
    $path = variable_get('video_transcoder_path', '/usr/bin/ffmpeg');
  }
  if (function_exists('is_executable')) {
    $test = 'is_executable';
  }
  else {
    $test = 'file_exists';
  }
  return $test($path);
}