求救mencoder问题,急!!!
mencoder在命令行下,转换视频没有问题。
我用JAVA程序调用,运行几秒钟就停止不动了,JAVA程序和mencoder.EXE进程也没结束。
请问是什么问题呀。
JAVA代码如下:
try {
ProcessBuilder builder = new ProcessBuilder();
builder.command(commend);
Process process = null;
process = builder.start();
java.io.InputStream stderr=process.getInputStream();
InputStreamReader isr=new InputStreamReader(stderr);
BufferedReader br = new BufferedReader(isr);
String line = null;
while ((line = br.readLine())!= null)
System.out.println(line);
int exitVal=1;
exitVal = process.waitFor();
if (exitVal==0){