Bananapi mythtv

From LinuxMCE
Jump to: navigation, search

Using Raspbian_For_BananaPi_v3.1

After installing the image and booting one time I had to use a partition mananger to increase the root partition otherwise all the required packages will not fit.

 apt-get install \
 make gcc git automake autoconf pkg-config libtool dh-autoreconf \
 xserver-xorg-dev \
 libgl1-mesa-dev \
 libgles2-mesa-dev \
 libgles1-mesa-dev \
 xutils-dev \
 x11proto-xf86dri-dev \
 mesa-utils \
 mplayer2 \
 glew-utils \
 libglew-dev \
 libvdpau-dev \
 apt-get purge libegl1-mesa

 cd $HOME
 git clone
 git clone
 git clone
 git clone
 (I actualy have git clone -b 0.4.0 currently but I doubt that makes a difference )
 dpkg-reconfigure locales
 and selected the locale that was failing when running autogen in the next step
 cd $HOME/libdri2
 ./ --prefix=/usr
 sudo make install
 cd $HOME/libump
 autoreconf -vi
 ./configure --prefix=/usr
 sudo make install
 cd $HOME/sunxi-mali
 git submodule init
 git submodule update
 make config ABI=armhf VERSION=r3p0
 sudo make install
 cd $HOME/xf86-video-fbturbo
 autoreconf -vi
 ./configure --prefix=/usr
 sudo make install
 mkdir -p /etc/X11/xorg.conf.d/
 vi /etc/X11/xorg.conf.d/99-fbturbo.conf
 Section "Device"
         Identifier      "Allwinner A10/A13 FBDEV"
         Driver          "fbturbo"
         Option          "fbdev" "/dev/fb0"
         Option          "SwapbuffersWait" "true"
         Option          "AccelMethod" "G2D"
 cd $HOME
 git clone
 cd $HOME/libvdpau-sunxi
 sudo make install
 modprobe sunxi_cedar_mod
 to run as non root user:
 chmod 666 /dev/ump /dev/mali /dev/disp /dev/g2d /dev/fb* /dev/cedar_dev
 export VDPAU_DRIVER=sunxi
 mplayer -fs -vo vdpau -vc ffmpeg12vdpau,ffh264vdpau sample.mkv
 apt-get update
 apt-get dist-upgrade
 sudo apt-get install qt4-qmake libfreetype6-dev libmp3lame-dev libqt4-dev libxxf86vm-dev libxinerama-dev libasound2-dev pkg-config uuid-dev libtag1-dev libgexiv2-dev
 cd $HOME
 git clone git://
 cd $HOME/mythtv/mythtv
 make -j 2
 make install
 set vdpau normal in playback profiles
 set the audio output
 sudo modprobe sunxi_cedar_mod
 export VDPAU_DRIVER=sunxi
 export VDPAU_OSD=1
 sudo chmod 666 /dev/ump /dev/mali /dev/disp /dev/g2d /dev/fb* /dev/cedar_dev

Xine does not work yet:

 sudo apt-get install xine-console  xfonts-base
 xine --no-splash --no-logo --no-gui -f -V vdpau sample.mkv
 bananapi@lemaker ~ $ xine --no-splash --no-logo --no-gui -f -V vdpau sample.mkv
 This is xine (X11 gui) - a free video player v0.99.7.
 (c) 2000-2010 The xine Team.
 vo_vdpau: vdpau API version : 1
 vo_vdpau: vdpau implementation description : sunxi VDPAU Driver
 vo_vdpau: VideoSurface doesn't support chroma type 4:2:2, sorry.