Coder Social home page Coder Social logo

sabjorn / omxplaylist Goto Github PK

View Code? Open in Web Editor NEW
8.0 4.0 2.0 8 KB

a python script for continuously playing video files (playlists) with OMXPlayer

License: MIT License

Python 69.23% Shell 30.77%
raspberrypi python installation-art raspberry-pi video-files omxplayer playlist

omxplaylist's Introduction

omxPlaylist

About

This project is designed to provide a mechanism for playing groups of video files (a directory of files) in sequence (a playlist) using Python and OMXPlayer. It is meant to be used on a Raspberry PI running Debian Linux.

Also provided is the ability to use systemd to auto-boot the playlist and install/uninstall scripts to make the setup easy.

A secondary intention of this project is to provide a simple example of how to setup a Raspberry PI for use as a simple service provider (a video player). The files contained in this repo should be easy enough to modify in order to create any other type of service (e.g. DHCP server, MongoDB, APACHE web server).

Usage

This project used systemd to start omxPlaylist.py at startup. However, if the install script is not used, omxPlaylist.py can be run directly with:

python3 omxPlaylist.py [video_dir]

Install

To install, run:

chmod u+x install.sh
sudo ./install.sh

Uninstall

To uninstall, run:

chmod u+x install.sh
sudo ./uninstall.sh

Importantly, the omxPlaylist.service (systemd service which runs the script at boot) is hardcoded to use the /media/omxPlaylist directory as the source for video files. Videos can be copied or symlinked to this directory to play. Alternatively, systemd/omxPlaylist.service can be modified, replacing:

/media/omxPlaylist

with whichever directory you wish to have your videos. Then, re-run the install.sh script.

Note: For both install.sh and uninstall.sh, the chmod command is only required once.

omxplaylist's People

Contributors

sabjorn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

wenjun001 wmodes

omxplaylist's Issues

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.