From b6e86040dd3faa3a70ec16e77220d852bdb09a04 Mon Sep 17 00:00:00 2001 From: Heshan Wanigasooriya Date: Sun, 5 Dec 2010 12:56:20 +0000 Subject: Adding latest files. --- video_preset/html5_webm.inc | 78 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 video_preset/html5_webm.inc (limited to 'video_preset/html5_webm.inc') 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 @@ +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; + } + +} + +?> -- cgit v1.2.3