add FFProbe#isValid to readme
This commit is contained in:
parent
d386cc0cea
commit
8c16de99ad
1 changed files with 10 additions and 0 deletions
10
README.md
10
README.md
|
|
@ -571,6 +571,16 @@ $ffprobe
|
||||||
->get('duration'); // returns the duration property
|
->get('duration'); // returns the duration property
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Validating media files
|
||||||
|
|
||||||
|
(since 0.10.0)
|
||||||
|
You can validate media files using PHP-FFMpeg's FFProbe wrapper.
|
||||||
|
|
||||||
|
```php
|
||||||
|
$ffprobe = FFMPeg\FFProbe::create();
|
||||||
|
$ffprobe->isValid('/path/to/file/to/check'); // returns bool
|
||||||
|
```
|
||||||
|
|
||||||
## Using with Silex Microframework
|
## Using with Silex Microframework
|
||||||
|
|
||||||
Service provider is easy to set up:
|
Service provider is easy to set up:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue