Giter Club home page Giter Club logo

Comments (7)

madhavanmalolan avatar madhavanmalolan commented on July 3, 2024

Can you tell me the following

  • what is the device you are testing this on?
  • Have you tried the sample command on README?
  • What do you mean "ffmpeg is disabled in the build script"?

from ffmpegandroidlibrary.

andrevdk avatar andrevdk commented on July 3, 2024

I tested on Nexus5x with Android 6 and Huawei p9 Lite with Android 7. In your tutorial for building the library, in the build script ffmpeg is disabled. Could be related to that line?
I tried the sample from README and it works fine.

from ffmpegandroidlibrary.

madhavanmalolan avatar madhavanmalolan commented on July 3, 2024

As you mention, the error says

couldn't find "libffmpeg.so".

I assume you are not using the library from jcenter, but rebuilding it.
This means that Android is not able to find the library in the libs directory.
Can you list the libs directory here?

from ffmpegandroidlibrary.

andrevdk avatar andrevdk commented on July 3, 2024

No, I use the library from jcenter as is described in ReadME. I just added compile "...." in the build.gradle of theapp and jcenter in the build.gradle of the project. I haven't tried to build anything. I just checked your tutorial about how did you build the library and I noticed that line in the build_ffmpeg.sh file.

from ffmpegandroidlibrary.

madhavanmalolan avatar madhavanmalolan commented on July 3, 2024

from ffmpegandroidlibrary.

TheHollidayInn avatar TheHollidayInn commented on July 3, 2024

I'm getting the same crash. I have no libs directory. Just added the dependency, compiled, then tested the script on a video I recorded.

private void processVideo(File videoFile) {
    File file = new File(Environment.getExternalStoragePublicDirectory(
            Environment.DIRECTORY_MOVIES), "instgram-sharer");
    if (!file.mkdirs()) {
//      Log.e(LOG_TAG, "Directory not created");
    }

    Log.v("test-tag", String.valueOf(file));

    Controller.getInstance().run(new String[]{
      "-y",
      "-i",
      videoFile.getAbsolutePath(),
      "-vcodec",
      "copy",
      "-an",
      file.getAbsolutePath(),
    });
  }

from ffmpegandroidlibrary.

madhavanmalolan avatar madhavanmalolan commented on July 3, 2024

from ffmpegandroidlibrary.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.