From f53f62a5ecf8343941e2c74d06b429bb271d7df2 Mon Sep 17 00:00:00 2001 From: Heshan Date: Sun, 13 Mar 2011 00:03:05 +0530 Subject: Completed some transcoding stuff and tested the video convert on save. --- modules/video_ui/video.preset.inc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'modules/video_ui') diff --git a/modules/video_ui/video.preset.inc b/modules/video_ui/video.preset.inc index 4036c82..981370b 100644 --- a/modules/video_ui/video.preset.inc +++ b/modules/video_ui/video.preset.inc @@ -42,6 +42,16 @@ function video_preset_default_form($form, &$form_state, $preset) { '#collapsible' => TRUE, '#collapsed' => FALSE ); + $video_extension = array(); + foreach (video_video_extensions () as $extension => $theme) { + $video_extension[$extension] = $extension; + } + $form['settings']['video']['video_extension'] = array( + '#type' => 'select', + '#title' => t('Video output extension'), + '#description' => t('Extension of the output video.'), + '#options' => $video_extension + ); $form['settings']['video']['video_codec'] = array( '#type' => 'select', '#title' => t('Video codec'), @@ -523,7 +533,7 @@ function video_preset_delete_confirm_submit($form, &$form_state) { */ function _video_preset_name_validate($element, &$form_state) { $error = video_validate_preset_name($form_state['values']['name']); - if ($error && !isset($form_state['values']['pid']) && !isset ($form_state['values']['default'])) { + if ($error && !isset($form_state['values']['pid']) && !isset($form_state['values']['default'])) { form_set_error('name', $error); } } -- cgit v1.2.3