[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/video/video_preset/ -> html5_webm.inc (source)

   1  <?php
   2  /*
   3   * @file
   4   * Class file used to store metadata on the video.
   5   *
   6   */
   7  class html5_webm implements video_preset_interface {
   8  
   9    protected $name = 'HTML5 WebM';
  10    protected $value = 'html5_webm';
  11  
  12    public function __construct() {
  13  
  14    }
  15  
  16    /**
  17     * Interface Implementations
  18     * @see sites/all/modules/video/includes/metadata_interface#get_name()
  19     */
  20    public function get_name() {
  21      return $this->name;
  22    }
  23  
  24    /**
  25     * Interface Implementations
  26     * @see sites/all/modules/video/includes/metadata_interface#get_help()
  27     */
  28    public function get_help() {
  29      return t('Creates files that natively play in Google Chrome using HTML5.', array());
  30    }
  31  
  32    /**
  33     * Interface Implementations
  34     * @see sites/all/modules/video/includes/metadata_interface#get_value()
  35     */
  36    public function get_value() {
  37      return $this->value;
  38    }
  39  
  40    public function get_properties() {
  41      $properties = array(
  42        'extension' => 'webm',
  43        'quality' => '',
  44        'speed' => '',
  45        'upscale' => '',
  46        'stretch' => '',
  47        'frame_rate' => '',
  48        'max_frame_rate' => '',
  49        'keyframe_interval' => '',
  50        'video_codec' => '',
  51        'video_bitrate' => '',
  52        'aspect_mode' => '',
  53        'bitrate_cap' => '',
  54        'buffer_size' => '',
  55        'h264_profile' => '',
  56        'h264_level' => '',
  57        'skip_video' => '',
  58        'audio_codec' => '',
  59        'audio_quality' => '',
  60        'audio_bitrate' => '',
  61        'audio_channels' => '',
  62        'audio_sample_rate' => '',
  63        'skip_audio' => '',
  64        'start_clip' => '',
  65        'clip_length' => '',
  66        'command' => array(
  67          '!cmd_path -pass 1 -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',
  68          '!cmd_path -y -pass 2 -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'
  69        )
  70      );
  71      return $properties;
  72    }
  73  }


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7