我一直收到错误消息,提示“无法加载FFprobe”我做错了吗?这是我的代码,顺便说一下,我正在使用Laravel
public function store(Request $request){
$this->validate($request, array([
'video' => 'required|mimes:mp4,flv,wmv,avi,mov,qt',
]));
$viddy=new Video;
//get the user requested file
$vid = $request->file('video');
//convert that file
$feefee=FFMPEG::convert()->input($vid)->bitrate(300, 'video')->output('bar.flv')->go();
$ filename = $ feefee-> getClientOriginalName(); $路径= $ feefee-> storeAs( 'introvideo', $ filename); $ location = public_path('/ vids',$ filename); $ feefee-> move($ location); $ viddy-> video = $ filename; $ viddy-> save();
答案 0 :(得分:0)