Add of set the timeout for video process and audio
This commit is contained in:
		
					parent
					
						
							
								c753a4dbc4
							
						
					
				
			
			
				commit
				
					
						98a8cf8874
					
				
			
		
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -265,6 +265,8 @@ class FFMpeg extends Binary | ||||||
| 
 | 
 | ||||||
|         $process = $builder->getProcess(); |         $process = $builder->getProcess(); | ||||||
| 
 | 
 | ||||||
|  |         $process->setTimeout($this->timeout); | ||||||
|  | 
 | ||||||
|         $this->logger->addInfo(sprintf('FFmpeg executes command %s', $process->getCommandLine())); |         $this->logger->addInfo(sprintf('FFmpeg executes command %s', $process->getCommandLine())); | ||||||
| 
 | 
 | ||||||
|         try { |         try { | ||||||
|  | @ -397,6 +399,8 @@ class FFMpeg extends Binary | ||||||
| 
 | 
 | ||||||
|         foreach ($passes as $process) { |         foreach ($passes as $process) { | ||||||
| 
 | 
 | ||||||
|  |             $process->setTimeout($this->timeout); | ||||||
|  | 
 | ||||||
|             $this->logger->addInfo(sprintf('FFmpeg executes command %s', $process->getCommandline())); |             $this->logger->addInfo(sprintf('FFmpeg executes command %s', $process->getCommandline())); | ||||||
| 
 | 
 | ||||||
|             try { |             try { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue