View source
<?php
class iphone_mov implements video_preset_interface {
protected $name = 'iPhone MOV';
protected $value = 'iphone_mov';
public function __construct() {
}
public function get_name() {
return $this->name;
}
public function get_help() {
return t('Creates files that natively play on the iPhone using HTML5.', array());
}
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 -strict experimental -i !videofile -f mp4 -vcodec mpeg4 -maxrate 1000k -b 700k -qmin 3 -qmax 5 -bufsize 4096k -g 300 -acodec aac -ab 192k -s 320x240 -aspect 4:3 !convertfile',
),
);
return $properties;
}
}