You are here

public function video_conversion::process in Video 7

Same name and namespace in other branches
  1. 6.4 includes/conversion.inc \video_conversion::process()

Process the video through ffmpeg.

Parameters

$video: This can either be the file object or the file id (fid)

Return value

TRUE of FALSE if video was converted successfully.

1 call to video_conversion::process()
video_conversion::run_queue in includes/conversion.inc
Our main function to call when converting queued up jobs.

File

includes/conversion.inc, line 50

Class

video_conversion

Code

public function process($video) {
  if (is_object($video) && isset($video->fid)) {
    $return = $this
      ->render($video);
  }
  else {
    $video_object = $this
      ->load_job($video);
    $return = $this
      ->render($video_object);
  }
  return $return;
}