From f005859eec16dad0594bedd9593a8537bbda6e1b Mon Sep 17 00:00:00 2001 From: Heshan Wanigasooriya Date: Mon, 21 Feb 2011 09:31:51 +0000 Subject: Adding dependencies on the Preset module and added all presets are editable from the admin interface --- video_preset/hq_flash.inc | 77 ------------------------------------------- video_preset/html5_mp4.inc | 79 --------------------------------------------- video_preset/html5_ogv.inc | 77 ------------------------------------------- video_preset/html5_webm.inc | 78 -------------------------------------------- video_preset/iphone_mov.inc | 76 ------------------------------------------- 5 files changed, 387 deletions(-) delete mode 100644 video_preset/hq_flash.inc delete mode 100644 video_preset/html5_mp4.inc delete mode 100644 video_preset/html5_ogv.inc delete mode 100644 video_preset/html5_webm.inc delete mode 100644 video_preset/iphone_mov.inc (limited to 'video_preset') diff --git a/video_preset/hq_flash.inc b/video_preset/hq_flash.inc deleted file mode 100644 index bf87eba..0000000 --- a/video_preset/hq_flash.inc +++ /dev/null @@ -1,77 +0,0 @@ -name; - } - - /** - * Interface Implementations - * @see sites/all/modules/video/includes/metadata_interface#get_help() - */ - public function get_help() { -// return t('High Video', array()); - } - - /** - * Interface Implementations - * @see sites/all/modules/video/includes/metadata_interface#get_value() - */ - public function get_value() { - return $this->value; - } - - public function get_properties() { - $properties = array( - 'extension' => 'flv', - 'quality' => '', - 'speed' => '', - 'upscale' => '', - 'stretch' => '', - 'frame_rate' => '', - 'max_frame_rate' => '', - 'keyframe_interval' => '', - 'video_codec' => '', - 'video_bitrate' => '', - 'aspect_mode' => '', - 'bitrate_cap' => '', - 'buffer_size' => '', - 'h264_profile' => '', - 'h264_level' => '', - 'skip_video' => '', - 'audio_codec' => '', - 'audio_quality' => '', - 'audio_bitrate' => '', - 'audio_channels' => '', - 'audio_sample_rate' => '', - 'skip_audio' => '', - 'start_clip' => '', - 'clip_length' => '', - 'command' => array( - '!cmd_path -i !videofile -s !widthx!height -r 15 -b 250 -ar 22050 -ab 48 !convertfile' - ) - ); - return $properties; - } - -} - -?> diff --git a/video_preset/html5_mp4.inc b/video_preset/html5_mp4.inc deleted file mode 100644 index d55a52c..0000000 --- a/video_preset/html5_mp4.inc +++ /dev/null @@ -1,79 +0,0 @@ -name; - } - - /** - * Interface Implementations - * @see sites/all/modules/video/includes/metadata_interface#get_help() - */ - public function get_help() { -// return t('HTML5 MP4 Video', array()); - } - - /** - * Interface Implementations - * @see sites/all/modules/video/includes/metadata_interface#get_value() - */ - public function get_value() { - return $this->value; - } - - public function get_properties() { - $properties = array( - 'extension' => 'mp4', - 'quality' => '', - 'speed' => '', - 'upscale' => '', - 'stretch' => '', - 'frame_rate' => '', - 'max_frame_rate' => '', - 'keyframe_interval' => '', - 'video_codec' => '', - 'video_bitrate' => '', - 'aspect_mode' => '', - 'bitrate_cap' => '', - 'buffer_size' => '', - 'h264_profile' => '', - 'h264_level' => '', - 'skip_video' => '', - 'audio_codec' => '', - 'audio_quality' => '', - 'audio_bitrate' => '', - 'audio_channels' => '', - 'audio_sample_rate' => '', - 'skip_audio' => '', - 'start_clip' => '', - 'clip_length' => '', - 'command' => array( -// 'HandBrakeCLI --preset "iPhone & iPod Touch" --vb !videobitrate --width !width --two-pass --turbo --optimize --input !videofile --output !convertfile' - '!cmd_path -i !videofile -an -pass 1 -vcodec libx264 -vpre slow_firstpass -b 500k -threads 0 !convertfile', - '!cmd_path -i !videofile -acodec libfaac -ab 128k -pass 2 -vcodec libx264 -vpre slow -b 500k -threads 0 !convertfile' - ) - ); - return $properties; - } - -} - -?> \ No newline at end of file diff --git a/video_preset/html5_ogv.inc b/video_preset/html5_ogv.inc deleted file mode 100644 index ca15d37..0000000 --- a/video_preset/html5_ogv.inc +++ /dev/null @@ -1,77 +0,0 @@ -name; - } - - /** - * Interface Implementations - * @see sites/all/modules/video/includes/metadata_interface#get_help() - */ - public function get_help() { -// return t('HTML5 Theora Video', array()); - } - - /** - * Interface Implementations - * @see sites/all/modules/video/includes/metadata_interface#get_value() - */ - public function get_value() { - return $this->value; - } - - public function get_properties() { - $properties = array( - 'extension' => 'ogv', - 'quality' => '', - 'speed' => '', - 'upscale' => '', - 'stretch' => '', - 'frame_rate' => '', - 'max_frame_rate' => '', - 'keyframe_interval' => '', - 'video_codec' => '', - 'video_bitrate' => '', - 'aspect_mode' => '', - 'bitrate_cap' => '', - 'buffer_size' => '', - 'h264_profile' => '', - 'h264_level' => '', - 'skip_video' => '', - 'audio_codec' => '', - 'audio_quality' => '', - 'audio_bitrate' => '', - 'audio_channels' => '', - 'audio_sample_rate' => '', - 'skip_audio' => '', - 'start_clip' => '', - 'clip_length' => '', - 'command' => array( - 'ffmpeg2theora --videobitrate !videobitrate --max_size !widthx!height --output !convertfile !videofile' - ) - ); - return $properties; - } - -} - -?> diff --git a/video_preset/html5_webm.inc b/video_preset/html5_webm.inc deleted file mode 100644 index 38f6194..0000000 --- a/video_preset/html5_webm.inc +++ /dev/null @@ -1,78 +0,0 @@ -name; - } - - /** - * Interface Implementations - * @see sites/all/modules/video/includes/metadata_interface#get_help() - */ - public function get_help() { -// return t('HTML5 WebM Video', array()); - } - - /** - * Interface Implementations - * @see sites/all/modules/video/includes/metadata_interface#get_value() - */ - public function get_value() { - return $this->value; - } - - public function get_properties() { - $properties = array( - 'extension' => 'webm', - 'quality' => '', - 'speed' => '', - 'upscale' => '', - 'stretch' => '', - 'frame_rate' => '', - 'max_frame_rate' => '', - 'keyframe_interval' => '', - 'video_codec' => '', - 'video_bitrate' => '', - 'aspect_mode' => '', - 'bitrate_cap' => '', - 'buffer_size' => '', - 'h264_profile' => '', - 'h264_level' => '', - 'skip_video' => '', - 'audio_codec' => '', - 'audio_quality' => '', - 'audio_bitrate' => '', - 'audio_channels' => '', - 'audio_sample_rate' => '', - 'skip_audio' => '', - 'start_clip' => '', - 'clip_length' => '', - 'command' => array( - '!cmd_path -pass 1 -passlogfile !videofile -threads 16 -keyint_min 0 -g 250 -skip_threshold 0 -qmin 1 -qmax 51 -i !videofile -vcodec libvpx -b 204800 -s !widthx!height -aspect 4:3 -an -f webm -y NUL', - '!cmd_path -pass 2 -passlogfile !videofile -threads 16 -keyint_min 0 -g 250 -skip_threshold 0 -qmin 1 -qmax 51 -i !videofile -vcodec libvpx -b 204800 -s !widthx!height -aspect 4:3 -acodec libvorbis -ac 2 -y !convertfile' - ) - ); - return $properties; - } - -} - -?> diff --git a/video_preset/iphone_mov.inc b/video_preset/iphone_mov.inc deleted file mode 100644 index 4c8f9ae..0000000 --- a/video_preset/iphone_mov.inc +++ /dev/null @@ -1,76 +0,0 @@ -name; - } - - /** - * Interface Implementations - * @see sites/all/modules/video/includes/metadata_interface#get_help() - */ - public function get_help() { -// return t('HTML5 WebM Video', array()); - } - - /** - * Interface Implementations - * @see sites/all/modules/video/includes/metadata_interface#get_value() - */ - public function get_value() { - return $this->value; - } - - public function get_properties() { - $properties = array( - 'extension' => 'mov', - 'quality' => '', - 'speed' => '', - 'upscale' => '', - 'stretch' => '', - 'frame_rate' => '', - 'max_frame_rate' => '', - 'keyframe_interval' => '', - 'video_codec' => '', - 'video_bitrate' => '', - 'aspect_mode' => '', - 'bitrate_cap' => '', - 'buffer_size' => '', - 'h264_profile' => '', - 'h264_level' => '', - 'skip_video' => '', - 'audio_codec' => '', - 'audio_quality' => '', - 'audio_bitrate' => '', - 'audio_channels' => '', - 'audio_sample_rate' => '', - 'skip_audio' => '', - 'start_clip' => '', - 'clip_length' => '', - 'command' => array( - '!cmd_path -i !videofile -f mp4 -vcodec mpeg4 -maxrate 1000k -b 700k -qmin 3 -qmax 5 -bufsize 4096 -g 300 -acodec aac -ab 192 -s 320x240 -aspect 4:3 !convertfile') - ); - return $properties; - } - -} - -?> -- cgit v1.2.3