Skip to content
gallegux edited this page Mar 19, 2018 · 1 revision

kodillo is a graphical interface for omxplayer with the sole purpose of watching videos in RaspberryPi. XBMC and KODI consume too many resources simply to launch a video with the remote control (in my Raspberry 1 at least yes), and using omxplayer by command line is very tedious. The graphical interface is light, requires few resources and is fast. The support of pluggins has not been contemplated. You can control it with the TV's remote control, of course the RaspberryPi and the TV are connected by HDMI.

It has been developed with a Panasonic TH-PX80 TV and its respective original remote control (https://www.panaservicio.es/images/products/n2qayb000239_mando_a_distancia_original_panasonic.jpg).

The programming language used is Python 2.7. It does not require installation. The files must be copied to a directory. I have used / home / pi / kodillo. The cec-utils package must be previously installed.

To execute you must execute runbg. Then the program screen is loaded. Then you must press the OK button. Then the predefined libraries are displayed. To exit press EXIT on the remote control, and then you return to the command interface, but the program is still active and to open the program again press the RED button.

The interface is very simple to use, basically it is to move with the buttons UP and DOWN and OK. To RETURN to the previous directory, press RETURN. Libraries are simply directories. Color code is used for the GUI. White: directory name Blue: directory Green: video file Orange: image Red: script (I use scripts to mount and unmount an external hard drive)

File names are renamed to show, but not in filesystem. When the cursor (dark gray background) is on a file or a directory, if you press the RED button it is to remove it, but first ask. With the GREEN button it is accepted and with the BLUE it is canceled.

If the cursor is on an image and press OK, it is displayed. If the YELLOW button is pressed, all the images in the carousel directory are displayed. On the carousel you can move forward and backward with the LEFT and RIGHT buttons. To exit press RETURN or EXIT. If the cursor is over a directory and the YELLOW button is pressed, all the images of the directory selected in carousel will be displayed. While viewing an image, it can be deleted by pressing the RED button.

If the cursor is on a video and OK is pressed, omxplayer is invoked to play it. In playback of the video you can press the following buttons RIGHT: advance 30 seconds LEFT: back 30 seconds ABOVE: advance 10 minutes DOWN: go back 10 minutes OK: pause / stop RETURN or EXIT: exit.

There are two files that are executed when entering or leaving the graphical interface.

  • modo_sleep_off.sh is executed when you enter
  • modo_sleep_on.sh is executed when output The utility of this is to stop services or programs that can remove resources from omxplayer so that the playback is smooth. In the same way they can be executed again when omxplayer is not going to be used (EXIT).
Clone this wiki locally