40 lines
		
	
	
	
		
			660 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
		
		
			
		
	
	
			40 lines
		
	
	
	
		
			660 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
|  | <?php | ||
|  | 
 | ||
|  | /* | ||
|  |  * This file is part of PHP-FFmpeg. | ||
|  |  * | ||
|  |  * (c) Alchemy <info@alchemy.fr> | ||
|  |  * | ||
|  |  * For the full copyright and license information, please view the LICENSE | ||
|  |  * file that was distributed with this source code. | ||
|  |  */ | ||
|  | 
 | ||
|  | namespace FFMpeg\Format\Audio; | ||
|  | 
 | ||
|  | /** | ||
|  |  * The Vorbis audio format | ||
|  |  */ | ||
|  | class Vorbis extends DefaultAudio | ||
|  | { | ||
|  |     public function __construct() | ||
|  |     { | ||
|  |         $this->audioCodec = 'vorbis'; | ||
|  |     } | ||
|  | 
 | ||
|  |     /** | ||
|  |      * {@inheritdoc} | ||
|  |      */ | ||
|  |     public function getExtraParams() | ||
|  |     { | ||
|  |         return array('-strict', '-2'); | ||
|  |     } | ||
|  | 
 | ||
|  |     /** | ||
|  |      * {@inheritDoc} | ||
|  |      */ | ||
|  |     public function getAvailableAudioCodecs() | ||
|  |     { | ||
|  |         return array('vorbis'); | ||
|  |     } | ||
|  | } |