Posted on 4 Comments

OMXPlayer Series Play

This is a little script to make OMXPlayer on the Raspberry Pi cycle through every file in a specified folder, useful for playing sequential movies or series of episodes.

 

#!/bin/bash
if [ x"$1" = x"help" -o x"$1" = x"--help" -o x"$1" = x"-help" ];then
 echo "Usage: omxseries  [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

Example:
[root@raspbian ~]# omxseries hdmi /media/stuff/videos
would play everything in /media/stuff/videos and send the audio over the HDMI port.

Download the script to your Pi with this code:

wget -O /usr/bin/playseries http://www.experimental-engineering.co.uk/wp-content/plugins/download-monitor/download.php?id=1 && chmod +x /usr/bin/playseries
Posted on Leave a comment

ShowWX+ Pico Projector First Light

Projection
Projection

Above is the image projected from the Pi, on the default login screen. Distance from the projector is approx 10 feet.

Projector
Projector

State of the art projector mount, fashioned from several cable ties. HDMI cable is plugged into the right hand side of the projector.

Unfortunately the projector cannot handle audio on the HDMI connector, the 3.5mm headphone jack on the projector is for splitting audio out of the iDevice connection only, and does not make the HDMI audio stream available.

 

 

 

Pi
Pi

The Raspberry Pi, hosting a USB keyboard, & USB powered speakers. Running the standard Debian release, on a 16GB card, with omxplayer installed for media functions.

Posted on Leave a comment

The Perfect Companion To The Raspberry Pi

As I’m building a portable “media center” with my first Pi, I was looking for a suitable screen. I remembered the existence of these:

ShowWX+ HDMI Pico Projector
ShowWX+ HDMI Pico Projector

A laser pico projector combined with a Pi, in a small enough package would make a fantastic
little portable media player. So £220 was shelled out 🙂

Along with the case for my Pi coming from Mod My Pi, I am aiming for a device as small as possible. At some point I will fit the Pi into the same package as the projector, if it can be cannibalised in such a way 🙂

Check back for an update with running images of the projector, powered from the Pi’s HDMI output.

I will also be doing the standard teardown of the projector when time allows 🙂

Bootnote:
Micro HDMI Connections: These are CRAP. They don’t stand up to any form of day-to-day use, and the projector began displaying a blue screen with “INVALID VIDEO MODE” as soon as anything was plugged into the Micro HDMI port. A quick attack with a jeweller’s screwdriver fixed the port, as it had become loose.