protonemedia / laravel-ffmpeg

This package provides an integration with FFmpeg for Laravel. Laravel's Filesystem handles the storage of the files.
https://protone.media/en/blog/how-to-use-ffmpeg-in-your-laravel-projects
MIT License
1.62k stars 193 forks source link

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

Open MarceloSantosCorrea opened 1 year ago

MarceloSantosCorrea commented 1 year ago

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();
mstfkhazaal commented 1 year ago

@MarceloSantosCorrea any solution?

mstfkhazaal commented 1 year ago

@pascalbaljet

MarceloSantosCorrea commented 1 year ago

no!