| 
									
										
										
										
											2012-04-13 10:20:54 +02:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-04-13 12:45:41 +02:00
										 |  |  | namespace FFMpeg\Format\Video; | 
					
						
							| 
									
										
										
										
											2012-04-13 10:20:54 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-04-13 12:45:41 +02:00
										 |  |  | use FFMpeg\Format\DefaultVideoFormat; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class WebM extends DefaultVideoFormat | 
					
						
							| 
									
										
										
										
											2012-04-13 10:20:54 +02:00
										 |  |  | { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     protected $audioCodec = 'libvorbis'; | 
					
						
							|  |  |  |     protected $videoCodec = 'libvpx'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     public function getExtraParams() | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return '-f webm'; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     protected function getAvailableAudioCodecs() | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return array('libvorbis'); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     protected function getAvailableVideoCodecs() | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return array('libvpx'); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } |