FF-MPEG Run-time execution in java not running in windows 10 server.I Have test with my system its working perfectly but in windows 10 server not works.i have also gives the environment variable path in windows 10 but problem is still. my code is following
I Have try all the possible ways to running ff-mpeg command in run-time java environment but error still continues in windows 10 server
String cmd = "ffmpeg -i " + source + " -ar 16000 -ac 1 " + pathwav + wavFileName + ".wav";
System.out.println("cmd=> "+cmd);
Process p = Runtime.getRuntime().exec(cmd);
p.waitFor();
System.out.println("Exit value: " + p.exitValue());
if(p.exitValue()==0)
{
System.out.println(wavFileName + " is Created");
String path = pathwav + wavFileName + ".wav";
return path;
}
I Expect Wav File is creates in given path but it not created due to not execution of ffmpeg command