Comments (11)
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.
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.
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.
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.
What URI are you passing to that method?
from ffmpegmediametadataretriever.
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.
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.
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.
Any suggestions?? I'm really stuck at this problem, especially for samsung devices, because they don't support android MediaMetadataRetrivier...
from ffmpegmediametadataretriever.
What do you mean by "there are artifacts instead of visible pictures"? Can you explain in more detail or post an example?
from ffmpegmediametadataretriever.
Closed due to inactivity.
from ffmpegmediametadataretriever.
Related Issues (20)
- FFmpegMediaMetadataRetriever keep scanning url in background HOT 2
- FFmpegMediaMetadataRetriever解析不了flac格式 HOT 3
- How to import FFmpegMediaMetadataRetriever();? HOT 4
- OpenSSL lower then 1.1.1i HOT 3
- Embedded coverart overwrites comment field
- it seems like the customer header not working by use method setDataSource ,please fix it ,thanks HOT 4
- getScaledFrameAtTime returns black bitmap on some videos HOT 7
- Get thumbnail from HLS VOD content HOT 2
- libavformat.so #00 pc 000b50d8
- Can not use FFmpegMediaMetadataRetriever HOT 2
- how to use it with recyclerview ? HOT 1
- What is the reason of memory increasing. HOT 1
- Can it retrieve frames of a video at 24fps rate? HOT 1
- Uncatchable crash setDataSource code -1 (SI_QUEUE) HOT 8
- FFmpegMediaMetadataRetriever does not respect video rotation in getFrameAtTime HOT 1
- Android FFmpegMediaMetadataRetriever get Frame from RTSP stream App Crash with A/libc: Fatal signal 6 (SIGABRT) HOT 10
- JNI_ERR returned from JNI_OnLoad HOT 1
- METADATA_KEY_DURATION returns 0 for mp3 on android 6.0.1 but works on other versions HOT 2
- 获取Flv视频格式的缩略图时闪退 HOT 2
- retry后socket没有释放
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ffmpegmediametadataretriever.