Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9138869
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:18:47+00:00 2026-06-17T09:18:47+00:00

I used the project FFmpeg4Android on sourceforge to build the FFmpeg .so shared library

  • 0

I used the project FFmpeg4Android on sourceforge to build the FFmpeg .so shared library files. However, I am having trouble using them in an ADT Java application. I created a simple JNI call that attempts to call av_register_all and I get library errors.

When I run the application on my Nexus 7 I am told that it is unable to load library libavformat-HEAD-1.0.so

So I tried to load this via the System.loadLibrary method and I was unable to find libavcodec-HEAD-1.0.so. Working my way back in this manner I eventually attempted to load libavutil-HEAD-1.0.so which yielded an error ‘cannot locate symbol “__strchr_chk”‘.

This is my Java class:

public class LibavcodecTest {
    public static native void avRegisterAll();

    static {
        System.loadLibrary("avutil-HEAD-1.0");
        System.loadLibrary("avcodec-HEAD-1.0");
        System.loadLibrary("avformat-HEAD-1.0");
        System.loadLibrary("LibavcodecTest");
    }
}

Update

I contacted the developer that maintains ffmpeg4android and he was able to direct me to change the version of the android source I was building against to the same as my device which worked to allow my to call av_register_all successfully.

However, now I get a crash calling avformat_open_input where I receive “Fatal signal 11 (SIGSEGV)”.

My search on the web makes me believe this is a memory access issue. Does anybody know if this may be resolved by loading the shared libraries differently?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T09:18:48+00:00Added an answer on June 17, 2026 at 9:18 am

    The key to getting the built shared libraries to work on my device was to build the source on an older NDK that was compatible with it. I was attempting to build it on the latest source and that did not work.

    Here is a link to the discussion I had with the developer who helped me solve it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Are the keywords used for project, target, task, function, ... in NAnt build files
I am using SQLite in a project used by an android application. Currently I
I'm having issues with using ctypes. I'm trying to get the following project running
I have a shared project (C#) used by several other projects. In VS2008, everything
.project files contain references to the project natures used in the project. These project
I am using Ooyala player in my project, the project used to use MPMoviePlayer,
Our multi-module Maven project used to take 4-6 minutes to build. Over the past
I have a VS project used for my .NET WCF host with some simple
I have a Biztalk 2006 R2 project (used with ESB Guidance 1) I am
I have a problem regarding the ksoap2. My problem is that the project used

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.