Add Audio and Video interfaces

This commit is contained in:
Romain Neutron 2012-04-13 12:45:41 +02:00
commit 94775176c9
14 changed files with 294 additions and 222 deletions

View file

@ -0,0 +1,28 @@
<?php
namespace FFMpeg\Format\Video;
use FFMpeg\Format\DefaultVideoFormat;
class WebM extends DefaultVideoFormat
{
protected $audioCodec = 'libvorbis';
protected $videoCodec = 'libvpx';
public function getExtraParams()
{
return '-f webm';
}
protected function getAvailableAudioCodecs()
{
return array('libvorbis');
}
protected function getAvailableVideoCodecs()
{
return array('libvpx');
}
}