php 上传视频并获取视频第一帧

function shipin(){
//检测是否为视频
$oldfilepath = $this->ShipinChock();
//路径
$part ="";
$name = “”;
h o u z h u i = " . m p 4 " ; i f ( ! i s d i r ( houzhui = ".mp4"; if(!is_dir( party)){
mkdir($paty);
}
$newfilepaty = p a t y . / . paty.'/'. name. h o u z h u i ; m o v e u p l o a d e d f i l e ( houzhui; move_uploaded_file( oldfilepath,$newfilepaty);
$input = “”;
$output ="";
//ffmpeg获取视频帧 -i 后面是输出 -y 是质量 -f 是输出格式 -t 时间
KaTeX parse error: Expected '}', got 'EOF' at end of input: …bin/ffmpeg -i {input} -y -f image2 -t 0.05 -s 352*240 {KaTeX parse error: Expected 'EOF', got '}' at position 7: output}̲"; shell_exec(command);
}

猜你喜欢

转载自blog.csdn.net/weixin_41612889/article/details/89185378