laravel-ffmpeg icon indicating copy to clipboard operation
laravel-ffmpeg copied to clipboard

Argument #1 ($filters) must be of type FFMpeg\Filters\Video\VideoFilters, FFMpeg\Filters\AdvancedMedia\ComplexFilters given

Open MarceloSantosCorrea opened this issue 2 years ago • 3 comments

Laravel 10

$filesystemsDefault = config('filesystems.default');
        
        FFMpeg::fromDisk($filesystemsDefault)
            ->open([$inputVideo, $inputAudio])
            ->exportForHLS()
            ->addFilter(function (VideoFilters $filters) {
                $filters->resize(new \FFMpeg\Coordinate\Dimension(640, 480));
            })
            ->onProgress(function ($percentage, $remaining, $rate) {
                logger("{$remaining} seconds left at rate: {$rate}");
            })
            ->toDisk($filesystemsDefault)
            ->addFormatOutputMapping(
                new X264,
                Media::make($filesystemsDefault, $output),
                ['0:v', '1:a']
            )
            ->save();

MarceloSantosCorrea avatar May 08 '23 03:05 MarceloSantosCorrea

@MarceloSantosCorrea any solution?

mstfkhazaal avatar May 14 '23 11:05 mstfkhazaal

@pascalbaljet

mstfkhazaal avatar May 14 '23 11:05 mstfkhazaal

no!

MarceloSantosCorrea avatar May 16 '23 17:05 MarceloSantosCorrea