diff --git a/src/FFMpeg/Format/Audio/Aac.php b/src/FFMpeg/Format/Audio/Aac.php new file mode 100644 index 0000000..a9eebde --- /dev/null +++ b/src/FFMpeg/Format/Audio/Aac.php @@ -0,0 +1,31 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace FFMpeg\Format\Audio; + +/** + * The AAC audio format + */ +class Aac extends DefaultAudio +{ + public function __construct() + { + $this->audioCodec = 'libfdk_aac'; + } + + /** + * {@inheritDoc} + */ + public function getAvailableAudioCodecs() + { + return array('libfdk_aac'); + } +} diff --git a/src/FFMpeg/Format/Audio/Wav.php b/src/FFMpeg/Format/Audio/Wav.php new file mode 100644 index 0000000..8670599 --- /dev/null +++ b/src/FFMpeg/Format/Audio/Wav.php @@ -0,0 +1,31 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace FFMpeg\Format\Audio; + +/** + * The WAV audio format + */ +class Wav extends DefaultAudio +{ + public function __construct() + { + $this->audioCodec = 'pcm_s16le'; + } + + /** + * {@inheritDoc} + */ + public function getAvailableAudioCodecs() + { + return array('pcm_s16le'); + } +} diff --git a/tests/FFMpeg/Tests/Format/Audio/AacTest.php b/tests/FFMpeg/Tests/Format/Audio/AacTest.php new file mode 100644 index 0000000..5e98e77 --- /dev/null +++ b/tests/FFMpeg/Tests/Format/Audio/AacTest.php @@ -0,0 +1,13 @@ +