diff options
author | Heshan Wanigasooriya <heshanmw@gmail.com> | 2010-12-05 12:56:20 +0000 |
---|---|---|
committer | Heshan Wanigasooriya <heshanmw@gmail.com> | 2010-12-05 12:56:20 +0000 |
commit | b6e86040dd3faa3a70ec16e77220d852bdb09a04 (patch) | |
tree | cdb4282446dfb0efd750b87a7aaedd30229f0ff9 /video_preset | |
parent | 973537f36c8f33473a00190aa64fc30b82d94c04 (diff) | |
download | video-b6e86040dd3faa3a70ec16e77220d852bdb09a04.tar.gz video-b6e86040dd3faa3a70ec16e77220d852bdb09a04.tar.bz2 |
Adding latest files.
Diffstat (limited to 'video_preset')
-rw-r--r-- | video_preset/.cvsignore | 1 | ||||
-rw-r--r-- | video_preset/hq_flash.inc | 77 | ||||
-rw-r--r-- | video_preset/html5_mp4.inc | 79 | ||||
-rw-r--r-- | video_preset/html5_ogv.inc | 77 | ||||
-rw-r--r-- | video_preset/html5_webm.inc | 78 | ||||
-rw-r--r-- | video_preset/iphone_mov.inc | 76 |
6 files changed, 388 insertions, 0 deletions
diff --git a/video_preset/.cvsignore b/video_preset/.cvsignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/video_preset/.cvsignore @@ -0,0 +1 @@ +.DS_Store diff --git a/video_preset/hq_flash.inc b/video_preset/hq_flash.inc new file mode 100644 index 0000000..bf87eba --- /dev/null +++ b/video_preset/hq_flash.inc @@ -0,0 +1,77 @@ +<?php + +//$Id$ +/* + * @file + * Class file used to store metadata on the video. + * + */ +class hq_flash implements video_preset_interface { + + protected $name = 'Flash'; + protected $value = 'hq_flash'; + + public function __construct() { + + } + + /** + * Interface Implementations + * @see sites/all/modules/video/includes/metadata_interface#get_name() + */ + public function get_name() { + return $this->name; + } + + /** + * Interface Implementations + * @see sites/all/modules/video/includes/metadata_interface#get_help() + */ + public function get_help() { +// return t('<b>High Video</b>', 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 new file mode 100644 index 0000000..d55a52c --- /dev/null +++ b/video_preset/html5_mp4.inc @@ -0,0 +1,79 @@ +<?php + +//$Id$ +/* + * @file + * Class file used to store metadata on the video. + * + */ +class html5_mp4 implements video_preset_interface { + + protected $name = 'HTML5 MP4'; + protected $value = 'html5_mp4'; + + public function __construct() { + + } + + /** + * Interface Implementations + * @see sites/all/modules/video/includes/metadata_interface#get_name() + */ + public function get_name() { + return $this->name; + } + + /** + * Interface Implementations + * @see sites/all/modules/video/includes/metadata_interface#get_help() + */ + public function get_help() { +// return t('<b>HTML5 MP4 Video</b>', 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 new file mode 100644 index 0000000..ca15d37 --- /dev/null +++ b/video_preset/html5_ogv.inc @@ -0,0 +1,77 @@ +<?php + +//$Id$ +/* + * @file + * Class file used to store metadata on the video. + * + */ +class html5_ogv implements video_preset_interface { + + protected $name = 'HTML5 Theora(ogv) (ffmpeg2theora)'; + protected $value = 'html5_ogv'; + + public function __construct() { + + } + + /** + * Interface Implementations + * @see sites/all/modules/video/includes/metadata_interface#get_name() + */ + public function get_name() { + return $this->name; + } + + /** + * Interface Implementations + * @see sites/all/modules/video/includes/metadata_interface#get_help() + */ + public function get_help() { +// return t('<b>HTML5 Theora Video</b>', 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 new file mode 100644 index 0000000..38f6194 --- /dev/null +++ b/video_preset/html5_webm.inc @@ -0,0 +1,78 @@ +<?php + +//$Id$ +/* + * @file + * Class file used to store metadata on the video. + * + */ +class html5_webm implements video_preset_interface { + + protected $name = 'HTML5 WebM'; + protected $value = 'html5_webm'; + + public function __construct() { + + } + + /** + * Interface Implementations + * @see sites/all/modules/video/includes/metadata_interface#get_name() + */ + public function get_name() { + return $this->name; + } + + /** + * Interface Implementations + * @see sites/all/modules/video/includes/metadata_interface#get_help() + */ + public function get_help() { +// return t('<b>HTML5 WebM Video</b>', 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 new file mode 100644 index 0000000..4c8f9ae --- /dev/null +++ b/video_preset/iphone_mov.inc @@ -0,0 +1,76 @@ +<?php + +//$Id$ +/* + * @file + * Class file used to store metadata on the video. + * + */ +class iphone_mov implements video_preset_interface { + + protected $name = 'iPhone MOV'; + protected $value = 'iphone_mov'; + + public function __construct() { + + } + + /** + * Interface Implementations + * @see sites/all/modules/video/includes/metadata_interface#get_name() + */ + public function get_name() { + return $this->name; + } + + /** + * Interface Implementations + * @see sites/all/modules/video/includes/metadata_interface#get_help() + */ + public function get_help() { +// return t('<b>HTML5 WebM Video</b>', 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; + } + +} + +?> |