![]() |
How did you do that? (accessing the hardware H265/HVEC-Decoder on Raspberry Pi 4) - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +---- Forum: VideoPlayer Development (https://forum.kodi.tv/forumdisplay.php?fid=240) +---- Thread: How did you do that? (accessing the hardware H265/HVEC-Decoder on Raspberry Pi 4) (/showthread.php?tid=345112) |
How did you do that? (accessing the hardware H265/HVEC-Decoder on Raspberry Pi 4) - KoStein - 2019-07-02 To my knowledge in the Raspberry Pi version of Kodi Leia 18.3 (installed on top of LibreELEC Leia 9.2 ALPHA1) the Pi's (RPi 4) hardware h265-video-decoder is utilized. I would also like to use the Pi's hardware h265-video-decoder for my own C++ project. Since at this point there is no official information/documentation available on how to access this decoder, I try to find out how it's done in Kodi. Unfortunately I was unable to locate code responsible for accessing the mentioned decoder by studying "https://github.com/xbmc/xbmc". May someone please guide me to the right place to take a closer look on how the hardware h265-decoder of the Raspberry Pi 4 has been accessed. Hope it's not too much to ask for?! Thanks! RE: How did you do that? (accessing the hardware H265/HVEC-Decoder on Raspberry Pi 4) - Milhouse - 2019-07-02 (2019-07-02, 23:15)KoStein Wrote: I try to find out how it's done in Kodi. LibreELEC 9.2 for RPi uses a RPi vendor version of Kodi: https://github.com/popcornmix/xbmc/tree/newclock5_18.3-Leia This vendor version of Kodi adds a number of RPi specific ffmpeg patches: https://github.com/popcornmix/xbmc/tree/newclock5_18.3-Leia/tools/depends/target/ffmpeg The pfcd_hevc_optimisations patch implements the RPi2/3 HEVC support. For RPi4 HEVC hardware support you want the pfcd_hevc_optimisations patch from this RPi4 branch: https://github.com/popcornmix/xbmc/tree/leia_pi4/tools/depends/target/ffmpeg You can also look at the LibreELEC repository to see the changes that were necessary to support Kodi 18.3 on RPi4. Bear in mind that as your own C++ project is not likely to be Kodi related if you need more technical help you might be better off opening an "RPi4 HEVC hardware decode" thread on the Raspberry Pi forum (assuming there isn't one already). |