Add timeout documentation
This commit is contained in:
		
					parent
					
						
							
								94c13056e4
							
						
					
				
			
			
				commit
				
					
						c642746d85
					
				
			
		
					 1 changed files with 28 additions and 0 deletions
				
			
		|  | @ -82,6 +82,34 @@ Basic Usage | ||||||
|            ->extractImage(12, 'second-screenshot.jpg') |            ->extractImage(12, 'second-screenshot.jpg') | ||||||
|            ->close(); |            ->close(); | ||||||
| 
 | 
 | ||||||
|  | Process Timeout | ||||||
|  | --------------- | ||||||
|  | 
 | ||||||
|  | PHP-FFMpeg runs ffmpeg commands to processs your medias. A default timeout of | ||||||
|  | 60 seconds is set, but you can override this by passing a second argument load : | ||||||
|  | 
 | ||||||
|  | .. code-block:: php | ||||||
|  | 
 | ||||||
|  |     <?php | ||||||
|  |     $ffmpeg = FFMpeg::load($logger, 500); | ||||||
|  | 
 | ||||||
|  |     // 500 | ||||||
|  |     echo $ffmpeg->getTimeOut(); | ||||||
|  | 
 | ||||||
|  | You can also set and get the timeout with the appropriate getter and setter : | ||||||
|  | 
 | ||||||
|  | .. code-block:: php | ||||||
|  | 
 | ||||||
|  |     <?php | ||||||
|  |     $ffmpeg->setTimeout(200); | ||||||
|  | 
 | ||||||
|  |     // 200 | ||||||
|  |     echo $ffmpeg->getTimeOut(); | ||||||
|  | 
 | ||||||
|  | .. note:: | ||||||
|  | 
 | ||||||
|  |     To disable timeout, set its value to 0. | ||||||
|  | 
 | ||||||
| Recipes | Recipes | ||||||
| ------- | ------- | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue