Difference between revisions of "Bananapi mythtv"
From LinuxMCE
(concept info) |
|||
Line 106: | Line 106: | ||
sudo chmod 666 /dev/ump /dev/mali /dev/disp /dev/g2d /dev/fb* /dev/cedar_dev | sudo chmod 666 /dev/ump /dev/mali /dev/disp /dev/g2d /dev/fb* /dev/cedar_dev | ||
mythfrontend | mythfrontend | ||
+ | |||
+ | |||
+ | 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. |
Latest revision as of 09:16, 30 September 2014
Using Raspbian_For_BananaPi_v3.1 http://www.lemaker.org/resources/9-81/raspbian_for_bananapi.html
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 \ freeglut3-dev
apt-get purge libegl1-mesa
cd $HOME git clone https://github.com/robclark/libdri2.git git clone https://github.com/linux-sunxi/libump.git git clone https://github.com/linux-sunxi/sunxi-mali.git git clone https://github.com/ssvb/xf86-video-fbturbo.git
(I actualy have git clone -b 0.4.0 https://github.com/ssvb/xf86-video-fbturbo.git currently but I doubt that makes a difference )
ran: dpkg-reconfigure locales and selected the locale that was failing when running autogen in the next step
cd $HOME/libdri2 ./autogen.sh --prefix=/usr sudo make install
cd $HOME/libump autoreconf -vi ./configure --prefix=/usr make 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 make 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" EndSection ------------------
cd $HOME git clone https://github.com/linux-sunxi/libvdpau-sunxi.git cd $HOME/libvdpau-sunxi make 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 wget http://babilejo.org/linuxmce/sample.mkv 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://github.com/MythTV/mythtv.git cd $HOME/mythtv/mythtv ./configure make -j 2 make install
set vdpau normal in playback profiles set the audio output
#!/bin/sh 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 mythfrontend
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.