Kodi Community Forum

Full Version: DVD SW decoding: Jarvis vs. Krypton vs. Leia
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I compared DVD SW decoding of Jarvis vs. Krypton vs. Leia on my slow BRAVIA with quad core ARM Cortex A53 (@1.1GHz) as some people (including me) are witnessing a major regression with SW decoding in Leia.


Jarvis

Playback mostly smooth, no frame drops/skips

Code:

User 20%, System 14%, IOW 0%, IRQ 0%
User 93 + Nice 1 + Sys 65 + Idle 302 + IOW 0 + IRQ 0 + SIRQ 0 = 461

  PID USER     PR  NI CPU% S  #THR     VSS     RSS PCY Name
26575 u0_a160  20   0  18% S    43 1618328K 202652K  ta org.xbmc.kodi
 1253 system   12  -8   5% S    25 135432K   6924K unk /system/bin/surfaceflinger
 1768 root     RT   0   4% D     1      0K      0K  fg MLVdo_thread


Krypton

Playback mostly smooth, no frame drops/skips, dramatic increase in CPU usage compared to Jarvis

Code:

User 70%, System 13%, IOW 0%, IRQ 0%
User 330 + Nice 0 + Sys 62 + Idle 75 + IOW 0 + IRQ 0 + SIRQ 0 = 467

  PID USER     PR  NI CPU% S  #THR     VSS     RSS PCY Name
 3949 u0_a160  20   0  66% R    51 1305732K 174656K  ta org.xbmc.kodi
 1768 root     RT   0   4% D     1      0K      0K  fg MLVdo_thread
 1253 system   12  -8   3% S    25 126840K   6568K unk /system/bin/surfaceflinger


Leia

Playback totally jerky, frames are dropped and skipped like crazy, dramatic increase in CPU usage compared to Jarvis

Code:

User 63%, System 13%, IOW 0%, IRQ 0%
User 285 + Nice 1 + Sys 61 + Idle 100 + IOW 0 + IRQ 0 + SIRQ 0 = 447

  PID USER     PR  NI CPU% S  #THR     VSS     RSS PCY Name
21973 u0_a161  20   0  68% S    50 1549192K 169972K  ta org.xbmc.kodi
 1768 root     RT   0   4% D     1      0K      0K  fg MLVdo_thread
 1253 system   12  -8   1% D    25 134940K   6604K unk /system/bin/surfaceflinger
Jarvis and Krypton seem to play the DVD at 25fps, Leia performs frame doubling (50fps) even though Weave should be enough. No clue why Krypton and Leia eat up so much more CPU.
(2018-12-18, 19:16)CiNcH Wrote: [ -> ]I compared DVD SW decoding of Jarvis vs. Krypton vs. Leia on my slow BRAVIA with quad core ARM Cortex A53 (@1.1GHz) as some people (including me) are witnessing a major regression with SW decoding in Leia.

I completely agree.

I've noticed for example I can no longer CPU Software decode and YADIF 2x deinterlace 576i mpeg2 on any ARM platform running Kodi Leia vs being able to do it previously with say LibreELEC Krypton. Android SPMC (Kodi Jarvis) is the best of the Android bunch for ARM SW decoding and deinterlacing.

Leia is definitely the worst of the Kodi releases for low powered ARM chipsets and mpeg2 SW decoding performance, it's mostly unusable.

Another example is my MINIX U9 can software decode h264 1080p Bluray, but when it comes to mpeg2 it chokes badly with Kodi Leia.
Same happens with a progressive MPEG-4 ASP sample (720x408 24p). Leia uses 3 times the CPU time and playback is totally jerky.
I know this is an Android thread but i notice same results on Windows. I miss the steps forward to improve the video quality in general to make Kodi a premium player with quality video renderer like madvr or EVR custom VR for windows. Many threads here in forum descibe issues with jerking, dvxa2, monitor switching like i have and so on. Imho the ffmpeg decoder basis should be replaced also in respect to the upcoming next video standards.
Quote:Jarvis and Krypton seem to play the DVD at 25fps, Leia performs frame doubling (50fps) even though Weave should be enough.
OK, this DVD was indeed interlaced. I now tried a progressive DVD which plays at 25fps which also jerks as hell. So it is not really the double frame rate YADIF that is causing the main issue on those slow Android devices.
I really don't know what is going wrong on your setup. As you see on github I just misused my Smartphone for doing some tests. 576i VDR stream + yadif half works nicely. Now I tried James Bond DVD IFO with 25 fps. Not a single issue. Mediacodec Surface and Mediacodec is disabled ... so totally not sure what is going wrong.
Dunno either. I am attaching a log (debug + video and audio/video timing component enabled) of a playback attempt on Leia. I played a progressive DVD (remuxed into mkv). Dunno whether this helps...

LOG
What I see is that the PTS look totally broken.

Two things:
a) Does it get better when you turn off Passthrough?
b) Does my ts file I posted run?
Quote:a) Does it get better when you turn off Passthrough?
No.
 
Quote:b) Does my ts file I posted run?
Same jerkyness with SW decoding.
Okay.