2016-04-06

Since mplayer doesn’t support accelerated video playback on Raspberry Pi, we have to use omxplayer. This HowTo describes how you can make omxplayer work for MMS on a Raspberry Pi, since MMS won’t handle the omxplayer very well. Actually MMS wasn’t designed to use Mplayer (at least in my constellation). But luckily it’s not that hard to make it work, although I didn’t tested it very thoroughly yet.

Basically it needs three steps to make it work:

Create a omxplayer launch script

Reflect this change in the /etc/mms/MplayerConfig file

Create a key-config file, so you can control omxplayer from within MMS

Read the details below:

HowTo

Omxplayer Launch Script

Create a omxplayer launch script. E.g. /usr/local/bin/mms-omxplayer.sh and populate it with this content:

Adjust MplayerConfig

Now tell MMS in /etc/mms/MplayerConifig to use this newly created launch script. Make the following parameters look like this:

The Key-Config file

If you omit this last step, you won’t be able to control the omxplayer. I’ve mapped the keys more or less the same way, like you would get, if you invoke $ omxplayer -k on the command line.

Create the following file: /home/pi/.mms/omxplayer-keys.conf with this content:

Adjust the keys to your needs. If you are looking for mapping media-keys from your keyboard, than you have to google it up. It’s possible, but you have to use hex-codes, which I can not provide here, since it depends on the type of keyboard you have.

Show more