Links.net: Justin Hall's personal site growing & breaking down since 1994

watch overshare: the links.net story contact me

Metaphysical Plot Device

for the Pataphysical Slot Machine

What to put in an empty box in the Pataphysical Slot Machine?

pataphysical slot machine

I want to build a Metaphysical Plot Device, wherein I can provide a cabinet within a cabinet experience.

After wrestling with some concepts around 3D objects with lights in them, Howard pushed me to consider video. Since I spent the last year producing videos for The Justin Hall Show, video monitors in these cabinets makes sense.

Here's a June 2014 draft with cardboard doors:

I want to figure out how to embed a number of video monitors behind each of the dollhouse cabinets. It's an area 6.25" tall and 6" wide.

Nowadays tiny LED TVs are very small. Maybe I can buy many small TVs to put behind the cabinets. Or buy a single large TV and make many microvideos that play within a single frame (as Fabrice Florin suggested).

So on August 9 I purchased a HDMI+VGA+AV+Audio Controller board KYV-N3 V1+10.4inch A104SN03 800x600 lcd from eBay for $128.99 - shipped free from China. I was fortunate that Tim Požar was building a video box before me and gave me guidance on setup and shopping.

I plugged in the monitor to the Raspberry Pi, installed Wheezy / Raspbian 2014-06-20-wheezy-raspbian.img. I tinkered with /boot/config.txt setting hdmi_group=2 and hdmi_mode=9 to set the monitor to 800x600, 60 Hz. I edited /etc/default/keyboard, changing XKBLAYOUT="gb" to XKBLAYOUT="us" so I didn't lose my mind during terminal debuggery.

Tim Požar shared this script with me that finds files in a /video directory, chooses one at random, and uses omxplayer to spell them back:

#!/bin/bash
# Continually loop and pick a random file to play back.
for (( ; ; ))
do
   /usr/bin/find /videos -type f  | /usr/bin/shuf -n1 | /usr/bin/xargs /usr/bin/omxplayer -b
   sleep 1
done
From Požar's notes:

In this bash script the “for” line will loop indefinitely with the empty arguments. “find” gets a list of files in a directory, “shuf” picks a random file and then hands it to the omxplayer through “xargs”. The “-b” argument for omxplayer just makes sure the background (side or top bars) are blank.

I have added this to the start-up script /etc/rc.local with something like:

/usr/local/sbin/playvideos.sh > /dev/null 2>&1 &

So videos just start to play on boot. Adding the “> /dev/null 2>&1 &” will start the script and background it so you can still login into the box to control it.

More research in Seamless Looping for Raspberry Pi and omxplayer loop script.

Using Procreate on the iPad, I drew a number of basic drawings. I exported the movies of my Procreate brushstrokes. Then in Final Cut Pro X on the Mac, I edited all 8 or 9 moving images into a single moving image.

All that work got me to this point by 20 August 2014:

august 20 2014 box animated gif

As I bury the screen behind the the dollhouse cabinets, it's getting harder to see the bottom-edge of the screen through all the surrounding bass wood. The bottom edge of the screen is where important Terminal commands are send and received, so Tim suggested I install a VNC server on the Raspberry Pi so I can manipulate the device remotely! Following those instructions I was able to get the server running on the Pi in about 5 minutes, and then I installed the Java version of TightVNC RealVNC and can now tunnel into the device from my Mac.

I upload videos for the device onto the server and then wget the URL. I downloaded a test pattern and made 9 individual versions of it - stretching and centering them until the space behind the dollhouse cabinets was filled. That gives me my template for any other videos - I will build other videos in a layer above this, and then hide the test patterns for export.

Now I have the system booting up, searching a directory and playing whatever videos it finds there. I installed a wifi adapter for the Pi and now it will auto-join my wireless network so I can VNC to tweak settings or upload new videos.

Now I want to understand how I might connect my box to the power supply / bus for the Pataphysical Slot Machine. Here's an update on my box from 17 November 2014, with that question at the end:

Now that I have the electronics strapped to the back and tunneled into the box, I can begin building the rest of the frame around the screens. Bass wood!

TODO

The screen goes blank between each video, revealing the command prompt and Unix output; I'd love to hide that - TODO :-)

research

I learned about the excellent video/sculpture artist Tracey Snelling from Freddy Hahne. After some research it seems she uses DVD players as the source circa 2010. I have much less real estate to work with. She was helpful and forthcoming over email with suggestions!

I asked on Adafruit how I might use a Raspberry Pi to play multiple video streams to multiple video monitors. This lead me to Ask An Engineer, where I saw Limor and Phil again after 8 years. Hah! Excellent - they took my question from chat.

Limor and Phil in 2014:

Limor and Phil in 2006, from Archive.org: Open Source Physical Objects: Limor Fried and her x0xb0x Synthesizer - I filmed and posted this old video, a conversation with Joi Ito:

Fun to see these folks working through AdaFruit to promote open source hardware and human creativity!

justin's links by justin hall: contact