Save the script, make it executable, and then run it as follows. If ps ax | grep -v grep | grep $SERVICE > /dev/null # set here the path to the directory containing your videos # get rid of the cursor so we don't see it when videos are running Now create this script named for example “videoplayer.sh”: #!/bin/sh One problem is the current lack of playlist support in omxplayer, so this post explains how to create a bash script that will permanently loop through and play a directory of videos.įirst install omxplayer: sudo apt-get install omxplayer The Raspberry Pi comes with an awesome little video player called Omxplayer that is very capable of playing back full 1080p video perfectly when encoded correctly in H.264/AAC.
0 Comments
Leave a Reply. |