You are here

public function video_phpvideotoolkit::admin_settings in Video 7

Interface Implementations

Overrides transcoder_interface::admin_settings

See also

sites/all/modules/video/includes/transcoder_interface#admin_settings()

File

transcoders/video_phpvideotoolkit.inc, line 414

Class

video_phpvideotoolkit

Code

public function admin_settings() {
  $form = array();
  $form = array();
  $form['video_ffmpeg_toolkit_start'] = array(
    '#type' => 'markup',
    '#markup' => '<div id="video_phpvideotoolkit">',
  );
  $form['phpvideotoolkit']['video_phpvideotoolkit_nice_enable'] = array(
    '#type' => 'checkbox',
    '#title' => t('Enable the use of <b>nice</b> when calling the command.'),
    '#default_value' => variable_get('video_phpvideotoolkit_nice_enable', TRUE),
    '#description' => t('The nice command Invokes a command with an altered scheduling priority.  This option may not be available on windows machines, so disable it.'),
  );

  // FFMPEG
  $form['phpvideotoolkit']['transcoders'] = array(
    '#type' => 'fieldset',
    '#title' => t('Path to Transcoder Executables'),
    '#collapsible' => TRUE,
    '#collapsed' => FALSE,
  );
  $form['phpvideotoolkit']['transcoders']['video_ffmpeg_path'] = array(
    '#type' => 'textfield',
    '#title' => t('FFMPEG'),
    '#description' => t('Absolute path to ffmpeg executable. This will provide a token of !ffmpeg to preset commands.'),
    '#default_value' => variable_get('video_ffmpeg_path', '/usr/bin/ffmpeg'),
  );
  $form['video_ffmpeg_toolkit_end'] = array(
    '#type' => 'markup',
    '#markup' => '</div>',
  );
  return $form;
}