webman-ffmpeg插件咨询

不败少龙

问题描述

提示这个No entry or class found for 'webman-ffmpeg'

程序代码

$format = new X264('aac', 'libx264');
        $paths = public_path('/video/20240123/113799054.mp4');
        $mainPlaylistPath = public_path('/video/20240123/113799054.m3u8');
        return FFMpeg::fromDisk('public')
            ->open($paths)
            ->exportForHLS()
            ->toDisk('public')
            ->addFormat($format)
            ->save($mainPlaylistPath);

报错信息

code
: 
500
msg
: 
"No entry or class found for 'webman-ffmpeg'"
traces
: 
"DI\\NotFoundException: No entry or class found for 'webman-ffmpeg' in /www/wwwroot/tiktok_worker/vendor/php-di/php-di/src/Container.php:136\nStack trace:\n#0 /www/wwwroot/tiktok_worker/vendor/brooke1220/webman-ffmpeg/src/Support/Container.php(31): DI\\Container->get()\n#1 /www/wwwroot/tiktok_worker/vendor/brooke1220/webman-ffmpeg/src/Support/FFMpeg.php(19): Brooke1220\\WebmanFfmpeg\\Support\\Container::__callStatic()\n#2 /www/wwwroot/tiktok_worker/vendor/brooke1220/webman-ffmpeg/src/Support/FFMpeg.php(24): Brooke1220\\WebmanFfmpeg\\Support\\FFMpeg::instance()\n#3 /www/wwwroot/tiktok_worker/app/service/FfmpegService.php(20): Brooke1220\\WebmanFfmpeg\\Support\\FFMpeg::__callStatic()\n#4 /www/wwwroot/tiktok_worker/app/music/controller/TikTokController.php(42): app\\service\\FfmpegService->getM3u8()\n#5 /www/wwwroot/tiktok_worker/vendor/workerman/webman-framework/src/App.php(325): app\\music\\controller\\TikTokController->index()\n#6 /www/wwwroot/tiktok_worker/vendor/workerman/webman-framework/src/App.php(349): Webman\\App::Webman\\{closure}()\n#7 /www/wwwroot/tiktok_worker/vendor/webman/action-hook/src/ActionHook.php(15): Webman\\App::Webman\\{closure}()\n#8 /www/wwwroot/tiktok_worker/vendor/workerman/webman-framework/src/App.php(341): Webman\\ActionHook\\ActionHook->process()\n#9 /www/wwwroot/tiktok_worker/vendor/webman/cors/src/CORS.php(12): Webman\\App::Webman\\{closure}()\n#10 /www/wwwroot/tiktok_worker/vendor/workerman/webman-framework/src/App.php(341): Webman\\Cors\\CORS->process()\n#11 /www/wwwroot/tiktok_worker/vendor/webman/multi-session/src/Middleware.php(57): Webman\\App::Webman\\{closure}()\n#12 /www/wwwroot/tiktok_worker/vendor/workerman/webman-framework/src/App.php(341): Webman\\MultiSession\\Middleware->process()\n#13 /www/wwwroot/tiktok_worker/vendor/webman/log/src/Middleware.php(96): Webman\\App::Webman\\{closure}()\n#14 /www/wwwroot/tiktok_worker/vendor/workerman/webman-framework/src/App.php(341): Webman\\Log\\Middleware->process()\n#15 /www/wwwroot/tiktok_worker/vendor/workerman/webman-framework/src/App.php(141): Webman\\App::Webman\\{closure}()\n#16 /www/wwwroot/tiktok_worker/vendor/workerman/workerman/Connection/TcpConnection.php(646): Webman\\App->onMessage()\n#17 [internal function]: Workerman\\Connection\\TcpConnection->baseRead()\n#18 /www/wwwroot/tiktok_worker/vendor/workerman/workerman/Events/Event.php(193): EventBase->loop()\n#19 /www/wwwroot/tiktok_worker/vendor/workerman/workerman/Worker.php(1635): Workerman\\Events\\Event->loop()\n#20 /www/wwwroot/tiktok_worker/vendor/workerman/workerman/Worker.php(1426): Workerman\\Worker::forkOneWorkerForLinux()\n#21 /www/wwwroot/tiktok_worker/vendor/workerman/workerman/Worker.php(1400): Workerman\\Worker::forkWorkersForLinux()\n#22 /www/wwwroot/tiktok_worker/vendor/workerman/workerman/Worker.php(1785): Workerman\\Worker::forkWorkers()\n#23 /www/wwwroot/tiktok_worker/vendor/workerman/workerman/Worker.php(1721): Workerman\\Worker::monitorWorkersForLinux()\n#24 /www/wwwroot/tiktok_worker/vendor/workerman/workerman/Worker.php(562): Workerman\\Worker::monitorWorkers()\n#25 /www/wwwroot/tiktok_worker/vendor/workerman/webman-framework/src/support/App.php(131): Workerman\\Worker::runAll()\n#26 /www/wwwroot/tiktok_worker/start.php(4): support\\App::run()\n#27 {main}"

截图报错信息里报错文件相关代码

操作系统及workerman/webman等框架组件具体版本

截图
截图

587 1 2
1个回答

Tinywan
  • 不败少龙 2024-01-25

    百度的时候看到你写的微信文章了,已经在用了

  • Tinywan 2024-01-25

    百度竟然能搜到我呀!

  • 不败少龙 2024-01-25

    恩 就是介绍https://mp.weixin.qq.com/s/maJxs7SYuk8jSrzwGTWONQ 这个文章

  • Tinywan 2024-01-25

    好的,实际应用了,欢迎投稿啊~! 我会和webman一起推广一下

×
🔝