2016-12-09, 15:40
Device: Sony BRAVIA 2015
SoC: MediaTek MT5890 (2x ARM Cortex A17 @ 1GHz, ARM Mali T624 MP2)
OS: Android TV 6.0.1 (Linux kernel 3.10.79)
Video: TS (H.264 [email protected] 720p50 5-6mbps / AC3)
Idle:
User: ~2% System: ~2% (~4%) (mainly consumed by top command)
Kodi 18.0-ALPHA1 (2017-04-27) (AC3 via PT)
MediaCodec Surface
User: ~16% System: ~16% (~32%)
org.xbmx.kodi ~14%
/system/bin/surfaceflinger ~7%
/system/bin/mediasurfer ~2%
MediaCodec
User: ~26% System: ~35% (~60%)
org.xbmx.kodi ~25%
/system/bin/mediasurfer ~12%
/system/bin/surfaceflinger ~7%
720p50 already suffers from occasional stuttering in non-Surface mode on the weak SoC, especially when overlaying menus. Peaks can be way higher than the above figures when some system service (e.g. system_server) kicks in sporadically. Surface mode is a must on Sony and Philips TVs!
What is the mediaserver process and why does it consume so much more CPU in non-Surface mode?
Video (AC3 via PT)
User: ~2% System: ~4% (~6%)
/system/bin/surfaceflinger ~1%
Video app seems to use Surface mode as a screencap results in a blank image.
VLC (AC3 via PT)
User: ~12% System: ~13% (~25%)
org.videolan.vlc 10%
/system/bin/surfaceflinger ~4%
/system/bin/mediasurfer ~1%
MX Player (HW video acceleration mode)
User: ~7% System: ~8% (~15%)
/system/bin/mediasurfer ~6%
/system/bin/surfaceflinger ~2%
This looks like Surface mode, as it is not possible to take screencaps of the video.
MX Player (HW+ video acceleration mode)
User: ~7% System: ~16% (~23%)
/system/bin/mediasurfer ~7%
/system/bin/surfaceflinger ~7%
Screencaps are possible, so this is most probably a non-Surface mode. This one uses way less resources compared to Kodi though.
Conclusion
Kodi does not run without problems on Sony and Philips Android TV with the low performance MediaTek SoCs, especially non-Surface mode eats up a lot of CPU time, which seems to perform way better in other media player apps.
Some videos even stutter in non-Surface mode, despite CPU usage being low, see this thread. Due to the low complexity of the provided sample video (720p25), it plays smoothly in non-Surface mode (which is a no-go for videos with higher resolution and frame rate though). Video app does not suffer from this issue, even though it also seems to be using Surface.
SoC: MediaTek MT5890 (2x ARM Cortex A17 @ 1GHz, ARM Mali T624 MP2)
OS: Android TV 6.0.1 (Linux kernel 3.10.79)
Video: TS (H.264 [email protected] 720p50 5-6mbps / AC3)
Idle:
User: ~2% System: ~2% (~4%) (mainly consumed by top command)
Kodi 18.0-ALPHA1 (2017-04-27) (AC3 via PT)
MediaCodec Surface
User: ~16% System: ~16% (~32%)
org.xbmx.kodi ~14%
/system/bin/surfaceflinger ~7%
/system/bin/mediasurfer ~2%
MediaCodec
User: ~26% System: ~35% (~60%)
org.xbmx.kodi ~25%
/system/bin/mediasurfer ~12%
/system/bin/surfaceflinger ~7%
720p50 already suffers from occasional stuttering in non-Surface mode on the weak SoC, especially when overlaying menus. Peaks can be way higher than the above figures when some system service (e.g. system_server) kicks in sporadically. Surface mode is a must on Sony and Philips TVs!
What is the mediaserver process and why does it consume so much more CPU in non-Surface mode?
Video (AC3 via PT)
User: ~2% System: ~4% (~6%)
/system/bin/surfaceflinger ~1%
Video app seems to use Surface mode as a screencap results in a blank image.
VLC (AC3 via PT)
User: ~12% System: ~13% (~25%)
org.videolan.vlc 10%
/system/bin/surfaceflinger ~4%
/system/bin/mediasurfer ~1%
MX Player (HW video acceleration mode)
User: ~7% System: ~8% (~15%)
/system/bin/mediasurfer ~6%
/system/bin/surfaceflinger ~2%
This looks like Surface mode, as it is not possible to take screencaps of the video.
MX Player (HW+ video acceleration mode)
User: ~7% System: ~16% (~23%)
/system/bin/mediasurfer ~7%
/system/bin/surfaceflinger ~7%
Screencaps are possible, so this is most probably a non-Surface mode. This one uses way less resources compared to Kodi though.
Conclusion
Kodi does not run without problems on Sony and Philips Android TV with the low performance MediaTek SoCs, especially non-Surface mode eats up a lot of CPU time, which seems to perform way better in other media player apps.
Some videos even stutter in non-Surface mode, despite CPU usage being low, see this thread. Due to the low complexity of the provided sample video (720p25), it plays smoothly in non-Surface mode (which is a no-go for videos with higher resolution and frame rate though). Video app does not suffer from this issue, even though it also seems to be using Surface.