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.
OMXPlayer is a commandline OMX player for the Raspberry Pi. It was developed as a testbed for the XBMC/Kodi Raspberry Pi implementation and is quite handy to use standalone.
One problem is the current lack of playlist support in omxplayer. This post explains how to create a bash script that will permanently loop through and play a directory of videos.



To install the Omxplayer on Raspbian


Playing a movie with OMXPlayer
Here is a list of all the omxplayer options and a general how to use them.


HDMI cable for video output and standard 3.5 mm for audio output:


Send audio through the HDMI cable with video:


Create script for looping video playlist
Create the following script and save a name e.g. “”


Save the script and make it executable


Then run it as follows


Obviously this is fairly basic; just loops through a directory of videos and plays them one after another.