I am trying to get frontend-term/omxplayer-console working on a raspberry pi. Specifically I am referring to the way I am supposed to be able to press keyboard characters and it translates those into commands which it then sends to omxplayer via a fifo connection.
For example, I press the space bar and the command ‘pause’ is send to the fifo channel. The omxplayer proc is then supposed to see the ‘pause’ command and respond appropriatley. It used to work, but I seem to be having problems.
I think its this code in omxplayer-console where it fails:
155: open FIFO, '>', $mplayer_fifo or die "can't open fifo `$mplayer_fifo': $!";
156: print FIFO "$_[0]n";
157: close FIFO or die "can't close fifo `$mplayer_fifo': $!";
(line numbers added) When I don’t have proper permission to the fifo file I get:
can't open fifo `/tmp/omxplayer-console.omxplayer.fifo': Permission denied at omxplayer-console/omxplayer-console line 155, <> line 17.
When I do have permissions, all seems fine excpet that the commands don’t get transmitted through.
The main command to make it all work involves piping from one to another:
sudo omxplayer-console/frontend-term | sudo omxplayer-console/omxplayer-console /mnt/m/Movies
omxplayer-console is a script that controls the FIFO and is supposed to distribute the messages to the omxplayer proc. I messed around one day a couple of weeks ago when it wasn’t working and it magically started working for me. (Prior to that I never had issues and used it dozens of times). I thought it was because I changed privileges on something. But again I am having the same issues and I cannot figure out what I did.
Since each part is run as sudo I should have full access to any intermediate files, I thought. Or should I?
Any ideas on what part I might be missing?