missing man omxplayer


5 posts
by elatllat » Thu Jun 28, 2012 10:11 pm
"omxplayer --help" gives CLI arg options only.
spacebar is play/pause,
can't seem to find any other options short of reading the source code ~
Posts: 895
Joined: Sat Dec 17, 2011 5:05 pm
by KenT » Fri Jun 29, 2012 5:53 am
Pi Presents - A display package for museums, visitor centres, and more
Download from http://pipresents.wordpress.com
Posts: 535
Joined: Tue Jan 24, 2012 9:30 am
Location: Hertfordshire, UK
by elatllat » Fri Jul 06, 2012 9:55 pm

Thanks a link to a link to the source.

The answer:
p #play/pause (or space)
q #quits
$'\x1b\x5b\x44' #seek -30(left)
$'\x1b\x5b\x43' #seek +30(right)
$'\x1b\x5b\x41' #seek -600(down)
$'\x1b\x5b\x42' #seek +600(up)
z #info
1 #slower
2 #faster
j #previous audio track
k #next audio track
+ #volume up
- #volume down
i #previous chapter
o #next chapter
n #previous subtitle track
m #next subtitle track
s #toggle subtitles

These can also be send via named pipe (remote control):
mkfifo /tmp/omxplayer.pipe
omxplayer -ohdmi mymedia.avi < /tmp/omxplayer.pipe
echo . > /tmp/omxplayer.pipe #(initial wait for input via the fifo)
Posts: 895
Joined: Sat Dec 17, 2011 5:05 pm
by ninjasFTW » Wed Jul 11, 2012 10:35 am
Does echoing commands to the named pipe once omxplayer is running work?

Nothing seems to happen when I try it after the initial echo to the pipe starts it
Posts: 1
Joined: Wed Jul 11, 2012 10:33 am
by psypi » Tue Jul 31, 2012 11:50 pm
I found you nedded to add the -n option to get control to work
echo -n p >tmp/cmd
also thanks for the control codes for left arrow, right arrow I can now control omxplayer from PHP
$com = 'echo -n p >/var/www/mysite/tsmuxercontrol/fifo ';
exec("$com ",$sigresults);
Posts: 3
Joined: Tue Jul 31, 2012 11:45 pm