[guardian-dev] android-ffmpeg-java: FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed
Nathan of Guardian
nathan at guardianproject.info
Mon Jul 22 22:41:41 EDT 2013
On 07/22/2013 09:05 PM, Hans-Christoph Steiner wrote:
> For future reference, this should be ported to use the 'assets' folder, then
> you don't have to use the .mp3 trick.
Actually the assets and res/raw limitation for 1MB on some systems are
the same I believe.
The reason we do the .mp3 trick at all, is more related to a bug in
older versions of Android that wouldn't allow assets and res/raw larger
1MB to be compressed and uncompressed.
For newer devices, they should both not have the 1MB limit.
Otherwise, the real trick I want to move to is putting binaries in
libs/armeabi named with .so (so "libs/armeabi/ffmpeg.so") and letting
Android unpack them automatically!
You can then set: chmod 700 on libs/armeabi/ffmpeg.so and execute it in
place.
+n
More information about the Guardian-dev
mailing list