From 8c16de99ad26e581beee20c9b5f75d39a5427254 Mon Sep 17 00:00:00 2001 From: Jens Hausdorf Date: Mon, 16 Oct 2017 16:53:42 +0200 Subject: [PATCH] add FFProbe#isValid to readme --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index af59a56..2cf0654 100644 --- a/README.md +++ b/README.md @@ -571,6 +571,16 @@ $ffprobe ->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 Service provider is easy to set up: