Kodi Community Forum

Full Version: [android kodi 17] How to force hardware video decoder for MPEG4?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
Looking for an answer to this too Sad