美文网首页
FFmpeg running on windows with j

FFmpeg running on windows with j

作者: OnlyRose | 来源:发表于2017-11-12 17:58 被阅读15次

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();

相关文章

网友评论

      本文标题:FFmpeg running on windows with j

      本文链接:https://www.haomeiwen.com/subject/lblomxtx.html