예제 #1
0
 public function __construct($input_output_type = Format::OUTPUT, Config $config = null)
 {
     parent::__construct($input_output_type, $config);
     if ($input_output_type === 'output') {
         $this->setAudioCodec('libvorbis')->setVideoCodec('libtheora')->setFormat('ogg');
     }
     $this->_restricted_audio_codecs = array('libvorbis', 'vorbis');
     $this->_restricted_video_codecs = array('libtheora', 'theora');
 }
예제 #2
0
 public function __construct($input_output_type = Format::OUTPUT, Config $config = null)
 {
     parent::__construct($input_output_type, $config);
     $this->_format = array_merge($this->_format, array('h264_preset' => null, 'h264_tune' => null, 'h264_constant_quantization' => null));
     $this->_format_to_command = array_merge($this->_format_to_command, array('h264_preset' => '-preset <setting>', 'h264_tune' => '-tune <setting>', 'h264_constant_quantization' => '-qp <setting>'));
     $this->_restricted_video_presets = null;
     if ($input_output_type === 'output') {
         $this->setAudioCodec('mp3')->setVideoCodec('h264')->setFormat('h264');
     }
 }
예제 #3
0
 public function __construct($input_output_type = Format::OUTPUT, Config $config = null)
 {
     parent::__construct($input_output_type, $config);
     // this list may be incomplete as it was documenation gleaned from
     // http://haali.su/mkv/codecs.pdf but I didn't really understand all of it.
     $this->_restricted_audio_codecs = array('ac3', 'mp1', 'mp2', 'mp3', 'dts', 'tta', 'libvorbis', 'vorbis', 'flac', 'ra_144', 'libfdk_aac', 'libfaac', 'aac', 'libvo_aacenc', 'pcm_alaw', 'pcm_f32le', 'pcm_f64le', 'pcm_lxf', 'pcm_mulaw', 'pcm_s16le', 'pcm_s16le_planar', 'pcm_s24daud', 'pcm_s24le', 'pcm_s24le_planar', 'pcm_s32le', 'pcm_s32le_planar', 'pcm_s8', 'pcm_s8_planar', 'pcm_u16le', 'pcm_u24le', 'pcm_u32le', 'pcm_u8');
     $this->_restricted_video_codecs = array('rv10', 'rv20', 'rv30', 'rv40', 'mpeg1video', 'mpeg2video', 'theora', 'snow', 'mpeg4');
     if ($input_output_type === 'output') {
         $this->setAudioCodec('libvorbis')->setVideoCodec('libtheora')->setFormat('matroska');
     }
 }
예제 #4
0
 public function __construct($input_output_type, Config $config = null)
 {
     parent::__construct($input_output_type, $config);
     $this->_restricted_audio_codecs = array('wmav2', 'wmav1');
     $this->_restricted_video_codecs = array('wmv2', 'wmv1');
     if ($input_output_type === 'output') {
         $this->setAudioCodec('wmav2')->setVideoCodec('wmv2')->setFormat('wmv');
     } else {
         array_push($this->_restricted_audio_codecs, 'wmalossless', 'wmapro', 'wmavoice');
         array_push($this->_restricted_video_codecs, 'wmv3', 'wmv3image');
     }
 }
예제 #5
0
 public function __construct($input_output_type = Format::OUTPUT, Config $config = null)
 {
     parent::__construct($input_output_type, $config);
     $this->_restricted_audio_codecs = array('libfdk_aac', 'libfaac', 'aac', 'libvo_aacenc', 'amr', 'libmp3lame', 'libshine', 'mp3');
     $this->_restricted_audio_bitrates = array('4.75k', '5.15k', '5.9k', '6.7k', '7.4k', '7.95k', '8k', '10.2k', '12k', '16k', '48k', '56k', '64k', '96k', '112k', '128k', '160k', '192k', '224k', '256k', '320k');
     $this->_restricted_audio_sample_frequencies = array(8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000);
     $this->_restricted_video_codecs = array('h263', 'h264', 'libx264');
     $this->_restricted_video_bitrates = array('32k', '40k', '60k', '64k', '80k', '96k', '104k', '128k', '160k', '240k', '256k');
     $this->_restricted_video_frame_rates = array(10, 12, 15, 20, 24, 25);
     if ($input_output_type === 'output') {
         $this->setAudioCodec('libfdk_aac')->setAudioSampleFrequency(44100)->setVideoCodec('libx264')->setFormat('3gp');
     }
 }
예제 #6
0
 public function __construct($input_output_type, Config $config = null)
 {
     parent::__construct($input_output_type, $config);
     $this->_format = array_merge($this->_format, array('h264_preset' => null, 'h264_tune' => null, 'h264_constant_quantization' => null));
     $this->_format_to_command = array_merge($this->_format_to_command, array('h264_preset' => '-preset <setting>', 'h264_tune' => '-tune <setting>', 'h264_constant_quantization' => '-qp <setting>'));
     $this->_restricted_video_presets = null;
     if ($input_output_type === 'output') {
         $this->setAudioCodec('mp3')->setVideoCodec('h264')->setFormat('h264');
     }
     //			both enable meta data injection and then force
     $this->forceQtFastStartSuccess();
     $this->enableQtFastStart();
 }
예제 #7
0
 public function __construct($input_output_type, Config $config = null)
 {
     parent::__construct($input_output_type, $config);
     //			default by forcing the audio codec to use mp3
     if ($input_output_type === 'output') {
         $this->setAudioCodec('mp3')->setVideoCodec('flv1')->setFormat('flv');
     }
     $this->_restricted_audio_codecs = array('mp3');
     $this->_restricted_video_codecs = array('flv1');
     $this->_restricted_audio_sample_frequencies = array(44100, 22050, 11025);
     //			both enable meta data injection and then force
     $this->forceMetaDataInjectionSuccess();
     $this->enableMetaDataInjection();
 }
예제 #8
0
 public function __construct($input_output_type = Format::OUTPUT, Config $config = null)
 {
     parent::__construct($input_output_type, $config);
     //          default by forcing the audio codec to use mp3
     if ($input_output_type === 'output') {
         $this->setAudioCodec('mp3')->setVideoCodec('flv1')->setFormat('flv');
     }
     $this->_restricted_audio_codecs = array('mp3');
     $this->_restricted_video_codecs = array('flv1');
     $this->_restricted_audio_sample_frequencies = array(44100, 22050, 11025);
     $this->forceMetaDataInjectionSuccess();
     //          determine if we are to inject meta data into the flv
     //          remember doing so puts any save into blocking mode so if you are using ProgressHandlerPortable
     //          you must access the $process->getPortableId() before calling save or saveNonBlocking.
     if ($config && $config->force_enable_flv_meta === true) {
         $this->enableMetaDataInjection();
     }
 }