From 69927fc15c744bd3602fe7d404af6a80130a1ce9 Mon Sep 17 00:00:00 2001 From: Heshan Date: Fri, 18 Mar 2011 00:13:45 +0530 Subject: Fixed the JS issues and Select players and trasncoders --- transcoders/video_ffmpeg.inc | 4 ++-- transcoders/video_phpvideotoolkit.inc | 30 +++++++++++++++++++++++++++++- 2 files changed, 31 insertions(+), 3 deletions(-) (limited to 'transcoders') diff --git a/transcoders/video_ffmpeg.inc b/transcoders/video_ffmpeg.inc index cf2ff7f..2cdf417 100644 --- a/transcoders/video_ffmpeg.inc +++ b/transcoders/video_ffmpeg.inc @@ -296,7 +296,7 @@ class video_ffmpeg implements transcoder_interface { $form = array(); $form['video_ffmpeg_start'] = array( '#type' => 'markup', - '#value' => '
', + '#markup' => '
', ); $form['video_ffmpeg_nice_enable'] = array( '#type' => 'checkbox', @@ -410,7 +410,7 @@ class video_ffmpeg implements transcoder_interface { $form['video_ffmpeg_end'] = array( '#type' => 'markup', - '#value' => '
', + '#markup' => '
', ); return $form; } diff --git a/transcoders/video_phpvideotoolkit.inc b/transcoders/video_phpvideotoolkit.inc index abd18e0..c9a27a4 100644 --- a/transcoders/video_phpvideotoolkit.inc +++ b/transcoders/video_phpvideotoolkit.inc @@ -405,7 +405,7 @@ class video_phpvideotoolkit implements transcoder_interface { * @see sites/all/modules/video/includes/transcoder_interface#get_help() */ public function get_help() { - return l(t('FFMPEG Online Manual'), 'http://www.ffmpeg.org/'); + return l(t('PHP Video Toolkit online documentation'), 'http://sourceforge.net/projects/phpvideotoolkit/'); } /** @@ -414,6 +414,34 @@ class video_phpvideotoolkit implements transcoder_interface { */ public function admin_settings() { $form = array(); + $form = array(); + $form['video_ffmpeg_toolkit_start'] = array( + '#type' => 'markup', + '#markup' => '
', + ); + $form['phpvideotoolkit']['video_ffmpeg_nice_enable'] = array( + '#type' => 'checkbox', + '#title' => t('Enable the use of nice when calling the command.'), + '#default_value' => variable_get('video_ffmpeg_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' => '
', + ); return $form; } -- cgit v1.2.3