Kodi Community Forum

Full Version: Support Thread for MediaCodec
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12
(2013-12-04, 15:40)Abnormal1 Wrote: [ -> ]Does MX Player use mediacodec?
If it does is there a particular mode I have to enable to use mediacodec instead of libstage?
I think the MX player "HW+" mode is using the libstagefright/MediaCodec api.
(2013-12-04, 02:01)davilla Wrote: [ -> ]http://pastebin.com/wiVbhC4m is more interesting, crash deep inside android. I'd almost say your device's mediacodec implementation has issues. Do other players that use mediacodec work ?

Thanks for your help davilla. I have tried MX Player H/W+ and this crashes. I have also tried xbmc using libstagefright and this also crashes so I think that the problem may be with my device and not xbmc.

The strange thing is that when I used MX Player H/W and not H/W+ it did not crash. I really wish MX Player posted more info on what methods they used to play video.

In case anyone is interested I reinstalled the rom for my device and re tested xbmc with both mediacodec and libstagefright. They both crashed as usual.
mediacodec http://pastebin.com/uxL6biAX
libstagefright http://pastebin.com/sicELkWC

Thanks
Gentlemen, I still struggle whether/how to use mediacodec or only libstagefright. I have a RK3188 device (Jesurun DX05 old revision) with Wasser ROM 1.2.3 and unmodded Gotham Alpha 10

Let me explain my problems on these two example files: http://curly.100dola.eu/.private/xbmc-videos/

The Dolby Channel Check works completely fine with only libstagefright, however crashes immediatelly with mediacodec. The same goes for MPEG2-TS streaming IPTV (log here: http://pastebin.com/mgbvxMW4) or any files recorded from those streams using VLC (I have my own programmed solution for capturing cable IPTV built on VLC on the server). Basically, everything MPEG2-based crashes right away with the last entry in the log being opening.

The Family Guy on libstagefright only plays well through the opening song, but afterwards the video starts to show compression blocks and slows the speed. Sometimes when I play it, it only starts playing audio. Enabling mediacodec solves the problem.

Since the only way to watch cable TV here is the MPEG2-TS streaming, I need that to work. I also have quite a big collection of TV Shows and lot of them are older Xvid releases. Some series play well while other are quite a lottery. Is there maybe an option to set prefered codec based on video format? For example blacklist mediacodec for VOB and TS?
(2013-12-04, 16:58)Koying Wrote: [ -> ]
(2013-12-04, 15:40)Abnormal1 Wrote: [ -> ]Does MX Player use mediacodec?
If it does is there a particular mode I have to enable to use mediacodec instead of libstage?
I think the MX player "HW+" mode is using the libstagefright/MediaCodec api.

For what it's worth, I tried the video that I'm having issues with ( http://forum.xbmc.org/showthread.php?tid...pid1556596 ) with MX player HW+ and had no issues with it.

I'm still having the same issue where it looks like the chrominance is further up the screen than the luminance with MediaCodec in the latest nightlies.

Also having the "slideshow" effect with libstagefright which was introduced in newer nightlies, so I've been running with no hardware acceleration for playback.
(2013-12-04, 20:13)Abnormal1 Wrote: [ -> ]Thanks for your help davilla. I have tried MX Player H/W+ and this crashes. I have also tried xbmc using libstagefright and this also crashes so I think that the problem may be with my device and not xbmc.
Do you have a stable power source. A lot of these sticks come with a very crappy 5V USB power supply. One of the first things to do for any of them is to replace them with a known good power supply. Your example looks like a textbook example of what happens when using the delivered power supply, this is exactly the behaviour you can expect. Does not look like a software problem given your description.
(2013-12-13, 23:15)pe1dnn Wrote: [ -> ]Do you have a stable power source. A lot of these sticks come with a very crappy 5V USB power supply. One of the first things to do for any of them is to replace them with a known good power supply. Your example looks like a textbook example of what happens when using the delivered power supply, this is exactly the behaviour you can expect. Does not look like a software problem given your description.

I have now tried a bench psu to power my device but sadly it did not solve it sadly. Thanks for the idea.
Hi,

I recently bought a T-R42 Android Mini PC with an RK3188 CPU and 2GB of Ram.

But now i've the problem that XBMC crashes when i try to play Live TV (PVR) and the MediaCodec Hardware Acceleration is enabled!

It only crashes on Live TV (PVR) and not on Local Media, Local Media runs fine, but only up to 720p, 1080p runs only with FPS drop downs...

I've tried to disable the Media Codec Hardware Acceleration, Live TV works then, but with big FPS drop downs, even on SD Channels, thats not the Live TV Experience that i wanted...

Is there any fix for this?

Here is my xbmc.log

http://pastebin.com/3qBR7QCX



greets MakaveliTha


edit: HD Channels seems to work with MediaCodec Hardware Acceleration enabled, but they run very bad...
The lastet NB 20131219. Havs a Problem on LeTV X60 Android based TV set(Snapdragon S4 Prime Processors and 2G Memery, the customize Android version is maybe 4.1 or4.2? ). The log: http://xbmclogs.com/show.php?id=99580

When play some 720P 24FPS movie, it will be have lag after 1 or 2 minutes, The FPS will down to about 9 or 10/s. Then the frame stop with the sound go normally.

This version on Samsung N5100 (Exynos 4412 Processors and 2G Memery) is running well without the problem.

All the 13.0 Alpha version have this problem on the 1st drive and the release 12.2 version have not this problem.

P.S.: All the 13.0 Alpha version have another problem that it will be many color lump when playing some H.264 movie. And other player with hardmare decode has play these movie well like MX player, etc. The log: http://xbmclogs.com/show.php?id=99583
@davilla Please check http://forum.xbmc.org/showthread.php?tid...pid1581695
At first sight, I'd say that "omx.exynos" returns a buffer in width/height rather than stride/slice.

BTW, for NV12, shouldn't it be
Code:
unsigned int iChromaPixels = iPixels / 2;
(2013-12-25, 15:11)Koying Wrote: [ -> ]@davilla Please check http://forum.xbmc.org/showthread.php?tid...pid1581695
At first sight, I'd say that "omx.exynos" returns a buffer in width/height rather than stride/slice.

BTW, for NV12, shouldn't it be
Code:
unsigned int iChromaPixels = iPixels / 2;

Yep, to be proper, you can save 1/2 the memory malloc'ed for the UV component.
I have the following issue with Mediacodec on an RK3066 (MK808B using Finless 1.7 ROM and updated libstagefright). When I start an XVID movie the first time it runs. When I stop it and start it again I get sound but no video. When I stop it again then XBMC hangs, I have to kill the process.

I started with a clean settings, only enabled debugging, restarted XBMC and then straight to the file.

Log: http://xbmclogs.com/show.php?id=103956

Note: "The Matrix" file from http://www.auby.no/files/video_tests/ does not even play the first time. And also here when I stop the file XBMC hangs.

Log: http://xbmclogs.com/show.php?id=103961
I playing 13 Alpha 10 and 11 version in odroid-xu.
but some video files make problem.

problem video file's encoding options are DivX6(D1@2012Kbps@24fps) and AAC-LC([email protected]@2ch) avi file.

and this log is a crash log.

============================================================================================================
(standard input):304[ 1288.551693] s5p_mfc_handle_error:719: Interrupt Error: 100
[ 1288.557480] s5p_mfc_wait_for_done_ctx:81: Finished (ctx->int_type:32, command: 3).
[ 1288.564874] s5p_mfc_wait_for_done_ctx:82: But error (ctx->int_err:100).
============================================================================================================

closed xbmc app after show this log.

============================================================================================================
(standard input):3179:I/DEBUG ( 1799): 7a0a1be4 74398730 /data/app-lib/org.xbmc.xbmc-1/libxbmc.so
(standard input):3367:I/WindowState( 2138): WIN DEATH: Window{412260f0 u0 org.xbmc.xbmc/org.xbmc.xbmc.Main}
(standard input):3368:I/ActivityManager( 2138): Process org.xbmc.xbmc (pid 3389) has died.
(standard input):3370:W/ActivityManager( 2138): Force removing ActivityRecord{41273628 u0 org.xbmc.xbmc/.Main}: app died, no saved state
============================================================================================================


I checked xbmc -> system -> video -> playback -> mediacodec / libstagefright.

but i have not problem when H/W decoding option is not checked.

who seen this problem ?

(sorry, I'm first came in here. So do not know how to upload and write the log.)
xbmc.log and don't clip what you think we might need to see Smile
upload the complete log (or logcat) output to pastebin.com and put the link in here to be precise.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12