Git Product home page Git Product logo

rpi-vidlooper-customised's Introduction

rpi-vidlooper

A video looper for the Raspberry Pi, controlled by GPIO pins. Designed to run an unattended video display, where users can select the active video by switch.

MIT licensed.

Features

  • Play videos using OMXplayer, a hardware- assisted video player for smooth playback.
  • Switch between 2 or more videos using hardware switches wired to the Raspberry Pi's GPIO pins.
  • Optionally, indicate the active video by LED. This can be used with arcade-style switches which have built-in LEDs, or separate ones.
  • Callback-based, rather than polling-based. This means that button presses should always be acted upon.
  • Thread locking, to avoid issues when buttons are pressed rapidly and the video hasn't finished loading yet.

Usage

I've published a two part tutorial on my blog:

  • In part 1, I cover the hardware parts list and build instructions, including a 3D-printed case
  • In part 2, I describe this rpi-vidlooper software tool and how to get it set up and configured

On the hardware side, you'll need a Raspberry PI with several switches, one for each video. Each switch should be connected to a GPIO pin, and to ground. Optionally, you can set up an indicator LED for each video, connected to a GPIO pin.

Install dependencies:

sudo apt-get update
sudo apt-get install python3-pip omxplayer fbi

Install rpi-vidlooper:

pip3 install rpi-vidlooper

This creates the vidlooper command. For usage help, see:

vidlooper --help

Troubleshooting

RuntimeError: No access to /dev/mem. Try running as root!

By default, you'll need to run sudo vidlooper, to gain access to the GPIO pins and the graphics card (GPU) for omxplayer. Generally, this is not recommended.

To avoid this, the user you want to run the vidlooper as will need to be in the gpio group. For example, for the pi user, you'd need to do this:

sudo usermod -a -G gpio pi

See further information on this issue.

No rights to /dev/vchiq

See the OMXplayer troubleshooting to fix this issue. It's also possible to avoid by running sudo vidlooper, but as above, this is not recommended.

Further reading

rpi-vidlooper-customised's People

Contributors

alubbock avatar komori94 avatar

Watchers

 avatar

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.