Add support for video to audio transcoding
This commit is contained in:
parent
8e386be74d
commit
d3e97c974e
11 changed files with 127 additions and 59 deletions
|
|
@ -103,4 +103,12 @@ abstract class DefaultAudio extends EventEmitter implements AudioInterface, Prog
|
|||
|
||||
return array($listener);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getPasses()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -86,14 +86,6 @@ abstract class DefaultVideo extends DefaultAudio implements VideoInterface
|
|||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getPasses()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return integer
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue