在程序中调用的时候必须指定ffmpeg.exe的绝对路径,
例如:你的ffmpeg.exe是放在dir目录(这个路径不能含有空格,否则会报错)下,则在程序中调用时
commandLineParam必须写成"dir/ffmpeg.exe -i ....";
JAVA中可以这样写:
String commandLineParam = "dir/ffmpeg.exe -i ...";
Runtime.getRuntime().exec(commandLineParam);
温馨提示:答案为网友推荐,仅供参考