67,512
社区成员
发帖
与我相关
我的任务
分享
String cmd = "";
//获取图片上传的路径,ffmpeg.exe文件就放在上传路径下的ffmpeg文件下面
String uploadPath = SystemConfig.getUploadPath();
//具体的命令
String cut = " " + uploadPath + "ffmpeg\\ffmpeg.exe -i \"" + path + "\" -y -f image2 -vframes 1 -s 640x352 " + uploadPath + picname;
String cutCmd = cmd + cut;//
Process proc = runtime.exec(cutCmd);// 执行命令
楼主可以参考下