Fix compatibility with avconv 0.9
This commit is contained in:
parent
fca866e1d8
commit
18abae55a9
4 changed files with 47 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue