[guardian-dev] android-ffmpeg-java: FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed

Josh Steiner josh at vitriolix.com
Sun Jul 21 21:11:34 EDT 2013


Minor correction... it's now happening on my builds of storymaker too...
wonder what changed.  -josh


On Sun, Jul 21, 2013 at 6:03 PM, Josh Steiner <josh at vitriolix.com> wrote:

> I just setup a new test app to try some stuff out, this is the first time
> I've tried to integrate android-ffmpeg-java into an app. it's dying when it
> tries to install the ffmpeg binary from res/raw.  This is in fact the exact
> same project as I currently use in StoryMaker, which works... but not in
> this new app. did I miss some configuration/setup step?
>
> It's failing here:
>
> long assetLength =
> mContext.getResources().openRawResourceFd(R.raw.ffmpeg).getLength();
>
> stacktrace:
>
> 07-21 17:58:52.049: E/AndroidRuntime(16122):
> android.content.res.Resources$NotFoundException: File res/raw/ffmpeg from
> drawable resource ID #0x7f040000
> 07-21 17:58:52.049: E/AndroidRuntime(16122): at
> android.content.res.Resources.openRawResourceFd(Resources.java:981)
> 07-21 17:58:52.049: E/AndroidRuntime(16122): at
> org.ffmpeg.android.FfmpegController.checkBinary(FfmpegController.java:49)
> 07-21 17:58:52.049: E/AndroidRuntime(16122): at
> org.ffmpeg.android.FfmpegController.<init>(FfmpegController.java:41)
> 07-21 17:58:52.049: E/AndroidRuntime(16122): at
> io.scal.ffmpegparceltest.MainActivity.concat(MainActivity.java:180)
> 07-21 17:58:52.049: E/AndroidRuntime(16122): at
> io.scal.ffmpegparceltest.MainActivity.access$0(MainActivity.java:168)
> 07-21 17:58:52.049: E/AndroidRuntime(16122): at
> io.scal.ffmpegparceltest.MainActivity$3.onClick(MainActivity.java:79)
> 07-21 17:58:52.049: E/AndroidRuntime(16122): at
> android.view.View.performClick(View.java:4084)
> 07-21 17:58:52.049: E/AndroidRuntime(16122): at
> android.view.View$PerformClick.run(View.java:16966)
> 07-21 17:58:52.049: E/AndroidRuntime(16122): at
> android.os.Handler.handleCallback(Handler.java:615)
> 07-21 17:58:52.049: E/AndroidRuntime(16122): at
> android.os.Handler.dispatchMessage(Handler.java:92)
> 07-21 17:58:52.049: E/AndroidRuntime(16122): at
> android.os.Looper.loop(Looper.java:137)
> 07-21 17:58:52.049: E/AndroidRuntime(16122): at
> android.app.ActivityThread.main(ActivityThread.java:4745)
> 07-21 17:58:52.049: E/AndroidRuntime(16122): at
> java.lang.reflect.Method.invokeNative(Native Method)
> 07-21 17:58:52.049: E/AndroidRuntime(16122): at
> java.lang.reflect.Method.invoke(Method.java:511)
> 07-21 17:58:52.049: E/AndroidRuntime(16122): at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
> 07-21 17:58:52.049: E/AndroidRuntime(16122): at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
> 07-21 17:58:52.049: E/AndroidRuntime(16122): at
> dalvik.system.NativeStart.main(Native Method)
> 07-21 17:58:52.049: E/AndroidRuntime(16122): Caused by:
> java.io.FileNotFoundException: This file can not be opened as a file
> descriptor; it is probably compressed
> 07-21 17:58:52.049: E/AndroidRuntime(16122): at
> android.content.res.AssetManager.openNonAssetFdNative(Native Method)
> 07-21 17:58:52.049: E/AndroidRuntime(16122): at
> android.content.res.AssetManager.openNonAssetFd(AssetManager.java:428)
> 07-21 17:58:52.049: E/AndroidRuntime(16122): at
> android.content.res.Resources.openRawResourceFd(Resources.java:978)
> 07-21 17:58:52.049: E/AndroidRuntime(16122): ... 16 more
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mayfirst.org/pipermail/guardian-dev/attachments/20130721/85ed1c6f/attachment.html>


More information about the Guardian-dev mailing list