-
Notifications
You must be signed in to change notification settings - Fork 19
/
omxd.1
115 lines (115 loc) · 3.11 KB
/
omxd.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
.\" Generated with Ronnjs 0.3.8
.\" http://github.com/kapouer/ronnjs/
.
.TH "OMXD" "1" "April 2017" "" ""
.
.SH "NAME"
\fBomxd\fR \-\- daemon to maintain a playlist and play it via omxplayer
.
.SH "SYNOPSIS"
service omxd start|stop|restart
omxd [OPTIONS]
.
.P
echo <command> [abs\-path] > /var/run/omxctl
omxd <command> [rel\-path]
.
.SH "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\.
.
.SH "OPTIONS (or config in /etc/omxd\.conf)"
\-h Print this help text
\-\-version Print omxd version
\-d Start daemon with debug logging enabled (debug=1)
\-n No fork, run in foreground, log to stderr (fg=1)
\-g Gap mode, do not prepare next track (gap=1)
.
.SH "COMMANDS"
omxd listens for commands through the /var/run/omxctl FIFO,
please write one command at a time into it, for example:
.
.P
echo A /home/foo/bar\.mp3 > /var/run/omxctl
.
.P
Playlist commands: Files shall be absolute paths or URLs playable by omxplayer\.
.
.P
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)
.
.P
Other commands control the running omxplayer instance\.
.
.P
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
.
.P
Client commands:
.
.P
S show what\'s playing now
.
.P
Pass additional omxplayer options:
.
.P
O opts add omxplayer Options, valid from now on, restart player
O clear additional omxplayer Options, restart player
.
.SH "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\.
.
.SH "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\.
.
.IP "" 4
.
.nf
/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 configuration, see options above
/etc/init\.d/omxd init script
.
.fi
.
.IP "" 0