![]() |
Support Thread for MediaCodec - Printable Version Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Android (https://forum.kodi.tv/forumdisplay.php?fid=164) ---- Thread: Support Thread for MediaCodec (/showthread.php?tid=175626) |
RE: Support Thread for MediaCodec - Chaotnix - 2013-10-15 On MK808 video is choppy and audio gets out of sync with MediaCodec. With StageFright video is played well. http://xbmclogs.com/show.php?id=69983 In the logfile, the video is played one time with mediacodec enabled and one time with mediacodec disabled Could it be, that there is a problem with the implentation of mediacodec on rockchip devices? The ROM used is Finless 2.1 Android 4.2 RE: Support Thread for MediaCodec - Koying - 2013-10-15 Considering the number of reports, it looks like Rockchip has issues with MediCodec, indeed. @davilla I got the ReleaseOutputBuffer ExceptionOccurred, too. (on N7/T3; with yesterday's master, so w/o your additional debugging) Code: V/XBMC (10508): 14:20:15 T:1656283640 INFO: CDVDPlayerVideo - Stillframe detected, switching to forced 23.976024 fps Looks like it goes into error and cannot recover. I got a frozen frame, and funny fact is that even exiting to home kept the frozen frame instead of the background, with menus drawn over, up to the end of the vid. RE: Support Thread for MediaCodec - davilla - 2013-10-15 I'm also logging the exception so this must be some general java throw... No info. RE: Support Thread for MediaCodec - Koying - 2013-10-15 From what thread does it come from? For libstagefright, I had issues when releasing the output buffers from the rendering thread, I don't think this is thread-safe. I also had issues when the buffer was not released fast enough. RE: Support Thread for MediaCodec - davilla - 2013-10-15 All rendering items are created on the main thread, same as where it's rendered. If a buffer is not released fast enough, then decoder should just stall. RE: Support Thread for MediaCodec - Boomer79 - 2013-10-15 Which version should i use? Have a Minix X5 mini with 4.1.1 RE: Support Thread for MediaCodec - jojo2013 - 2013-10-15 I tested on nexus7 2013 with xbmc nightly build xbmc-20131014-4ab2c1c (libstagefright off, MediaCodec on) mpeg2 sample xbmc crashes on playback logcat: Code: 10-16 05:00:52.578 V/XBMC (23706): 05:00:52 T:2026985432 INFO: ffmpeg[78D157D8]: Input #0, mpegts, from '/storage/emulated/0/Movies/Slicies MPEG2 NTSC 1080i 29.97.ts': RE: Support Thread for MediaCodec - Koying - 2013-10-16 Generally, if possible, please specify if the problem you have is reproducable with libstagefright (MediaCodec off). If neither works, it is probably a device issue. If it works with libstagefright, it is probably a MediaCodec issue indeed (xbmc or android). RE: Support Thread for MediaCodec - davilla - 2013-10-16 new nightly brewing, some slight MediaCodec changes in buffer handling. RE: Support Thread for MediaCodec - davilla - 2013-10-16 (2013-10-15, 09:34)Koying Wrote:(2013-10-15, 09:23)davilla Wrote: is Advanced Simple Profile @ Level 5 ([email protected]) good enough to test for ?IIRC, qpel/gmc is part of [email protected], but nvidia didn't implement it, so no, unless you just want to narrow the blacklisting. why not just look at the profile from hints for [email protected] and quirk it for nvidia ? Basically fault the open so that it falls back to FFMpeg. RE: Support Thread for MediaCodec - Koying - 2013-10-16 That's definitely a solution, indeed. Just that blacklisting [email protected] de facto blacklists a majority of mp4's those days, so I was hoping there was a way to blacklist only this comparatively small amount of problematic mp4's. RE: Support Thread for MediaCodec - sinuhe09 - 2013-10-16 Tried with new nightly todays version and rk3066 (Minix neo g4) with newest official rom 4.2.2 of september 1st scene: mediacodec on, libstagefright off: 1st movie crashes after a few seconds, 2nd movie no crash, but horrible stuttering. 2nd scene: mediacodec off, libstagefright on: same stuttering but no crash. Here is the logfile. Hope you find a solution. Good luck and thank you very much for your hard working. RE: Support Thread for MediaCodec - pmoreira1 - 2013-10-16 Just tried the last nightlie build and it's still stuttering a lot!HD and SD content! With libstagefright I have a similar issue but only after a while! I think it's related to buffer release!I'm not quite sure!the log states exactly the same as before! RE: Support Thread for MediaCodec - dhead - 2013-10-16 Amazing, I've tested the latest nightly and I think this is the first time that an official Android build working on my Ainol Hero 10 (Amlogic 8726-MX) without weird issues (black screen, no text on menus) after a few minutes. Of course hw acceleration for video isn't working (crashing when hw mediacodec enabled) but with software codec I can play sd content without an issue and also tvheadend client works perfect. RE: Support Thread for MediaCodec - davilla - 2013-10-17 please, lets keep this thread MediaCodec specific. |