This is a looper for multi-screen video installations at museums for raspberry pi. It's not the greatest code, but works reliably.
Based on
- A modified version of omxplayer-sync (unclear license)
- OSC.py (LGPL)
You will need ...
- A certain amount of raspberry pi 3 or 4 with raspbian installed
- An unmanaged switch and network cables to connect them
- Some kind of wifi/public hotspot during set up
- One test file for each raspberry (files need to be exactly the same duration)
First grab the files and run the setup:
-
Make sure your pi is connected to the internet
-
Copy the files in this repository to /home/pi/looper
-
Open a terminal and type
cd /home/pi/looper ./setup.sh
-
Plug in a usb drive with a single mp4 file, or see "update using your laptop" below
-
reboot
The setup step is a bit intricate. It will enable the ssh server, set a password and a few other things. You will only have to answer basic questions.
Please read the source code in setup.sh. It has an explanation what's going on for each step.
- Empty the usb drive, format it as ext3,ext4 or extfs
- Copy a single mp4 file on the drive
- Plug it into the raspberry you want to
Connect your laptop to the unmanaged switch and set the ip to 192.168.0.240, now you can update your files using
rsync --progress my_file_1.mp4 pi@192.168.0.114:/home/pi/Videos/main_video.mp4
rsync --progress my_file_2.mp4 pi@192.168.0.115:/home/pi/Videos/main_video.mp4
etc.