Android , Java - Rendering a video using bitmap frames to reverse a video (Xuggler)

后端 未结 2 379
野趣味
野趣味 2021-02-04 09:03

I am having no of video frames in ArrayList. I have accessed this frames using MediaMetadataRetriever.getFrameAtTime() method over a Vid

2条回答
  •  悲&欢浪女
    2021-02-04 09:52

    Regarding your xuggler usage, the version of your library won't work on your specific device, as it contains native code compiled for x86_64 and i686 platforms:

    [2012-08-18 00:29:16 - xugglertest2]  - com/xuggle/ferry/i686-pc-linux-gnu/
    [2012-08-18 00:29:16 - xugglertest2]  - com/xuggle/ferry/x86_64-pc-linux-gnu/
    

    try finding version of this library with native code parts compiled for ARMv6 (most common Android architecture - includes older devices, if don't want to support devices older than ~1-2 years ago, ARMv7 would be better).

    Otherwise, you'll need to get the ffmpeg compiled for ARM and use it with support of Android NDK. You'll need to write a code in C/C++ implementing encoding your series of images into a specific file and wrap it up with JNI interface. You can pass Java arrays to native implementations of class' methods.

    please see sample Android NDK applications in SDK samples to see how to use JNI in your code

提交回复
热议问题