Add FFProbe usage example
This commit is contained in:
parent
a98fe756ba
commit
b5cbe7fdc6
1 changed files with 13 additions and 0 deletions
13
README.md
13
README.md
|
|
@ -288,6 +288,19 @@ FFMpeg use many units for time and space coordinates.
|
||||||
- `FFMpeg\Coordinate\Point` represent a point.
|
- `FFMpeg\Coordinate\Point` represent a point.
|
||||||
- `FFMpeg\Coordinate\TimeCode` represent a timecode.
|
- `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
|
##Using with Silex Microframework
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue