Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch mediaplayer decoding error #22

Closed
tulkas85 opened this issue May 13, 2014 · 3 comments
Closed

Catch mediaplayer decoding error #22

tulkas85 opened this issue May 13, 2014 · 3 comments

Comments

@tulkas85
Copy link

How can I catch this error at android development level ?

These errors occours when I set high frame-rate and high resolution for my grid of videoview.
I want decrease video quality if these errors starts to occur, but I need to catch them.

I set OnErrorListener and OnInfoListener of Videoview, but nobody fire on these errors.

05-13 12:02:32.601: E/IJKMEDIA(2658): top block unavailable for requested intra4x4 mode -1 at 14 0
05-13 12:02:32.601: E/IJKMEDIA(2658): error while decoding MB 14 0
05-13 12:03:30.765: E/IJKMEDIA(2658): corrupted macroblock 13 0 (total_coeff=-1)
05-13 12:03:30.765: E/IJKMEDIA(2658): error while decoding MB 13 0
@bbcallen
Copy link
Contributor

These are not error but just ffmpeg's av_log(AV_ERROR, …).

@tulkas85
Copy link
Author

ok, but I need something like number of frame with error in decoding, it's possible to do ?

@bbcallen
Copy link
Contributor

Yep, that would be an ffmpeg issue. Search where these logs are produced, print the information you need, or pass them through ffmpeg's api.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants