Giter Site home page Giter Site logo

Comments (11)

wseemann avatar wseemann commented on September 26, 2024

Looks like your Java code is making a new FFmpegMediaMetadataRetriever object for each file, is that correct? Can you post your code? Also, can you please email me the file in question?[email protected]

from ffmpegmediametadataretriever.

o-antsiferov avatar o-antsiferov commented on September 26, 2024

Yes, you are right, there is always a new instance of FFmpegMediaMetadataRetriever for each file.
I've sent you a sample code and some files which I'm using (encoded with 1 fps).

from ffmpegmediametadataretriever.

wseemann avatar wseemann commented on September 26, 2024

The issue wasn't related to the "No JNI_OnLoad found" log message, those are normal. The issue was related to a bug in the setDataSource method you were using. The issue should not be fixed. Please perform a fresh checkout and try again.

from ffmpegmediametadataretriever.

o-antsiferov avatar o-antsiferov commented on September 26, 2024

Now I've got:
02-06 09:38:46.930 31191-31239/com.example.VideoTest E/AnimationImageView﹕ setDataSource failed: status = 0xFFFFFFFF
java.lang.IllegalArgumentException: setDataSource failed: status = 0xFFFFFFFF
at wseemann.media.FFmpegMediaMetadataRetriever.setDataSource(Native Method)
at wseemann.media.FFmpegMediaMetadataRetriever.setDataSource(FFmpegMediaMetadataRetriever.java:163)

from ffmpegmediametadataretriever.

wseemann avatar wseemann commented on September 26, 2024

What URI are you passing to that method?

from ffmpegmediametadataretriever.

o-antsiferov avatar o-antsiferov commented on September 26, 2024

I put my mp4 files in a raw dir, so uri is smth like
Uri.parse("android.resource://" + getPackageName() + "/" + rawVideoResource);

02-06 10:01:08.010 473-513/com.example.VideoTest D/AnimationImageView﹕ Uri: android.resource://com.example.VideoTest/2130968591
02-06 10:01:08.010 473-521/com.example.VideoTest D/AnimationImageView﹕ Uri: android.resource://com.example.VideoTest/2130968590

from ffmpegmediametadataretriever.

o-antsiferov avatar o-antsiferov commented on September 26, 2024

Tried to place file on SdCard - it's working, but fo some frames I saw
02-06 13:10:32.685 21504-21538/com.example.VideoTest D/skia﹕ --- decoder->decode returned false
And some frames are decoded incorrectly - there are artifacts instead of visible pictures.

from ffmpegmediametadataretriever.

o-antsiferov avatar o-antsiferov commented on September 26, 2024

Maybe you can give me an advice how to encode my gifs to mp4 so there weren't any problems with frames after decoding using your libriary...

from ffmpegmediametadataretriever.

o-antsiferov avatar o-antsiferov commented on September 26, 2024

Any suggestions?? I'm really stuck at this problem, especially for samsung devices, because they don't support android MediaMetadataRetrivier...

from ffmpegmediametadataretriever.

wseemann avatar wseemann commented on September 26, 2024

What do you mean by "there are artifacts instead of visible pictures"? Can you explain in more detail or post an example?

from ffmpegmediametadataretriever.

wseemann avatar wseemann commented on September 26, 2024

Closed due to inactivity.

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.