2022-11-21, 06:18
I'm a bit new to Python, Kodi and Raspberry, so pardon me for asking apparently simple question. I looked quite a lot to find resources/examples about it and did not find anything really, so please point me at the good direction if you know some.
The goal of my project is to play 4k, HDR video in loop on a Raspberry pi 4 automatically at startup and been able to restart the video with a button connected to GPIO.
I'v read the best way to play that kind of video is with Kodi (did not succeed to read it with VLC easily) with HEVC codec.
So, I figure there is a way to play a video file through Kodi from a python script?
How do we do that? I guess I need to use xbmc function like here https://alwinesch.github.io/group__pytho...30225e8669
But when I tried "import xbmc" in my script I get the error ModuleNotFoundError.
There must be something trivial I'm missing here.
Thanks
The goal of my project is to play 4k, HDR video in loop on a Raspberry pi 4 automatically at startup and been able to restart the video with a button connected to GPIO.
I'v read the best way to play that kind of video is with Kodi (did not succeed to read it with VLC easily) with HEVC codec.
So, I figure there is a way to play a video file through Kodi from a python script?
How do we do that? I guess I need to use xbmc function like here https://alwinesch.github.io/group__pytho...30225e8669
But when I tried "import xbmc" in my script I get the error ModuleNotFoundError.
There must be something trivial I'm missing here.
Thanks