Laravel FFMpeg上传视频并根据请求连接



当我从(表单HTML(上传视频时出现问题
我使用Laravel FFMpeg包
此代码来自我的控制器

$file = $request->file('video'); // take video request
FFMpeg::fromDisk('public')
->open(['vidvid_one.mp4' , $file]) // concat video here and i think there is a problem
->export()
->concatWithoutTranscoding()
->save('contacct.mp4');

您必须将视频存储在使用ffmpeg打开函数的位置:

$request->file('video')->storeAs('folderName', $request->video->getClientOriginalName(), 'diskName');

最新更新