opkvb.blogg.se

Mediacoder mac
Mediacoder mac




mediacoder mac mediacoder mac

This is the console output: 11:00:18,277 ERROR ~ There was a problem with with processing MediaFile with error Error during coding process: Cannot run program "/opt/local/bin/ffmpeg -i /Users//data/media/1/1/test.mov /Users//data/media/1/13/encoded.mp3" (in directory "/Users//data"): error=2, No such file or directory ProcessBuilder pb = new ProcessBuilder(execCode) This is my code for ProcessBuilder (exactly the same code works when replaced by Runtime.getRuntime().exec()) String execCode = "/opt/local/bin/ffmpeg -i file " Is there a fundamental difference between the Runtime method and the ProcessBuilder? I used Process pr = Runtime.getRuntime().exec(execCode)įor this (and it works perfectly), but as I need both, the output stream and the error stream, I am trying to use ProcessBuilder (as is also recommended).īut I cannot get it to work (testing on a MacBook). I have an application, running on the Playframework, which needs to encode some video files.






Mediacoder mac