Add doc blocks

This commit is contained in:
Romain Neutron 2012-04-13 15:42:10 +02:00
commit 53efcb255f
5 changed files with 60 additions and 8 deletions

View file

@ -13,12 +13,20 @@ namespace FFMpeg\Format\Audio;
use FFMpeg\Format\DefaultAudioFormat;
/**
* The Flac audio format
*
* @author Romain Neutron imprec@gmail.com
*/
class Flac extends DefaultAudioFormat
{
protected $audioCodec = 'flac';
protected function getAvailableAudioCodecs()
/**
* {@inheritDoc}
*/
public function getAvailableAudioCodecs()
{
return array('flac');
}

View file

@ -13,12 +13,20 @@ namespace FFMpeg\Format\Audio;
use FFMpeg\Format\DefaultAudioFormat;
/**
* The MP3 audio format
*
* @author Romain Neutron imprec@gmail.com
*/
class Mp3 extends DefaultAudioFormat
{
protected $audioCodec = 'libmp3lame';
protected function getAvailableAudioCodecs()
/**
* {@inheritDoc}
*/
public function getAvailableAudioCodecs()
{
return array('libmp3lame');
}

View file

@ -13,18 +13,29 @@ namespace FFMpeg\Format\Video;
use FFMpeg\Format\DefaultVideoFormat;
/**
* The Ogg video format
*
* @author Romain Neutron imprec@gmail.com
*/
class Ogg extends DefaultVideoFormat
{
protected $audioCodec = 'libvorbis';
protected $videoCodec = 'libtheora';
protected function getAvailableAudioCodecs()
/**
* {@inheritDoc}
*/
public function getAvailableAudioCodecs()
{
return array('libvorbis');
}
protected function getAvailableVideoCodecs()
/**
* {@inheritDoc}
*/
public function getAvailableVideoCodecs()
{
return array('libtheora');
}

View file

@ -13,23 +13,37 @@ namespace FFMpeg\Format\Video;
use FFMpeg\Format\DefaultVideoFormat;
/**
* The WebM video format
*
* @author Romain Neutron imprec@gmail.com
*/
class WebM extends DefaultVideoFormat
{
protected $audioCodec = 'libvorbis';
protected $videoCodec = 'libvpx';
/**
* {@inheritDoc}
*/
public function getExtraParams()
{
return '-f webm';
}
protected function getAvailableAudioCodecs()
/**
* {@inheritDoc}
*/
public function getAvailableAudioCodecs()
{
return array('libvorbis');
}
protected function getAvailableVideoCodecs()
/**
* {@inheritDoc}
*/
public function getAvailableVideoCodecs()
{
return array('libvpx');
}

View file

@ -13,18 +13,29 @@ namespace FFMpeg\Format\Video;
use FFMpeg\Format\DefaultVideoFormat;
/**
* The X264 video format
*
* @author Romain Neutron imprec@gmail.com
*/
class X264 extends DefaultVideoFormat
{
protected $audioCodec = 'libmp3lame';
protected $videoCodec = 'libx264';
protected function getAvailableAudioCodecs()
/**
* {@inheritDoc}
*/
public function getAvailableAudioCodecs()
{
return array('libvo_aacenc', 'libfaac', 'libmp3lame');
}
protected function getAvailableVideoCodecs()
/**
* {@inheritDoc}
*/
public function getAvailableVideoCodecs()
{
return array('libx264');
}