Freeplaytech Forum
OMX Player for Movies - Printable Version

+- Freeplaytech Forum (https://forum.freeplaytech.com)
+-- Forum: Freeplay Zero / Freeplay CM3 / Game Pie Advance (https://forum.freeplaytech.com/forumdisplay.php?fid=24)
+--- Forum: Freeplay Zero/CM3 (AKA GPA) Software (https://forum.freeplaytech.com/forumdisplay.php?fid=26)
+--- Thread: OMX Player for Movies (/showthread.php?tid=5057)



OMX Player for Movies - Nic Lobo - 11-16-2019

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:
   


RE: OMX Player for Movies - Flavor - 11-17-2019

Oh, awesome! I'm very glad you posted this info here. Thank you very much for sharing!