Giter VIP home page Giter VIP logo

osc-node's Introduction

OSC-Node

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

QLab screenshot with OSC commands

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/marsvaardig/osc-node.git osc-node && cd $_
$ sh install.sh

Copy videos onto Pi using AFP

Connect from your Mac with a simple command:

open afp://pi:[email protected]

Or use Finder > Connect to Server

Setup QLab

Network

Network Cue Destionation Patches:

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

OSC message

Available OSC addresses & argements:

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

osc-node's People

Contributors

dependabot[bot] avatar tomjanssens avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

osc-node's Issues

Omxplayer multiples play bug. Over wlan or lan

Hi,
I use your script for multiples raspberry pi3b+ playing under the control of QLab 4.7.2.

It's as if it received the same command several times at the same time, perhaps through interference in the network... which it would interpret as a double or multiple command. Is there any way to prevent app.js from not multiplying the orders, at least for a second?

Thank you!!

Fabrice

OMXPlayer is deprecated

OMXPlayer is deprecated in favor of VLC player.
I've used this project in a couple shows and greatly appreciated the utility. An update to allow a build on modern hardware would be greatly appreciated.

how to run app.js

Thanks for making your project public.

I followed the install steps on my RPI4.
After running sh install.sh the PI rebooted and eventually the desktop shows.
I assume to start the player I need to npm start or something?

But I am not able to make it run.

Screen Shot 2021-06-15 at 5 43 00 PM

I did test that npm is installed with npm list and get:

[email protected] /home/pi/osc-node
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

cat /etc/os-release reports:

PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

node app.js reports:

pi@raspberrypi:~/osc-node $ node app.js
Error: bind EADDRINUSE 0.0.0.0:57121
    at node:dgram:356:20
    at processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -98,
  code: 'EADDRINUSE',
  syscall: 'bind',
  address: '0.0.0.0',
  port: 57121
}

Thanks for any tips.

several errors on install

The install.sh throws several errors while installing, and then (obviously) won't run properly.

Here's where the errors seem to start:

[email protected] install /home/pi/osc-node/node_modules/serialport
node-pre-gyp install --fallback-to-build

node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [ '/opt/nodejs/bin/node',
node-pre-gyp verb cli '/home/pi/osc-node/node_modules/serialport/node_modules/.bin/node-pre-gyp',
node-pre-gyp verb cli 'install',
node-pre-gyp verb cli '--fallback-to-build' ]
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | linux | arm
node-pre-gyp verb command install []
node-pre-gyp info check checked for "/home/pi/osc-node/node_modules/serialport/build/Release/serialport.node" (not found)
node-pre-gyp http GET https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v67-linux-arm.tar.gz
node-pre-gyp http 404 https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v67-linux-arm.tar.gz
node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v67-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v67 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v67-linux-arm.tar.gz
node-pre-gyp verb command build [ 'rebuild' ]
node-pre-gyp ERR! Tried to download(undefined): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v67-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v67 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http Connection closed while downloading tarball file
node-pre-gyp verb command build [ 'rebuild' ]

I'm trying to install on a pi zero - could that be the problem?

Edit 3/19/19 - picked up a pi 3b+ and it works fine there. Would still like to be able to run it on a zero if possible - great footprint to put in props!

'module_not_found'

I have an Error: cannot find module 'osc'
If i check:
node /osc-node/app.js

Any idea where to look to fix this?
Can it be that i'm not the standard user "pi"?

crashes Pi when running sh install.sh

Hello,

When running this the install it crashes my Pi3B+,

When it reboot's the display is black, ssh still works but im unable to see the display.

only way to get display back is to format SD card and start again.

Raspberry Pi 4 dual screen

Hoi Ik was benieuwd of je aleens geprobeerd had om dit te gebruiken op een Pi 4.

en dan 2 verschillende projectoren te bedienen met lab.

dit ben ik aan het proberen voor elkaar te krijgen maar helaas zonder succes.
ik kan niet ontdekken waar de displays aangesproken worden.
door middel van terminal kan ik wel beide schermen een eigen filmpje laten vertonen

ik hoor graag of je mij een richting in kunt sturen

Groetjes

No /play or /loop on "Ctrl" for iPad

Hey, first of all thanks for the code !

I changed the Port to 56000 to match the "ctrl" app for iPad. Qlab is just working fine.
Via "ctrl" from ON LX (https://onlx.ltd/ctrl-for-ipad) I can /pause /stop and /cmd but when I try to start a video with /loop or /play the video wich was playing back (startet on Qlab) stops but the new video isn't starting.

do you have any suggestions where to look at, seems to be a path problem...

Thanks,
Lexi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.