From b5cbe7fdc6bf5e07190fc83d71be9cc6a27870ff Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Mon, 5 Aug 2013 14:40:53 +0200 Subject: [PATCH] Add FFProbe usage example --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 62f6309..6ace127 100644 --- a/README.md +++ b/README.md @@ -288,6 +288,19 @@ FFMpeg use many units for time and space coordinates. - `FFMpeg\Coordinate\Point` represent a point. - `FFMpeg\Coordinate\TimeCode` represent a timecode. +### FFProbe + +`FFMpeg\FFProbe` is used internally by `FFMpeg\FFMpeg` to probe medias. You can +also use it to extract media metadata. + +```php +$ffprobe = FFMpeg\FFProbe::create(); +$ffprobe + ->streams('/path/to/video/mp4') // extracts streams informations + ->videos() // filters video streams + ->first() // returns the first video stream + ->get('duration'); // returns the duration property +``` ##Using with Silex Microframework