{ Berbagi, Menulis, Dan Mengajar } Ilmu… » 7. Operating System » Script omxplayer | loop run | omxplayer | video Raspbery | Rpi
Script omxplayer | loop run | omxplayer | video Raspbery | Rpi
Silahkan di copy paste.. sudah di ujicoba
—–
#!/bin/sh
# get rid of the cursor so we don’t see it when videos are running
setterm -cursor off
# set here the path to the directory containing your videos
VIDEOPATH=”/home/pi/Downloads/laguIslami/”
# you can normally leave this alone
SERVICE=”omxplayer”
# now for our infinite loop!
while true; do
if ps ax | grep -v grep | grep $SERVICE > /dev/null
then
sleep 1;
else
for entry in $VIDEOPATH/*
do
clear
#omxplayer -o local $entry > /dev/nullĀ ~> kluar sound dari Audio Onboard Rpi
omxplayer $entry > /dev/null
done
fi
done
Filed under: 7. Operating System