Freeplaytech Forum

Full Version: OMX Player for Movies
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all  Smile (my first post here)

After not being successfull getting Kodi working I've decided to try to use the already built in omxplayer.
I'm really happy that it worked!

To have controls you have to install joj2key first (apt install joy2key)
This is how my es_systems.cfg entry looks like

Code:
 <system>
   <name>movies</name>
   <fullname>Movies</fullname>
   <path>/home/pi/RetroPie/roms/movies</path>
   <extension>.avi .mp4</extension>
   <command>joy2key -terminal -thresh 32767 -32767 16383 -16383 -axis d s w a -buttons + z z - ' ' q & omxplayer %ROM% --key-config=/home/pi/omxkeys.txt ; killall joy2key </command>
   <platform>movies</platform>
   <theme>movies</theme>
 </system>

As omxplayer did not recognize left-right-up-down properly I had to remap the controls.
omxkeys.txt

Code:
PAUSE:hex 0X20 #SPACE key
EXIT:q
SEEK_FORWARD_LARGE:w
SEEK_BACK_LARGE:a
SEEK_FORWARD_SMALL:s
SEEK_BACK_SMALL:d
DECREASE_VOLUME:-
INCREASE_VOLUME:+

Movies as a System:
[attachment=1160]
Oh, awesome! I'm very glad you posted this info here. Thank you very much for sharing!