You are here

function drush_video_scheduler in Video 7.2

Same name and namespace in other branches
  1. 6.5 video.drush.inc \drush_video_scheduler()
  2. 6.4 video.drush.inc \drush_video_scheduler()
  3. 7 video.drush.inc \drush_video_scheduler()

Callback function

1 string reference to 'drush_video_scheduler'
video_drush_command in ./video.drush.inc
Implements hook_drush_command().

File

./video.drush.inc, line 27
Implement an drush commands to trasncode videos.

Code

function drush_video_scheduler() {
  $limit = (int) drush_get_option('limit', variable_get('video_ffmpeg_instances', 5));
  $GLOBALS['conf']['video_ffmpeg_instances'] = $limit;

  // include our conversion class (also contains our defines)
  $transcoder = new Transcoder();
  $transcoder
    ->runQueue();
}