Skip to content

Raspberry Pi video player controlled over OSC written in Node.js using Omxplayer.

Notifications You must be signed in to change notification settings

nbrunelle/osc-node

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OSC-Node

Modified from marsvaardig's osc-node.

The modification aim to automate and ease the process of setting up a synchronized video projection.

Raspberry Pi video player controlled by over OSC written in Node.js using Omxplayer. It can be controlled with software like Chataigne or sendosc.

Added functionalities

  • Automatic file copy
  • Command to navigate back 30 seconds

Install Raspbian

Install the latest Raspbian Stretch Lite on your SD card using the Raspberry Pi Imager.

Setup SSH Access

Create an empty file in the root of the SD card named ssh (without dot or extension).

$ touch /Volumes/boot/ssh

Install OSC-Node

SSH into your Pi and excecute:

$ sudo apt-get install -y git
$ git clone https://github.com/nbrunelle/osc-node.git osc-node && cd $_
$ sh install.sh

Update file

Plug a USB with only one .mp4 on it. It will be automatically copied to /home/pi/video.mp4 and reboot.

Copy videos onto Pi using AFP

Connect from your Mac with a simple command:

open afp://pi:raspberry@192.168.xxx.xxx

Or use Finder > Connect to Server

Setup OSC software

Network

Network Cue Destionation Patches:

  • Destination: IP address of the Raspberry Pi
  • Port: 99998

OSC message

Available OSC addresses & argements:

  • /play /home/pi/videos/big_buck_bunny.mp4
  • /loop /home/pi/videos/big_buck_bunny.mp4
  • /stop
  • /prev
  • /pause (pause & resume)
  • /cmd "sudo reboot"

About

Raspberry Pi video player controlled over OSC written in Node.js using Omxplayer.

Topics

Resources

Stars

Watchers

Forks

Languages

  • Shell 55.6%
  • JavaScript 44.4%