Friday, April 29, 2016

MT6582 video pixelated / twitch playback issue

I have a bug with all the roms i have ported for my smartphone. CM12.1 and CM13.
My smartphone is the uhappy up520 which has mt6582.

The roms i have tried where from
http://mtkroms.com
or from this forum, eg
http://ift.tt/1NEWJSz
http://ift.tt/1NEWLde

The problem is that:
1) I cannot watch stream through the twitch app. Audio plays but video does not show up at all. With some of the roms, i can watch the stream only on source quality.
2) All youtube video are pixelated, no matter if i play them from the original browser, chrome or youtube app, so i cannot enjoy them.

On the other hand, video files play as normal with the expected quality.
Video files i have tried were .mp4, .3gp, .mkv with 720p and 1080p resolution.

The codec that causes this problem is the OMX.ffmpeg.h264.decoder type="video/avc".
This codec is first on media_codecs.xml so it gets selected. If i delete it or move the OMX.google.h264.decoder type="video/avc" first then:
1) I can watch twitch stream with quality up to 720p. With 1080p the same behaviour, audio but no video.
2) I can watch youtube videos without any quality problem but there is a small part of videos that cannot be played.
3) I cannot play video files directly from the file manager by either choosing the default video player or vlc. Video files play fine if i open them from within vlc.

Other things that i have tried:
1) Replace libMtkOmx*.so, media_codecs.xml, mtk_omx_core.cfg, libvcodecdrv.so from stock rom but it did not help.
From what i've read, i have to register the codecs to stagefright, so that they are recognized. I believe, that's why the stock libMtkOmx*.so codecs do not work.
So, i tried the following too

2) Replace all or some of libstagefright*.so but android was stuck at loading.
3) Replace libmediaplayerservice.so but it was stuck at loading too.
4) Replace libffmpeg_extractor.so, libffmpeg_omx.so, libffmpeg_utils.so with libs from other roms without any luck.

Combinations of all the above.

Can someone help me? This is the only bug that's left for me to enjoy a custom rom.


from xda-developers http://ift.tt/1SOvdBp
via IFTTT

No comments:

Post a Comment