Which causes the class to abort with the following exception:
Argument #1 ($filters) must be of type FFMpeg\Filters\Video\VideoFilters, FFMpeg\Filters\AdvancedMedia\ComplexFilters given {"exception":"[object] (TypeError(code: 0): App\\Jobs\\ConvertVideoJob::App\\Jobs\\{closure}(): Argument #1 ($filters) must be of type FFMpeg\\Filters\\Video\\VideoFilters, FFMpeg\\Filters\\AdvancedMedia\\ComplexFilters given at /project/path/app/Jobs/ConvertVideoJob.php:50)
whilst line 50 is exactly $filters->resize(new Dimension($this->width, $this->height));
Also calling the helper method ->resize() itself does not fix the problem, at it seems to call the addComplexFilter method which should not be called in the first place
So basically I'm trying to convert a video with a few filters
Which causes the class to abort with the following exception:
Argument #1 ($filters) must be of type FFMpeg\Filters\Video\VideoFilters, FFMpeg\Filters\AdvancedMedia\ComplexFilters given {"exception":"[object] (TypeError(code: 0): App\\Jobs\\ConvertVideoJob::App\\Jobs\\{closure}(): Argument #1 ($filters) must be of type FFMpeg\\Filters\\Video\\VideoFilters, FFMpeg\\Filters\\AdvancedMedia\\ComplexFilters given at /project/path/app/Jobs/ConvertVideoJob.php:50)
whilst line 50 is exactly
$filters->resize(new Dimension($this->width, $this->height));
Also calling the helper method->resize()
itself does not fix the problem, at it seems to call theaddComplexFilter
method which should not be called in the first place