PHP Classes

File: src/PHPVideoToolkit/VideoFormat/Mkv.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Oliver Lillie  >  PHP Video Toolkit  >  src/PHPVideoToolkit/VideoFormat/Mkv.php  >  Download  
File: src/PHPVideoToolkit/VideoFormat/Mkv.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Video Toolkit
Manipulate and convert videos with ffmpeg program
Author: By
Last change: updated copy right years and a incorrect version number
updated version number in class files
Date: 10 months ago
Size: 2,596 bytes


Class file image Download
     * This file is part of the PHP Video Toolkit v2 package.
     * @author Oliver Lillie (aka buggedcom) <>
     * @license Dual licensed under MIT and GPLv2
     * @copyright Copyright (c) 2008-2014 Oliver Lillie <>
     * @package PHPVideoToolkit V2
     * @version 2.1.1
     * @uses ffmpeg
namespace PHPVideoToolkit;

     * @access public
     * @author Oliver Lillie
     * @package default
class VideoFormat_Mkv extends VideoFormat
        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');
$input_output_type === 'output')
// this list may be incomplete as it was documenation gleaned from
                // but I didn't really understand all of it.
'ac3', 'mp1', 'mp2', 'mp3', 'dts', 'tta', 'vorbis', 'flac', 'ra_144', 'aac',
// These are audio codecs but are decode only: 'wavpack', 'ra_288', 'ralf'
                    // -
                    // also pcm is supported but entirely clear which codecs are supported. so some of the pcm codecs may be missing
                    // or not actually supported.
array_push($this->_restricted_video_codecs, 'rv10', 'rv20', 'rv30', 'rv40', 'mpeg1video', 'mpeg2video', 'theora', 'snow', 'mpeg4');