Add FFProbe usage example

This commit is contained in:
Romain Neutron 2013-08-05 14:40:53 +02:00
commit b5cbe7fdc6

View file

@ -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