Stian Remvik Datagrafikk

Audio file and video simultaneously

If you need to play an audio file and a video file simultaneously at boot, you can do it with a hello_video program for the video and a looping script for the audio. This method will NOT make them run in sync. There are several ways of making them start at boot, but the way I made it work was by starting the hello video program first with ‘/etc/rc.local’. (I also added ‘setterm’ to hide the console behind the video):

$ sudo nano /etc/rc.local

Then add this at the bottom (replace with your own directory with the program files):

setterm -cursor off
setterm -blank force
cd /home/pi/audioVideo/
./hello_video.bin test.h264

Then started the audio file with cron:

$ sudo crontab -e

Then added this line at the bottom:

@reboot cd /home/pi/audioVideo/ && ./audioloop.sh
"BITWaves" iOS app
Raspberry Pi Notes
"Neighbours" video installation
Electronic Vintage Bit20 concert visuals
"Late into that night, and all the following nights" installation
"Bergen Leser" installation
"Cubes" animation
NRK3 identity film
"Hush!" installation
"The sound of pictures" installation
Photographs
Concert visuals Knekklectic
Hulen Bergen posters and design
Notes on programming and other technical difficulties
-----------------------------------------------------

Multi screen video with Multiscreener on Mac
Seamless looping video player on Raspberry Pi using openFrameworks