Open christiansievers opened 2 years ago
just a heads up. this is already part of the dev branch (together with the pip install change which solves the module not found error) still needs some testing though
@christiansievers: I'm quite far regarding this change... the only issue is that running omxplayer as non root - (which is mandatory with cvlc - so better to figure out now) is that the image from the omxplayer process is just not visible... maybe you have some ideas and could try out the dev branch... I also opted to try to "harmonise" the install across different PI OSs by adding the pi user if non existent so the player can run under that user.
that's a lot of changes. I'll have a go when I find the time!
yeah sorry one thing led to another
I had a go at the idea to run it via systemd, using the branch you started. It appears the devil is in the details of the video_looper.service file. I noticed two things.
journalctl -fu video_looper
showed of module not found errors. All the info about systemd I found tells me the ExecStart command needs full paths. So just as a test I ran something simpler, and this works fine:So the error lies with
ExecStart=sudo /usr/bin/python3 -u -m Adafruit_Video_Looper.video_looper
. Probably the 2nd half of that line. The examples I found don't use python packages but single python script files. I don't know how to link to the package./usr/local/lib/python3.7/dist-packages/Adafruit_Video_Looper.video_looper
doesn't seem to work. And it may install somewhere else on another system.After=getty.target
which tells systemd to run it after the login prompt appears.Just sharing my notes with you, no rush...