[short]
Does anyone have a link to an example .service file/code which would specifically play a video through cvlc via command line on boot on an rpi0 (RPi OS lite) with no desktop ? Or if someone can point me to a previous relevant post that I may have missed while searching that would be great.
Thanks for any help, my search-fu is letting me down.
[long]
After several days I've managed to get a small piece of video playing from an rpi0 on 'Raspberry Pi OS (Legacy, 32-bit) Lite' to a 2" Waveshare display with VLC through command line via ssh. (/usr/bin/cvlc -f --loop --no-video-title /home/pi/playlist.m3u) - all good.
My goal is to now get this to play as fast as possible on startup. Using Thagrol's fine document 'Running A Program At Start UP A Beginner's Guide' I've determined that I should be using a 'systemd service' to launch it but unfortunately the coding practicals I'm finding too complex. Possibly a file needs to be placed here '/etc/systemd/system/' and possibly more than one file needs to be created to crosslink to make it work. I tried several 'autostart' methods but later found out that this is for installs with a desktop environment.
Does anyone have a link to an example .service file/code which would specifically play a video through cvlc via command line on boot on an rpi0 (RPi OS lite) with no desktop ? Or if someone can point me to a previous relevant post that I may have missed while searching that would be great.
Thanks for any help, my search-fu is letting me down.
[long]
After several days I've managed to get a small piece of video playing from an rpi0 on 'Raspberry Pi OS (Legacy, 32-bit) Lite' to a 2" Waveshare display with VLC through command line via ssh. (/usr/bin/cvlc -f --loop --no-video-title /home/pi/playlist.m3u) - all good.
My goal is to now get this to play as fast as possible on startup. Using Thagrol's fine document 'Running A Program At Start UP A Beginner's Guide' I've determined that I should be using a 'systemd service' to launch it but unfortunately the coding practicals I'm finding too complex. Possibly a file needs to be placed here '/etc/systemd/system/' and possibly more than one file needs to be created to crosslink to make it work. I tried several 'autostart' methods but later found out that this is for installs with a desktop environment.
Statistics: Posted by BobaFrett — Wed Apr 24, 2024 10:27 am — Replies 0 — Views 6