[Nottingham] Raspberry Pi and omxplayer loop
Dan Mackdermott
dan at inputlink.net
Wed Jul 4 15:18:37 UTC 2012
Hi Brian,
On 04/07/12 15:23, Brian Pickford wrote:
> 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 ...
Have you tried/considered using 'wait' or running it in the foreground?
e.g.
#!/bin/sh
while true; do
omxplayer -o hdmi video.mp4 United\ Springs\ Master.mp4 &
wait
done
or...
#!/bin/sh
while true; do
omxplayer -o hdmi video.mp4 United\ Springs\ Master.mp4 &
done
> 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
You could also use '#!/bin/sh -x' to get more output from your script.
Cheers,
Dan
More information about the Nottingham
mailing list