Fix compatibility with avconv 0.9

This commit is contained in:
Romain Neutron 2013-12-02 12:47:27 +01:00
commit 18abae55a9
4 changed files with 47 additions and 1 deletions

View file

@ -226,8 +226,13 @@ class FFProbe
$parseIsToDo = false;
if ($allowJson && $this->optionsTester->has('-print_format')) {
// allowed in latest PHP-FFmpeg version
$commands[] = '-print_format';
$commands[] = 'json';
} elseif ($allowJson && $this->optionsTester->has('-of')) {
// option has changed in avconv 9
$commands[] = '-of';
$commands[] = 'json';
} else {
$parseIsToDo = true;
}