commit
				
					
						a8003f0fda
					
				
			
		
					 1 changed files with 15 additions and 15 deletions
				
			
		
							
								
								
									
										30
									
								
								README.md
									
										
									
									
									
								
							
							
						
						
									
										30
									
								
								README.md
									
										
									
									
									
								
							|  | @ -4,7 +4,7 @@ | ||||||
| 
 | 
 | ||||||
| [](https://insight.sensiolabs.com/projects/607f3111-e2d7-44e8-8bcc-54dd64521983) | [](https://insight.sensiolabs.com/projects/607f3111-e2d7-44e8-8bcc-54dd64521983) | ||||||
| 
 | 
 | ||||||
| An Object Oriented library to convert video/audio files with FFmpeg / AVConv. | An Object-Oriented library to convert video/audio files with FFmpeg / AVConv. | ||||||
| 
 | 
 | ||||||
| Check another amazing repo: [PHP FFMpeg extras](https://github.com/alchemy-fr/PHP-FFMpeg-Extras), you will find lots of Audio/Video formats there. | Check another amazing repo: [PHP FFMpeg extras](https://github.com/alchemy-fr/PHP-FFMpeg-Extras), you will find lots of Audio/Video formats there. | ||||||
| 
 | 
 | ||||||
|  | @ -16,7 +16,7 @@ This library requires a working FFMpeg install. You will need both FFMpeg and FF | ||||||
| Be sure that these binaries can be located with system PATH to get the benefit of the binary detection, | Be sure that these binaries can be located with system PATH to get the benefit of the binary detection, | ||||||
| otherwise you should have to explicitly give the binaries path on load. | otherwise you should have to explicitly give the binaries path on load. | ||||||
| 
 | 
 | ||||||
| For Windows users : Please find the binaries at http://ffmpeg.zeranoe.com/builds/. | For Windows users: Please find the binaries at http://ffmpeg.zeranoe.com/builds/. | ||||||
| 
 | 
 | ||||||
| ### Known issues: | ### Known issues: | ||||||
| 
 | 
 | ||||||
|  | @ -128,7 +128,7 @@ $video->save($format, 'video.avi'); | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| Transcoding progress can be monitored in realtime, see Format documentation | Transcoding progress can be monitored in realtime, see Format documentation | ||||||
| below for more informations. | below for more information. | ||||||
| 
 | 
 | ||||||
| ##### Extracting image | ##### Extracting image | ||||||
| 
 | 
 | ||||||
|  | @ -197,7 +197,7 @@ This code returns a `FFMpeg\Media\Waveform` instance. | ||||||
| You can optionally pass dimensions as the first two arguments and an array of hex string colors for ffmpeg to use for the waveform, see dedicated | You can optionally pass dimensions as the first two arguments and an array of hex string colors for ffmpeg to use for the waveform, see dedicated | ||||||
| documentation below for more information. | documentation below for more information. | ||||||
| 
 | 
 | ||||||
| The ouput file MUST use the PNG extension. | The output file MUST use the PNG extension. | ||||||
| 
 | 
 | ||||||
| ```php | ```php | ||||||
| $waveform = $audio->waveform(640, 120, array('#00FF00')); | $waveform = $audio->waveform(640, 120, array('#00FF00')); | ||||||
|  | @ -333,7 +333,7 @@ The framerate filter takes two parameters: | ||||||
| Synchronizes audio and video. | Synchronizes audio and video. | ||||||
| 
 | 
 | ||||||
| Some containers may use a delay that results in desynchronized outputs. This | Some containers may use a delay that results in desynchronized outputs. This | ||||||
| filters solves this issue. | filter solves this issue. | ||||||
| 
 | 
 | ||||||
| ```php | ```php | ||||||
| $video->filters()->synchronize(); | $video->filters()->synchronize(); | ||||||
|  | @ -393,7 +393,7 @@ $audio->save($format, 'track.flac'); | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| Transcoding progress can be monitored in realtime, see Format documentation | Transcoding progress can be monitored in realtime, see Format documentation | ||||||
| below for more informations. | below for more information. | ||||||
| 
 | 
 | ||||||
| ##### Filters | ##### Filters | ||||||
| 
 | 
 | ||||||
|  | @ -446,7 +446,7 @@ The resample filter takes two parameters : | ||||||
| 
 | 
 | ||||||
| #### Frame | #### Frame | ||||||
| 
 | 
 | ||||||
| A frame is a image at a timecode of a video ; see documentation above about | A frame is an image at a timecode of a video; see documentation above about | ||||||
| frame extraction. | frame extraction. | ||||||
| 
 | 
 | ||||||
| You can save frames using the `FFMpeg\Media\Frame::save` method. | You can save frames using the `FFMpeg\Media\Frame::save` method. | ||||||
|  | @ -456,7 +456,7 @@ $frame->save('target.jpg'); | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| This method has a second optional boolean parameter. Set it to true to get | This method has a second optional boolean parameter. Set it to true to get | ||||||
| accurate images ; it takes more time to execute. | accurate images; it takes more time to execute. | ||||||
| 
 | 
 | ||||||
| #### Gif | #### Gif | ||||||
| 
 | 
 | ||||||
|  | @ -494,7 +494,7 @@ To concatenate videos encoded with the same codec, do as follow: | ||||||
| 
 | 
 | ||||||
| ```php | ```php | ||||||
| // In order to instantiate the video object, you HAVE TO pass a path to a valid video file. | // In order to instantiate the video object, you HAVE TO pass a path to a valid video file. | ||||||
| // We recommand that you put there the path of any of the video you want to use in this concatenation. | // We recommend that you put there the path of any of the video you want to use in this concatenation. | ||||||
| $video = $ffmpeg->open( '/path/to/video' ); | $video = $ffmpeg->open( '/path/to/video' ); | ||||||
| $video | $video | ||||||
|     ->concat(array('/path/to/video1', '/path/to/video2')) |     ->concat(array('/path/to/video1', '/path/to/video2')) | ||||||
|  | @ -507,7 +507,7 @@ To concatenate videos encoded with the same codec, do as follow: | ||||||
| 
 | 
 | ||||||
| ```php | ```php | ||||||
| // In order to instantiate the video object, you HAVE TO pass a path to a valid video file. | // In order to instantiate the video object, you HAVE TO pass a path to a valid video file. | ||||||
| // We recommand that you put there the path of any of the video you want to use in this concatenation. | // We recommend that you put there the path of any of the video you want to use in this concatenation. | ||||||
| $video = $ffmpeg->open( '/path/to/video' ); | $video = $ffmpeg->open( '/path/to/video' ); | ||||||
| 
 | 
 | ||||||
| $format = new FFMpeg\Format\Video\X264(); | $format = new FFMpeg\Format\Video\X264(); | ||||||
|  | @ -526,10 +526,10 @@ A format implements `FFMpeg\Format\FormatInterface`. To save to a video file, | ||||||
| use `FFMpeg\Format\VideoInterface`, and `FFMpeg\Format\AudioInterface` for | use `FFMpeg\Format\VideoInterface`, and `FFMpeg\Format\AudioInterface` for | ||||||
| audio files. | audio files. | ||||||
| 
 | 
 | ||||||
| Format can also extends `FFMpeg\Format\ProgressableInterface` to get realtime | A format can also extend `FFMpeg\Format\ProgressableInterface` to get realtime | ||||||
| informations about the transcoding. | information about the transcoding. | ||||||
| 
 | 
 | ||||||
| Predefined formats already provide progress informations as events. | Predefined formats already provide progress information as events. | ||||||
| 
 | 
 | ||||||
| ```php | ```php | ||||||
| $format = new FFMpeg\Format\Video\X264(); | $format = new FFMpeg\Format\Video\X264(); | ||||||
|  | @ -589,7 +589,7 @@ class CustomWMVFormat extends FFMpeg\Format\Video\DefaultVideo | ||||||
| 
 | 
 | ||||||
| #### Coordinates | #### Coordinates | ||||||
| 
 | 
 | ||||||
| FFMpeg use many units for time and space coordinates. | FFMpeg uses many units for time and space coordinates. | ||||||
| 
 | 
 | ||||||
| - `FFMpeg\Coordinate\AspectRatio` represents an aspect ratio. | - `FFMpeg\Coordinate\AspectRatio` represents an aspect ratio. | ||||||
| - `FFMpeg\Coordinate\Dimension` represent a dimension. | - `FFMpeg\Coordinate\Dimension` represent a dimension. | ||||||
|  | @ -630,7 +630,7 @@ $ffprobe->isValid('/path/to/file/to/check'); // returns bool | ||||||
| 
 | 
 | ||||||
| ## Using with Silex Microframework | ## Using with Silex Microframework | ||||||
| 
 | 
 | ||||||
| Service provider is easy to set up: | The service provider is easy to set up: | ||||||
| 
 | 
 | ||||||
| ```php | ```php | ||||||
| $app = new Silex\Application(); | $app = new Silex\Application(); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue