• 1
  • 6
  • 7
  • 8(current)
  • 9
  • 10
  • 12
Support Thread for MediaCodec
Using the latest nightly build (as of this post xbmc-20140212-a74973f-master-armeabi-v7a.apk) when trying to play mpeg2 files recorded via Mythtv, XBMC crashes on my Minix G4 using mediacodec; it plays very slowly using libstagefright.

Playing the same file on my Nexus 7 works fine using mediacodec.

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

And a copy of my logcat
http://xbmclogs.com/show.php?id=130699

The file I was attempting to play was "pvr://recordings/Default/25_1 (WFXT DT)/"

Running mediainfo on the file shows:

Code:
General
ID                                       : 1365 (0x555)
Complete name                            : 1251_20140125195500.mpg
Format                                   : MPEG-TS
File size                                : 6.28 GiB
Duration                                 : 1h 4mn
Overall bit rate mode                    : Variable
Overall bit rate                         : 13.9 Mbps

Video
ID                                       : 49 (0x31)
Menu ID                                  : 1 (0x1)
Format                                   : MPEG Video
Format version                           : Version 2
Format profile                           : Main@High
Format settings, BVOP                    : Yes
Format settings, Matrix                  : Default
Format settings, GOP                     : M=3, N=15
Codec ID                                 : 2
Duration                                 : 1h 4mn
Bit rate mode                            : Variable
Bit rate                                 : 12.6 Mbps
Maximum bit rate                         : 38.8 Mbps
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Active Format Description                : Letterbox 16:9 image
Frame rate                               : 59.940 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.228
Stream size                              : 5.68 GiB (90%)

Audio #1
ID                                       : 52 (0x34)
Menu ID                                  : 1 (0x1)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Codec ID                                 : 129
Duration                                 : 1h 4mn
Bit rate mode                            : Constant
Bit rate                                 : 448 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Delay relative to video                  : -495ms
Stream size                              : 207 MiB (3%)
Language                                 : English

Audio #2
ID                                       : 53 (0x35)
Menu ID                                  : 1 (0x1)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Codec ID                                 : 129
Duration                                 : 1h 4mn
Bit rate mode                            : Constant
Bit rate                                 : 192 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Delay relative to video                  : -472ms
Stream size                              : 88.7 MiB (1%)
Language                                 : Spanish

Text #1
ID                                       : 49 (0x31)-608-1
Menu ID                                  : 1 (0x1)
Format                                   : EIA-608
Muxing mode                              : A/53 / DTVCC Transport
Muxing mode, more info                   : Muxed in Video #1
Duration                                 : 1h 4mn
Bit rate mode                            : Constant
Stream size                              : 0.00 Byte (0%)

Text #2
ID                                       : 49 (0x31)-1
Menu ID                                  : 1 (0x1)
Format                                   : EIA-708
Muxing mode                              : A/53 / DTVCC Transport
Muxing mode, more info                   : Muxed in Video #1
Duration                                 : 1h 4mn
Bit rate mode                            : Constant
Stream size                              : 0.00 Byte (0%)
[/code]
[/quote]
Reply
Device:
Nook Color
OMAP 3621 (aka ARMv7 rev 2 v7l, aka Cortex A8) CPU
PowerVR SGX 530 GPU

Software:
CyanogenMod 10.2.1-encore
Android 4.3.1
Kernel 3.0.8-g080f0e5

XBMC:
Gotham nightly 13.0-ALPHA12 20140218-f6f539a
Skin: Touched
MediaCodec enabled, Libstagefright enabled (thus uses MediaCodec)
All other settings default after a fresh installation.

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

Steps:
Start XBMC
Select Videos>Files>sdcard1>Downloads
Play "Fun.- We Are Young.mp4"

Problem:
Spinner appears, never stops spinning, video never starts

If I disable both libstagefright and mediacodec, I can actually start playing any of my media files (though on anything greater than SD it grinds to a halt shortly). I can't see obvious errors in the log, but you can see the timestamp jump at the end -- it never really 'starts'. I'd love a "this will start working soon" answer, but will settle for a "this will never work because XYZ" (e.g. OMAP3 never going to be supported, or Huh)
Reply
Is there a way to default certain codecs to mediacodec and others to libstagefright. I have to constantly turn off and back on mediacodec on my RK3188 device. I used to run the 9/29 version of Gotham and never had any issues but anything after this I have to turn off and on mediacodec depending on the show I am watching. It would be great if I could update a file so when a particular codec is needed it defaults to the correct setting.
Reply
Device:
Dell Wyse Cloud Connect
http://www.dell.com/us/business/p/cloud-connect/pd
Multi-core Cortex-A9 ARM System-on-Chip (SoC)

Software:
Android 4.1.2
kernel 3.0.31

XBMC:
XBMC (13.0-BETA2 Git:20140315-a1cab7a)
MediaCodec enabled, Libstagefright disabled
All other settings default after a fresh installation.

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

Steps:
Start XBMC
Select Videos>Files>sdcard1>Movies
Play h264 and mpeg in .ts

Problem:
- high cpu load, framedrops
freaksworth is not connected to or in any other way affiliated with XBMC, Team XBMC, or the XBMC Foundation.
Reply
Exclamation 
Since this PR https://github.com/xbmc/xbmc/pull/4524 was merged I can't watch properly any video using Mediacodec. It looks like this:

Image

Log:
http://xbmclogs.com/show.php?id=172251
Athlon XP 2800+ (MMX, SSE, 3Dnow) - ATI HD3450 AGP - Windows 7 Professional 32bits
Reply
(2014-04-12, 14:49)onomatopellan Wrote: Since this PR https://github.com/xbmc/xbmc/pull/4524 was merged I can't watch properly any video using Mediacodec. It looks like this:
Yeah, bogus commit. It will be reverted soon.
Reply
Dears,

We have found a rarely occurring bug in MediaCodec and would like to be sure the fix doesn't break anything.
Could you test this Gotham master build, please: http://mirrors.xbmc.org/test-builds/andr...bi-v7a.apk

Thanks
Reply
@Koying

I did some testing with my Nexus 5 running Android 4.4.2 but it seems mediacodec is completely broken with both builds.
https://docs.google.com/spreadsheets/d/1...sp=sharing

If you want a specific log etc I'll be glad to assist.
Reply
Seems OK with Dalvik. ART is not a problem for Gotham.

Tested my dir of samples with B3 and the PR build, no noticeable difference AFAICT.
Reply
That may have done it for me, koying. Otoh, I wasn't able to install the apk at all until I had uninstalled the old apk, so for me it may have just been a crap install or something.
Reply
@Kib
Could you take a logcat while MediaCodec is cashing?
Are you using the stock FW?

@Al
Do you mean you tested Gotham with ART and you had no issues?
Reply
@Koying Yes I should be able to do that. Edit: when I am back home in about 10 hours from now.

As far as I understand from team chatlog from yesterday, althekiller tested with dalvik which was working then switched to ART and confirmed breakage

Note: When installing the pr build on top of nightly android will ask if you want to update, then error out with 'app does not exist'. I believe this is what Nate saw as well. Probably something to do with version numbering - I dismissed it as being not important
Reply
Hehe... So you mean exactly the contrary of what he wrote ;-)
No having any ART device myself (are there other than N5 currently, officially?) , it will be quite difficult for me to fix, but having a logcat might give us an idea.

[edit]
Oh, maybe he meant that ART having a problem is not a problem for Gotham.
Reply
Every 4.4+ device supports ART.
Hardware accelerated playback in MXplayer works for all my testfiles (dts audio needs to be done with optional external mplayer dll, in software) under ART.

I think althekiller meant that ART being broken does not need to be fixed for Gotham.

Edit: indeed Smile
Edit2: I am new to testing android, but fully willing to invest some time. Adb logcat seems easy enough, probably could do debug traces as well.
Reply
Yep. And indeed KK boxes are coming (Minix X8 that I know of)...
Reply
  • 1
  • 6
  • 7
  • 8(current)
  • 9
  • 10
  • 12

Logout Mark Read Team Forum Stats Members Help
Support Thread for MediaCodec5