aboutsummaryrefslogtreecommitdiff
path: root/transcoders
diff options
context:
space:
mode:
authorHeshan <heshan@heidisoft.com>2011-03-18 00:13:45 +0530
committerHeshan <heshan@heidisoft.com>2011-03-18 00:13:45 +0530
commit69927fc15c744bd3602fe7d404af6a80130a1ce9 (patch)
tree5d4f042539bf1090359d9ea8a515904544add469 /transcoders
parent51c7e284ec5976d5918e506265154f34d32e9a48 (diff)
downloadvideo-69927fc15c744bd3602fe7d404af6a80130a1ce9.tar.gz
video-69927fc15c744bd3602fe7d404af6a80130a1ce9.tar.bz2
Fixed the JS issues and Select players and trasncoders
Diffstat (limited to 'transcoders')
-rw-r--r--transcoders/video_ffmpeg.inc4
-rw-r--r--transcoders/video_phpvideotoolkit.inc30
2 files changed, 31 insertions, 3 deletions
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' => '<div id="video_ffmpeg">',
+ '#markup' => '<div id="video_ffmpeg">',
);
$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' => '</div>',
+ '#markup' => '</div>',
);
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' => '<div id="video_phpvideotoolkit">',
+ );
+ $form['phpvideotoolkit']['video_ffmpeg_nice_enable'] = array(
+ '#type' => 'checkbox',
+ '#title' => t('Enable the use of <b>nice</b> 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' => '</div>',
+ );
return $form;
}