Skip to content

The "helloworld" code in the ffmpeg.java's doc doesn't work on android platform.  #1410

@qq12cvhj

Description

@qq12cvhj

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.
截图录屏_选择区域_20200427233328

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions