PART 1: CEDRUS
VLC didn't work
VLC didn't work
Status (out of date):
This worked:
http://linux-sunxi.org/Cedrus
NOTE: I began with the stock bananapi image:
Lubuntu_1404_For_BananaPi_v3_1_1.img
NOTE: I began with the stock bananapi image:
Lubuntu_1404_For_BananaPi_v3_1_1.img
Regarding modprobe:
to find the module (name changes depending on hardware):
find /lib/modules | grep cedar
check to see if the dev exists now:
ls /dev/cedar_dev
To ensure modprobe runs at startup
add modprobe sunxi_cedar_mod to /etc/modules
Using:
* Could only get mpv to work (mplayer seems to be missing vdpau support?)*
Also might need to do this manually:
sudo modprobe sunxi_cedar_mod
chmod 666 /dev/cedar_dev
chmod 666 /dev/disp
Add these to /etc/bash.bashrc
Add these to /etc/bash.bashrc
export DISPLAY=:0
export VDPAU_DRIVER=sunxi
MPV:
Finally, this:
Finally, this:
mpv --vo=vdpau --hwdec=vdpau --hwdec-codecs=all --fs --loop=inf melina.mp4
mpv --vo=vdpau --hwdec=vdpau --hwdec-codecs=all --fs --loop=inf ./*
mpv --vo=vdpau --hwdec=vdpau --hwdec-codecs=all --fs --loop=inf ./*
To get it to play automatically at lightDm startup:
Edit: /etc/lightdm/lightdm.conf
Add: session-setup-script =/home/pi/Desktop/playVideo.sh
Related:
http://www.bananapi.com/index.php/forum/beginners/31-how-to-enable-banana-pi-hw-decoding-using-ffmpge
Related:
http://www.bananapi.com/index.php/forum/beginners/31-how-to-enable-banana-pi-hw-decoding-using-ffmpge
PART 2: FBTURBO
Above lets us playback videos but we can also accelerate other stuff (like X), do this:
http://wiki.lemaker.org/BananaPro/Pi:GPU