a hoi hoi,
I have set up Raspbian and omxplayer from source. This is working well and is doing a great job.
I want to be able to play a single video file in an endless loop on my stand at the farnbrough air show next week, but my lack of bash skills id defeating me. I hope some on can spot the error and help me out ...
while true; do
if ps ax | grep -v grep | grep $SERVICE > /dev/null
echo "runing" # sleep 1
omxplayer -o hdmi video.mp4 United\ Springs\ Master.mp4 &
This script and a few variants of it either return "Have a nice day
" or play the video once through then cycle the same message
Grateful for any pointers