Lubuntu v3.1.x - XBMC added on banana pi

share by xefil

Hi guys,

Oh, stop, not so much enthusiasm!

This image contains Lubuntu 14.04 (v3 Lemaker) with a working XBMC, but it is not perfect. I share it to let other people to look in and contribute for better versions. Here what added on the original Lubuntu_v3 image:

1 OpenSSH server 2 recompiled kernel with additional devices into kernel and parameters needed by sunxi libraries 3 sunxi libraries and software: a) UMP b) sunxi-vdpau c) libhybris d) XBMC e) VLC f) other minor stuff

The problems on XBMC are the following:

  • internal player do not have hardware acceleration, VLC and mplayer does
  • external players don’t allow user interaction (play, pause) [expect VLC using local socket and keymap binding scripts, but slow in reaction].
  • external player VLC CAN gain focus but is not always stable, sometimes the decoding is not good. Subtitles and onscreen msgs not supported, it crashes!
  • external player MPLAYER CAN NOT gain focus. Here HD video are played well, almost. subtitles supported.
  • quit XBMC, sometimes it works, sometimes not; the desktop (lightdm) does not always refresh the desktop on XBMC exit. The result is a freezed XBMC effect, even if the xbmc.bin process is not running anymore

I’ve solved these with a workaround. I don’t like it very much but it works almost. Here how: When a MKV is choosen from XBMC to be played, an external script is called. XBMC consider this script as external player, even if it isn’t. This script closes XBMC (clear or forced), writes the path of the video in a file and restarts lightdm interface. This cause the interface to reload and starts automatically another script at login. This new script looks for the movie to play. If the file contains the movie to play, it starts the movie, first with mplayer, in case of fails, with vlc. Using the players in this way (not within XBMC), user interaction (play/pause/fw/…) are working as expected: mplayer natively, vlc using python bindings, enabled. After ending the video, the file containing the video-path to play is deleted and xbmc starts again. If bananapi reboots/starts-up, the same script is executed. BTW there is no file/movie to play, so it execute XBMC immediatly at login.

Both players (VLC and mplayer) are configured to redirect the audio to HDMI output in passthrough mode. So we can enjoy our Digital Dolby or DTS tracks.

Well, I know, it’s not a good solution at all, but in waiting for a more stable environment, in this way I can sit on my sofa and enjoy my movies.

Here the image: http://music.xefil.com/bananapi/Lubuntu_1404_v3.1_XBMC.img.zip

The image is for a 16GB SD card. The card contains some Videos for testing pruposes. I’ve started using a 64GB SD card, then, after creating an iso with Win32DiskImager, I’ve shrinked it to fit a 16GB SD. Restore tested and working.

Hope you enjoy :wink:

Cheers,

Simon

link : http://www.lemaker.org/thread-2037-1-1.html

1 Like