Add support for video to audio transcoding

This commit is contained in:
Romain Neutron 2013-10-10 15:09:10 +02:00
commit d3e97c974e
11 changed files with 127 additions and 59 deletions

View file

@ -103,4 +103,12 @@ abstract class DefaultAudio extends EventEmitter implements AudioInterface, Prog
return array($listener);
}
/**
* {@inheritDoc}
*/
public function getPasses()
{
return 1;
}
}

View file

@ -19,13 +19,6 @@ interface AudioInterface extends FormatInterface
*/
public function getAudioKiloBitrate();
/**
* Returns an array of extra parameters to add to ffmpeg commandline.
*
* @return array()
*/
public function getExtraParams();
/**
* Returns the audio codec.
*

View file

@ -12,4 +12,17 @@ namespace FFMpeg\Format;
interface FormatInterface
{
/**
* Returns the number of passes.
*
* @return string
*/
public function getPasses();
/**
* Returns an array of extra parameters to add to ffmpeg commandline.
*
* @return array()
*/
public function getExtraParams();
}

View file

@ -86,14 +86,6 @@ abstract class DefaultVideo extends DefaultAudio implements VideoInterface
return $this;
}
/**
* {@inheritDoc}
*/
public function getPasses()
{
return 1;
}
/**
* @return integer
*/

View file

@ -20,13 +20,6 @@ interface VideoInterface extends AudioInterface
*/
public function getKiloBitrate();
/**
* Returns the number of passes.
*
* @return string
*/
public function getPasses();
/**
* Returns the modulus used by the Resizable video.
*