package com.zuidaima.ffmpeg;
public class FfmpegDemo {
public static void main(String[] args) {
String dirStr=System.getProperty("user.dir");
//视频文件
String videoRealPath =dirStr+ "\\Wildlife.wmv";
//截图的路径(输出路径)
String imageRealPath =dirStr+"//a.jpg";
try {
//调用批处理文件
Runtime.getRuntime().exec("cmd /c start "+dirStr+"\\ffmpeg.bat " + videoRealPath + " " + imageRealPath);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
最近下载更多
最近浏览更多
genyuan2014 LV6
2024年4月30日
sky丶小十 LV7
2023年12月18日
xiaochoushishei
2023年8月22日
暂无贡献等级
我的最代码 LV20
2023年6月15日
zzhua195 LV6
2023年5月12日
1529860026 LV24
2023年4月27日
zhougan0508 LV1
2023年3月26日
微信网友_5992582549164032 LV6
2023年2月21日
crosa_Don LV18
2022年7月22日
364502984 LV18
2022年6月2日

