I was trying to build up a ProcessBuilder calling the ffmpeg binary.
My problem is that calling it, it returns perfectly under MacOs, Ubuntu and WindowsXp,
but under Windows7 the waitFor() never returns.
Has anyone similar experience under windows 7? Any help would be appreciated!
My command:
ProcessBuilder pb = new ProcessBuilder( );
pb.command( "C:\Windows\System32\cmd.exe", "/c", "c:\ffmpeg\bin\ffmpeg.exe", "-version" );
Tried these ones too:
pb.command( "c:\ffmpeg\bin\ffmpeg.exe", "-version" );
pb.command( "C:\Windows\System32\cmd.exe", "/c", "start c:\ffmpeg\bin\ffmpeg.exe -version" );
Result is the same. :(
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…