bramp / ffmpeg-cli-wrapper

Java wrapper around the FFmpeg command line tool
BSD 2-Clause "Simplified" License
1.69k stars 413 forks source link

Document supported FFmpeg versions #31

Open stonio opened 8 years ago

stonio commented 8 years ago

Can you add in this project homepage useful information for newcomers to start:

mandrakey commented 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:

CaMauHap commented 7 years ago

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.

bramp commented 7 years ago

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.

CaMauHap commented 7 years ago

Ah ha, I got it. Btw, i want to draw text on video screen like this , Can you show me which class I can use ? Thanks,