I'm here again.I'm trying to Integrate ffmpeg into android App.The code in ffmpeg.java's doc file doesn't work.
String ffmpeg = Loader.load(org.bytedeco.ffmpeg.ffmpeg.class);
`ProcessBuilder pb = new ProcessBuilder(ffmpeg, "-i", "/path/to/input.mp4", "-vcodec", "h264",
"/path/to/output.mp4");`
pb.inheritIO().start().waitFor();
When I'm trying to load the executable file path,I find the filename to find is like "platform
/ffmpeg",and via classLoader,it can't be found.The platform
means android-x86,android-x86_64,android-arm or android-arm64.
Instead,I find it that when I change the filename param to "lib/platform
/ffmpeg",the executable file will be found by classLoader.Here,the platform
means arm64-v8a,armeabi-v7a,x86, or x86_64
.
This occurs only on Android platform so far in my environments.Below is the cache file tree of the app.
Hope that you can get what I'm talking.Emmm,my English skill is poor,thanks. Just the "helloworld" code doesn't work on android.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4