• 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 12
Support Thread for MediaCodec
#61
Im trying to run xbmc on my RK3188 but whenever I play a video it crashes after several minutes. This is using mediacodec however it also crashes on libStageFright.

I have uploaded my logcat with xbmc debuging enabled in the hopes that there might be something im missing. http://pastebin.com/LTXHqMMj

It is a fresh ROM install with the latest xbmc nightly. In xbmc I only enable debug and add a usb folder to videos.

Thanks
Neil
Reply
#62
How would I disable Mediacodec voor MPEG2 live tv streams coming from tvheadend. Now If i watch local media I leave mediacodec on, but when I watch live tv (dvb-t) I have to switch off hardware decoding. Is this possible through advancedsettings.xml?
Reply
#63
(2013-11-23, 18:34)davilla Wrote:
(2013-11-23, 10:41)Koying Wrote:
(2013-11-22, 20:38)arghness Wrote: I forgot to attach a log of trying to play the above linked video. Here's one: http://xbmclogs.com/show.php?id=88204
Apparently, the "real" height is not returned by MediaCodec:
Code:
18:25:32 T:1643431048    INFO: ffmpeg[61F4C488]:     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 352x198 [SAR 1:1 DAR 16:9], 67 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc
...
18:25:33 T:1643703616   DEBUG: CDVDVideoCodecAndroidMediaCodec:: width(352), height(208), stride(352), slice-height(208), color-format(21)
18:25:33 T:1643703616   DEBUG: CDVDVideoCodecAndroidMediaCodec:: crop-left(0), crop-top(0), crop-right(351), crop-bottom(197)
18:25:33 T:1643703616   DEBUG: CDVDVideoCodecAndroidMediaCodec:: COLOR_FormatYUV420SemiPlanar
18:25:33 T:1643703616  NOTICE:  fps: 25.000000, pwidth: 352, pheight: 198, dwidth: 352, dheight: 198
18:25:33 T:1643703616   DEBUG: int CDVDPlayerVideo::OutputPicture(const DVDVideoPicture*, double) - change configuration. 352x198. framerate: 25.00. format: NV12
It returns the slice-height instead.

The display of the video should be cropped to crop values, (crop_bottom + 1 - crop_top) and you should not even see the excess area at the bottom. dheight is 198 so that says we did indeed tell the render to set a crop. I'd have to check other videos that present a different crop area. Could be we are missing something in renderer as handling NV12 is new for GLES

Would it help if I found more videos where I see a similar problem? I don't know if it's just an issue with my device / chipset or if it's on other devices as well.
Reply
#64
Hello from Germany.

Odroid U2 JB4.3.1 Cyanogenmod 10.2

Playing mpeg4 movies with mediacodec enabled XBMC crashes. HD without problems.
With libstagefright enabled alls plays fine but 720p youtube videos stutter.

Log:

Logfile

Grateful for help.

regards
Reply
#65
(2013-12-02, 18:40)muffpotter Wrote: Hello from Germany.

Odroid U2 JB4.3.1 Cyanogenmod 10.2

Playing mpeg4 movies with mediacodec enabled XBMC crashes. HD without problems.
With libstagefright enabled alls plays fine but 720p youtube videos stutter.

Log:

Logfile

Grateful for help.

regards

logcat during this would be nice to see.
Reply
#66
@davilla

mpeg4 crash logcat:

logcat
Reply
#67
@davilla
Hi I was wondering if you have had a chance to look at my logcat I posted. Its #61

Would really like to know if it looks like an xbmc or kernel issue and if theres anything I can do to help solve the issue if it is xbmc.

Thanks
Reply
#68
(2013-12-03, 09:14)muffpotter Wrote: @davilla

mpeg4 crash logcat:

logcat

12-03 08:05:04.646 I/OMXClient(5148): Using client-side OMX mux.
12-03 08:05:04.646 E/ACodec (5148): Unable to instantiate decoder 'OMX.SEC.M4V.Decoder'.
12-03 08:05:04.646 E/MediaCodec(5148): Codec reported an error. (omx error 0x80001003, internalError -2147483648)

Looks like Cyanogenmod 10.2 needs some more work... Smile As Odroid has not yet released their official Android 4.3, you will have to either pester Cyanogenmod to fix their codecs or wait for the official Odroid release.
Reply
#69
(2013-11-23, 22:16)Abnormal1 Wrote: Im trying to run xbmc on my RK3188 but whenever I play a video it crashes after several minutes. This is using mediacodec however it also crashes on libStageFright.

I have uploaded my logcat with xbmc debuging enabled in the hopes that there might be something im missing. http://pastebin.com/LTXHqMMj

It is a fresh ROM install with the latest xbmc nightly. In xbmc I only enable debug and add a usb folder to videos.

Thanks
Neil

V/XBMC (1539): 18:58:47 T:1696065800 ERROR: ffmpeg[6517E908]: [dca] ERROR: block code look-up failed
V/XBMC (1539): 18:58:47 T:1696065800 ERROR: ffmpeg[6517E908]: [dca] error decoding block
V/XBMC (1539): 18:58:47 T:1696065800 ERROR: CDVDPlayerAudio:Big GrinecodeFrame - Decode Error. Skipping audio packet (-1094995529)
V/XBMC (1539): 18:58:47 T:1696065800 DEBUG: CDVDPlayerAudio:Tonguerocess - Decode Error
V/XBMC (1539): 18:58:47 T:1691615504 WARNING: CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available
F/libc ( 1539): @@@ ABORTING: LIBC: HEAP MEMORY CORRUPTION IN dlfree

Not a mediacodec problem, some audio issue. Try a more recent nightly.
Reply
#70
Hello:

XBMC crashes when play interlaced h264 & mpeg2 video on nexus 7 2013 Cyanogenmod 11
vlc play fine.

12-04 04:35:55.507 E/OMX-VDEC-1080P( 9621): Insufficient sized buffer given for playback, expected 2514944, got 2506752
12-04 04:35:55.507 E/OMXNodeInstance( 9621): OMX_UseBuffer failed with error -2147479547 (0x80001005)
12-04 04:35:55.507 E/ACodec (22699): registering GraphicBuffer 0 with OMX IL component failed: -2147483648
12-04 04:35:55.507 E/ACodec (22699): Failed to allocate output port buffers after port reconfiguration (error 0x80000000)
12-04 04:35:55.507 E/MediaCodec(22699): Codec reported an error. (omx error 0x80001001, internalError -2147483648)

catlog:
http://pastebin.ca/2491249
Reply
#71
@davilla
Thanks for taking the time to look at the log.

I have done some more testing and here are the logs.

I have installed the latest xbmc nightly 3rd December and I tried to play a 1080p mkv but it crashed. http://pastebin.com/5t1VVkKe

I then tried the same mkv but with audio and subtitles removed. This also crashed in the same way at the same time. http://pastebin.com/wiVbhC4m

Lastly I muxed the same video into an MP4 and film managed to make it to almost 20mins which is the longest I have ever managed on this RK3188 device before it also crashed. http://pastebin.com/cbrF714i

I also decided to include the log file for when I first run the latest nightly as it crashed at first run. The log is only partial as I did not save it correctly but maybe it will be useful. http://pastebin.com/M2gppKE6

Thanks
Reply
#72
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 ?
Reply
#73
Does MX Player use mediacodec?
If it does is there a particular mode I have to enable to use mediacodec instead of libstage?
Reply
#74
(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?

not a clue, it's source code is private.
Reply
#75
@davilla

Thank you for the work.

So I will wait what comes.

regards
Reply
  • 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 12

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