fabianmoronzirfas
3/2/2013 - 10:19 PM

found here http://www.insideelectronics.co.uk/omxplayer-series-play/

#!/bin/bash
if [ x"$1" = x"help" -o x"$1" = x"--help" -o x"$1" = x"-help" ];then
 echo "Usage: omxseries 
Download: mode

 [folder path]"
 echo "Audio Mode can be either 'hdmi' or 'local'."
 echo "Folder Path is the full path to the video files on your system."
 echo "This script will attempt to play every file in the target folder, with any file extension,"
 echo "so ensure that only valid video files are present in the target folder to avoid errors."
exit
fi
for file in $2/*
do
 omxplayer -o $1 $file
done