Giter Site home page Giter Site logo

Comments (7)

wseemann avatar wseemann commented on June 24, 2024

Can you post the URLs you were trying to use?

from ffmpegmediametadataretriever.

Sinhbk avatar Sinhbk commented on June 24, 2024

I tried audio files in sdcard and its not work. URL: /mnt/sdcard/DCIM/music.mp2 .
For video files. Its working perfectly.

from ffmpegmediametadataretriever.

Sinhbk avatar Sinhbk commented on June 24, 2024

Can you give me a way to write code C log to java side. Using printf as in code does not work.
Many thanks!

from ffmpegmediametadataretriever.

Sinhbk avatar Sinhbk commented on June 24, 2024

I wrote log and found that the error was taken in method
if (avformat_open_input(&state->pFormatCtx, path, NULL, NULL) != 0) {
printf("Metadata could not be retrieved\n");
*ps = NULL;
return FAILURE;
}
the path: /mnt/sdcard/DCIM/music.mp2. I tried adding prefix "file://" to the path but it still not work.

from ffmpegmediametadataretriever.

wseemann avatar wseemann commented on June 24, 2024

You need to include the following header: #include <android/log.h>

You can then print debug statements with: __android_log_print(ANDROID_LOG_INFO, LOG_TAG, "Some statement");

There is no "error" in the library. It's not working with mp2 files because I didn't compile the library with mp2 support. Re-compile FFmpeg with mp2 support and it will work fine.

from ffmpegmediametadataretriever.

wseemann avatar wseemann commented on June 24, 2024

I recompiled the library with all codecs enabled and commited the resulting libraries. Please re-download and try again.

from ffmpegmediametadataretriever.

Sinhbk avatar Sinhbk commented on June 24, 2024

It works. Thanks for your help!

from ffmpegmediametadataretriever.

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.