PHP Classes
elePHPant
Icontem

File: src/PHPVideoToolkit/VideoFormat/Wmv.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Oliver Lillie  >  PHP Video Toolkit  >  src/PHPVideoToolkit/VideoFormat/Wmv.php  >  Download  
File: src/PHPVideoToolkit/VideoFormat/Wmv.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: 1,359 bytes
 

Contents

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

   
/**
     * @access public
     * @author Oliver Lillie
     * @package default
     */
   
class VideoFormat_Wmv 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');
           
            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');
            }
        }
    }