ffmpeg-android-java
ffmpeg-android-java copied to clipboard
java.io.IOException: Cannot run program "/data/user/0/com.zhou.ffmpegdemo/files/ffmpeg": error=2, No such file or directory
java.io.IOException: Cannot run program "/data/user/0/com.zhou.ffmpegdemo/files/ffmpeg": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:983)
at java.lang.Runtime.exec(Runtime.java:691)
at java.lang.Runtime.exec(Runtime.java:559)
at com.github.hiteshsondhi88.libffmpeg.ShellCommand.run(ShellCommand.java:10)
at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:38)
at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:10)
at android.os.AsyncTask$2.call(AsyncTask.java:305)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.
I have this problem, too
I have this problem too
same problem here
@zhjjoy @faith-hb @amintabar @doomers please have a look at the "Load binary" paragraph here http://writingminds.github.io/ffmpeg-android-java/
I'm facing the same issue. Anyone found a solution for this?
@channae
FFmpeg needs to be initiliazed before use it calling
ffmpeg.loadBinary.....
then you will be able to do ffmpeg.execute(.....
What is the best place to call ffmpeg.loadBinary? Shall I call it in the application class as it is an one time process. @andrey2ag
@channae FFmpeg needs to be initiliazed before use it calling
ffmpeg.loadBinary.....
then you will be able to doffmpeg.execute(.....
very nice
What is the best place to call ffmpeg.loadBinary? Shall I call it in the application class as it is an one time process. @andrey2ag
Yes, Absolutely.