Coder Social home page Coder Social logo

omxd's Introduction

omxd(1) --  daemon to maintain a playlist and play it via omxplayer
===================================================================

## SYNOPSIS

 service omxd start|stop|restart
 omxd [-d]

 echo <command> [abs-path] > /var/run/omxctl
 omxd <command> [rel-path]

## DESCRIPTION

The omxd daemon plays your playlist even if you've disconnected from your
Raspberry Pi, to allow the easy implementation of various media centre apps.
After install, omxd is started automatically at boot.

## OPTIONS

 -h	Print this help text
 -d	Start daemon with debug logging enabled
 -n	No fork, run in foreground, log to stderr

## COMMANDS

omxd listens for commands through the /var/run/omxctl FIFO,
please write one command at a time into it, for example:

echo A /home/foo/bar.mp3 > /var/run/omxctl

Playlist commands: Files shall be absolute paths or URLs playable by omxplayer.

 i file	insert to playlist before current item
 a file	add to playlist after current item
 A file	append to end of playlist
 I file	interrupt playlist, play file on default output, then continue playlist
 H file	interrupt playlist, play file on HDMI, then continue playlist
 J file	interrupt playlist, play file on Jack, then continue playlist
 L file	pLay file on default after current item, then continue playlist
 .	replay current item
 h	change default output to HDMI
 j	change default output to Jack
 n	next
 N	previous
 g num	go to nth track, counted from zero
 d	next directory
 D	previous directory
 x	delete current item from playlist, play next
 x num	delete nth item from playlist, counted from zero
 X	delete entire playlist, terminate playback
 l	looping playback (default)
 e	stop at End of playlist
 u	unsorted playback (shuffle)

Other commands control the running omxplayer instance.

 f	forward 30s
 r	rewind  30s
 F	forward 600s
 R	rewind  600s
 p	play/pause
 P	pause playlist, stop omxplayer
 k	next audio stream
 o	next chapter
 m	next subtitle stream
 s	toggle subtitles
 -	volume down
 +	volume up

Client commands:

 S	show what's playing now

Pass additional omxplayer options:

 O opts	add omxplayer Options, valid from now on, restart player
 O	clear additional omxplayer Options, restart player

## CLIENT MODE

You can call omxd with the above commands as arguments, it writes them
into /var/run/omxctl, but translates relative paths into absolute ones
and performs commands recursively if you specify a directory as the file.

## FILES

When you start 'omxd -d' as an unprivileged user the files below
will be created in the current directory instead of the locations below,
to allow easier testing.

     /var/run/omxctl	FIFO to write commands into
     /var/local/omxplay	playlist file, actual item indicated by >
     /var/log/omxlog	log file
     /var/log/omxstat	status log file
     /var/log/omxplayer.log.<pid>
     /etc/omxd.conf	defines user to run omxplayer: user=foo
     /etc/init.d/omxd	init script

omxd's People

Contributors

priiduonu avatar subogero 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.