Merge pull request #104 from SimonSimCity/patch-1
Fixed sample for duration and added sample for codec_name
This commit is contained in:
		
				commit
				
					
						425a520480
					
				
			
		
					 1 changed files with 8 additions and 1 deletions
				
			
		|  | @ -364,6 +364,13 @@ $ffprobe | ||||||
|     ->streams('/path/to/video/mp4') // extracts streams informations |     ->streams('/path/to/video/mp4') // extracts streams informations | ||||||
|     ->videos()                      // filters video streams |     ->videos()                      // filters video streams | ||||||
|     ->first()                       // returns the first video stream |     ->first()                       // returns the first video stream | ||||||
|  |     ->get('codec_name');            // returns the codec_name property | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
|  | ```php | ||||||
|  | $ffprobe = FFMpeg\FFProbe::create(); | ||||||
|  | $ffprobe | ||||||
|  |     ->format('/path/to/video/mp4') // extracts file informations | ||||||
|     ->get('duration');             // returns the duration property |     ->get('duration');             // returns the duration property | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue