2017-08-20, 21:08
Hello!
I wrote a daemon that automatically switches framerate according to video that's playing. It works on newer AMLogic kernels (starting from May this year, to be precise), they introduced a new mechanism using kernel uevents for afr. Of course, this works only for video playback using hw decoders built into the kernel.
Now when playing some old movies in KODI I noticed there's no framerate switch. A deeper inspection revealed that KODI uses software decoder for old 576p videos encoded with MPEG4 (same videos encoded with H.264 use hw decoder).
So my question is, is there a way to always force hardware video decoding in KODI? I was told there's such a option in SPMC ("accelerate MPEG2/MPEG4 -> HD and up") but I can't find anything similar in KODI. Maybe that's possible via some Python backdoor?
I wrote a daemon that automatically switches framerate according to video that's playing. It works on newer AMLogic kernels (starting from May this year, to be precise), they introduced a new mechanism using kernel uevents for afr. Of course, this works only for video playback using hw decoders built into the kernel.
Now when playing some old movies in KODI I noticed there's no framerate switch. A deeper inspection revealed that KODI uses software decoder for old 576p videos encoded with MPEG4 (same videos encoded with H.264 use hw decoder).
So my question is, is there a way to always force hardware video decoding in KODI? I was told there's such a option in SPMC ("accelerate MPEG2/MPEG4 -> HD and up") but I can't find anything similar in KODI. Maybe that's possible via some Python backdoor?