Add resize mode, move getMultiple method to FFMpeg
This commit is contained in:
		
					parent
					
						
							
								1424af7703
							
						
					
				
			
			
				commit
				
					
						fc7529822f
					
				
			
		
					 6 changed files with 185 additions and 62 deletions
				
			
		|  | @ -58,7 +58,23 @@ class FFProbe extends Binary | |||
| 
 | ||||
|         $cmd = $this->binary . ' ' . $pathfile . ' -show_streams'; | ||||
| 
 | ||||
|         return $this->executeProbe($cmd); | ||||
|         $output = explode("\n", $this->executeProbe($cmd)); | ||||
| 
 | ||||
|         $ret = array(); | ||||
|         $n = 0; | ||||
| 
 | ||||
|         foreach ($output as $line) { | ||||
| 
 | ||||
|             if (in_array($line, array('[STREAM]', '[/STREAM]'))) { | ||||
|                 $n ++; | ||||
|                 $ret[$n] = array(); | ||||
|                 continue; | ||||
|             } | ||||
| 
 | ||||
|             $ret[$n][] = $line; | ||||
|         } | ||||
|          | ||||
|         return $ret; | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue