Coder Social home page Coder Social logo

jasmin68k / raspi-mpv-controller Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 10 KB

Customizable Raspberry Pi controller for multiple MPV instances, featuring multiple rotary encoder inputs and real-time OLED display feedback

Shell 14.61% Lua 7.50% Python 77.89%

raspi-mpv-controller's Introduction

Raspberry Pi MPV Controller

Overview

This project integrates a Raspberry Pi with multiple rotary encoders and an I2C OLED display to control and monitor the state of several MPV media player instances.

It's an ideal setup for users looking to manage media playback in a convenient and interactive way.

Features

  • Rotary Encoders: Utilize rotary encoders for intuitive control of the MPV instances.
  • OLED Display: Real-time display of the current state of each MPV instance.
  • Volume and Mute Control: Currently configured to control and display the volume and mute states of the MPV instances.

Configuration and Usage

All configuration details and usage instructions are contained within the scripts themselves.

This provides a straightforward way to get the system up and running, as well as to make any necessary adjustments.

Customization

While the current setup is focused on controlling and displaying volume and mute states, the system is versatile.

Users can adapt it to control and display other MPV properties as needed.

Installation

Please refer to the individual scripts for detailed installation and configuration instructions.

Hardware Requirements

  • Raspberry Pi: A Raspberry Pi model with GPIO pins
  • Rotary Encoders: Rotary encoders with push-button functionality
  • I2C OLED Display: A compatible I2C OLED display
  • Connecting Materials: Jumper wires or your preferred method of connecting components to the Raspberry Pi GPIO pins.
  • Audio HAT or USB DAC (Strongly Recommended): The Raspberry Pi's onboard audio, if present, has significant quality limitations. An external audio solution (HAT or USB DAC) will provide a vastly superior audio experience for your media playback.

Software Requirements

  • Raspberry Pi OS: The latest version of Raspberry Pi OS (formerly known as Raspbian) is recommended.
  • MPV Media Player: The MPV media player installed on your Raspberry Pi.
  • Python 3.x: Python 3 and its package manager, pip.
  • Additional Python Packages and the Python library for your OLED display: See scripts for details.
  • Pipewire (Highly Recommended): Install Pipewire to seamlessly manage playback of multiple audio streams. The default ALSA system is not suitable for this, and ALSA/dmix software mixing can lead to audio issues like crackling during extended playback.

raspi-mpv-controller's People

Contributors

jasmin68k 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.