VzBoT3D/VzBoT-Vz330

[SOLUTION] omxplayer is deprecated for splash screen

eikaf opened this issue · 1 comments

eikaf commented

Please use cvlc with this commands, that's only choice on debian bullseye.
Need to run commands as pi user since root is not allowed to use vlc/cvlc.

/etc/systemd/system/splash.service

[Unit]
Description=Splash screen 
DefaultDependencies=no 
After=local-fs.target 

[Service]
User=pi
ExecStart=/bin/bash -c "DISPLAY=:0 /usr/bin/cvlc -f --quiet --no-video-title --play-and-exit --mmal-display DSI-1 /home/pi/bootvideo/intro1.mp4" &
StandardInput=tty 
StandardOutput=tty 

[Install]
WantedBy=sysinit.target

/etc/rc.local

su - pi -c "sleep 2 | DISPLAY=:0 /usr/bin/cvlc -f --quiet --no-video-title --play-and-exit --mmal-display DSI-1 /home/pi/bootvideo/intro2.mp4"

ty