我正在研究ffmpeg视频比较。我从java调用ffmpeg视频比较命令。执行命令后。比较过程停止了。如果我杀死了javaw.exe,则命令resume和working和result文件被创建。 我使用以下代码执行命令:
String command2CompareVideos = "D:\\bin\\ffmpeg -y -i D:\\postVideo_16.mp4 -i D:\\postVideo_16.mp4 -filter_complex \"[1:v]format=yuva444p,lut=c3=128,negate[video2withAlpha],[0:v][video2withAlpha]overlay[out]\" -map [out] D:\\ResultVideo.mp4"
String[] processCommand = { "cmd", "/c","CALL", command2CompareVideos};
Process imgComProcess = Runtime.getRuntime().exec(processCommand);
imgComProcess.waitFor();
BufferedReader ouPiutReader = new BufferedReader(new InputStreamReader(imgComProcess.getInputStream()));
String outPut = ouPiutReader.readLine();
while(outPut != null){
outPut = ouPiutReader.readLine();
System.out.println("Output: "+outPut);
}
答案 0 :(得分:0)
不确定,但只是通过链接,它可以帮助您了解JAVAW.EXE。