为 Laravel 8 安装 FFmpeg 包
Install FFmpeg package for Laravel 8
我需要在 Laravel 中安装压缩视频服务器端的 FFmpeg 包,但是当我尝试通过 composer 安装这个包时出现错误。我阅读了他们的文档,但我不知道如何解决这个问题。所以请帮我解决这个问题。
错误
Your requirements could not be resolved to an installable set of
packages.
Problem 1
- Root composer.json requires pbmedia/laravel-ffmpeg ^8.0 -> satisfiable by pbmedia/laravel-ffmpeg[8.0.0].
- pbmedia/laravel-ffmpeg 8.0.0 requires illuminate/contracts ^9.0 -> found illuminate/contracts[v9.0.0-beta.1, ..., 9.x-dev] but these were not loaded, likely because it conflicts with another require.
You can also try re-running composer require with an explicit version
constraint, e.g. "composer require pbmedia/laravel-ffmpeg:*" to figure
out if any version is installable, or "composer require
pbmedia/laravel-ffmpeg:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to
their original content.
检查 v8 release note:
As Laravel 9 has migrated from Flysystem 1.x to 3.x, this version is not compatible with Laravel 8 or earlier.
您可以使用 v7.8.1
:
composer require pbmedia/laravel-ffmpeg "7.8.1"
我需要在 Laravel 中安装压缩视频服务器端的 FFmpeg 包,但是当我尝试通过 composer 安装这个包时出现错误。我阅读了他们的文档,但我不知道如何解决这个问题。所以请帮我解决这个问题。
错误
Your requirements could not be resolved to an installable set of packages.
Problem 1 - Root composer.json requires pbmedia/laravel-ffmpeg ^8.0 -> satisfiable by pbmedia/laravel-ffmpeg[8.0.0]. - pbmedia/laravel-ffmpeg 8.0.0 requires illuminate/contracts ^9.0 -> found illuminate/contracts[v9.0.0-beta.1, ..., 9.x-dev] but these were not loaded, likely because it conflicts with another require.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require pbmedia/laravel-ffmpeg:*" to figure out if any version is installable, or "composer require pbmedia/laravel-ffmpeg:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
检查 v8 release note:
As Laravel 9 has migrated from Flysystem 1.x to 3.x, this version is not compatible with Laravel 8 or earlier.
您可以使用 v7.8.1
:
composer require pbmedia/laravel-ffmpeg "7.8.1"