| 
									
										
										
										
											2012-04-13 12:12:24 +02:00
										 |  |  | #PHP FFmpeg
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [](http://travis-ci.org/alchemy-fr/PHP-FFmpeg) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-11 00:36:57 +02:00
										 |  |  | An Object Oriented library to convert video/audio files with AVConv / FFmpeg. | 
					
						
							| 
									
										
										
										
											2012-04-13 14:16:50 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-31 16:07:30 +02:00
										 |  |  | ##Documentation
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-31 16:25:42 +02:00
										 |  |  | Read The Documentation at [Read The Docs !](http://readthedocs.org/docs/ffmpeg-php/) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ##API Browser
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Browse the [API](http://readthedocs.org/docs/ffmpeg-php/en/latest/_static/API/) | 
					
						
							| 
									
										
										
										
											2012-05-31 16:07:30 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | ##Usage Example
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ```php | 
					
						
							| 
									
										
										
										
											2012-05-31 16:09:01 +02:00
										 |  |  | <?php | 
					
						
							| 
									
										
										
										
											2012-05-31 16:10:16 +02:00
										 |  |  | $x264 = new X264(); | 
					
						
							| 
									
										
										
										
											2012-05-31 16:07:30 +02:00
										 |  |  | $x264->setDimensions(320, 240); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | $ffmpeg->open('Video.mpeg') | 
					
						
							| 
									
										
										
										
											2012-05-31 16:10:16 +02:00
										 |  |  |     ->encode($new WebM(), 'file.webm') | 
					
						
							|  |  |  |     ->encode($x264, 'file.mp4') | 
					
						
							|  |  |  |     ->encode($new Ogg(), 'file.ogv') | 
					
						
							| 
									
										
										
										
											2012-05-31 16:07:30 +02:00
										 |  |  |     ->close(); | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ##License
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | This project is licensed under the [MIT license](http://opensource.org/licenses/MIT). | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 |