Add doc blocks
This commit is contained in:
parent
f89b820d78
commit
53efcb255f
5 changed files with 60 additions and 8 deletions
|
|
@ -13,12 +13,20 @@ namespace FFMpeg\Format\Audio;
|
||||||
|
|
||||||
use FFMpeg\Format\DefaultAudioFormat;
|
use FFMpeg\Format\DefaultAudioFormat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The Flac audio format
|
||||||
|
*
|
||||||
|
* @author Romain Neutron imprec@gmail.com
|
||||||
|
*/
|
||||||
class Flac extends DefaultAudioFormat
|
class Flac extends DefaultAudioFormat
|
||||||
{
|
{
|
||||||
|
|
||||||
protected $audioCodec = 'flac';
|
protected $audioCodec = 'flac';
|
||||||
|
|
||||||
protected function getAvailableAudioCodecs()
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getAvailableAudioCodecs()
|
||||||
{
|
{
|
||||||
return array('flac');
|
return array('flac');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,12 +13,20 @@ namespace FFMpeg\Format\Audio;
|
||||||
|
|
||||||
use FFMpeg\Format\DefaultAudioFormat;
|
use FFMpeg\Format\DefaultAudioFormat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The MP3 audio format
|
||||||
|
*
|
||||||
|
* @author Romain Neutron imprec@gmail.com
|
||||||
|
*/
|
||||||
class Mp3 extends DefaultAudioFormat
|
class Mp3 extends DefaultAudioFormat
|
||||||
{
|
{
|
||||||
|
|
||||||
protected $audioCodec = 'libmp3lame';
|
protected $audioCodec = 'libmp3lame';
|
||||||
|
|
||||||
protected function getAvailableAudioCodecs()
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getAvailableAudioCodecs()
|
||||||
{
|
{
|
||||||
return array('libmp3lame');
|
return array('libmp3lame');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,18 +13,29 @@ namespace FFMpeg\Format\Video;
|
||||||
|
|
||||||
use FFMpeg\Format\DefaultVideoFormat;
|
use FFMpeg\Format\DefaultVideoFormat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The Ogg video format
|
||||||
|
*
|
||||||
|
* @author Romain Neutron imprec@gmail.com
|
||||||
|
*/
|
||||||
class Ogg extends DefaultVideoFormat
|
class Ogg extends DefaultVideoFormat
|
||||||
{
|
{
|
||||||
|
|
||||||
protected $audioCodec = 'libvorbis';
|
protected $audioCodec = 'libvorbis';
|
||||||
protected $videoCodec = 'libtheora';
|
protected $videoCodec = 'libtheora';
|
||||||
|
|
||||||
protected function getAvailableAudioCodecs()
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getAvailableAudioCodecs()
|
||||||
{
|
{
|
||||||
return array('libvorbis');
|
return array('libvorbis');
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getAvailableVideoCodecs()
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getAvailableVideoCodecs()
|
||||||
{
|
{
|
||||||
return array('libtheora');
|
return array('libtheora');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,23 +13,37 @@ namespace FFMpeg\Format\Video;
|
||||||
|
|
||||||
use FFMpeg\Format\DefaultVideoFormat;
|
use FFMpeg\Format\DefaultVideoFormat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The WebM video format
|
||||||
|
*
|
||||||
|
* @author Romain Neutron imprec@gmail.com
|
||||||
|
*/
|
||||||
class WebM extends DefaultVideoFormat
|
class WebM extends DefaultVideoFormat
|
||||||
{
|
{
|
||||||
|
|
||||||
protected $audioCodec = 'libvorbis';
|
protected $audioCodec = 'libvorbis';
|
||||||
protected $videoCodec = 'libvpx';
|
protected $videoCodec = 'libvpx';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
public function getExtraParams()
|
public function getExtraParams()
|
||||||
{
|
{
|
||||||
return '-f webm';
|
return '-f webm';
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getAvailableAudioCodecs()
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getAvailableAudioCodecs()
|
||||||
{
|
{
|
||||||
return array('libvorbis');
|
return array('libvorbis');
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getAvailableVideoCodecs()
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getAvailableVideoCodecs()
|
||||||
{
|
{
|
||||||
return array('libvpx');
|
return array('libvpx');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,18 +13,29 @@ namespace FFMpeg\Format\Video;
|
||||||
|
|
||||||
use FFMpeg\Format\DefaultVideoFormat;
|
use FFMpeg\Format\DefaultVideoFormat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The X264 video format
|
||||||
|
*
|
||||||
|
* @author Romain Neutron imprec@gmail.com
|
||||||
|
*/
|
||||||
class X264 extends DefaultVideoFormat
|
class X264 extends DefaultVideoFormat
|
||||||
{
|
{
|
||||||
|
|
||||||
protected $audioCodec = 'libmp3lame';
|
protected $audioCodec = 'libmp3lame';
|
||||||
protected $videoCodec = 'libx264';
|
protected $videoCodec = 'libx264';
|
||||||
|
|
||||||
protected function getAvailableAudioCodecs()
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getAvailableAudioCodecs()
|
||||||
{
|
{
|
||||||
return array('libvo_aacenc', 'libfaac', 'libmp3lame');
|
return array('libvo_aacenc', 'libfaac', 'libmp3lame');
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getAvailableVideoCodecs()
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getAvailableVideoCodecs()
|
||||||
{
|
{
|
||||||
return array('libx264');
|
return array('libx264');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue