FFmpeg running on windows with j

2017-11-12  本文已影响15人  OnlyRose

Where ffmpeg.exe is installed? try to use full path to execute the ffmpeg.exe

e.g.

D:\ffmpeg\bin\ffmpeg.exe

then

String cmd[] = {"D:\\ffmpeg\\bin\\ffmpeg","-i","D:\\ffmpeg\\hadoop.mp4","D:\\ffmpeg\\img%d.png"};

Runtime.getRuntime().exec(cmd);

or

Process process = new ProcessBuilder(Arrays.asList(cmd)).start();

上一篇 下一篇

猜你喜欢

热点阅读