Open stonio opened 8 years ago
Maybe the Java version (which was added to the readme, I just saw a "Java 7+" sign there). As for the other two:
Hi I install ffmpeg for window follow this instruction , and I try to run test as your guide
FFmpeg ffmpeg = new FFmpeg("/path/to/ffmpeg");
FFprobe ffprobe = new FFprobe("/path/to/ffprobe");
My code is
try { FFmpeg ffmpeg = new FFmpeg("C:/ffmpeg"); FFprobe ffprobe = new FFprobe("C:/ffprobe"); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); }
The error is
[main] INFO net.bramp.ffmpeg.RunProcessFunction - C:/ffmpeg -version java.io.IOException: Cannot run program "C:/ffmpeg": CreateProcess error=5, Access is denied at java.lang.ProcessBuilder.start(Unknown Source) at net.bramp.ffmpeg.RunProcessFunction.run(RunProcessFunction.java:38) at net.bramp.ffmpeg.FFcommon.version(FFcommon.java:66) at net.bramp.ffmpeg.FFmpeg.version(FFmpeg.java:1) at net.bramp.ffmpeg.FFmpeg.
(FFmpeg.java:89) at net.bramp.ffmpeg.FFmpeg. (FFmpeg.java:84) at com.ytb.Render.main(Render.java:13) Caused by: java.io.IOException: CreateProcess error=5, Access is denied at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl. (Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 7 more
Please help me to overcome it.
I doubt the ffmpeg is at 'C:/ffmpeg'
From the tutorial it looks like it is at 'c:\ffmpeg\bin\ffmpeg.exe'. However if you followed instruction #3 you should be able to just say 'ffmpeg' and it will find it on your path.
Can you add in this project homepage useful information for newcomers to start: