Edited by fritz at 2015-12-6 15:52
OK, here is the corrected How-To on a Lubuntu 14.04 (I don't have other debian based images and I don't want download others):
First
you don't need mali for this!!!
install some packages:
code:
- sudo apt-get install build-essential pkg-config git libx11-dev
Then libvdpau (0.7.1)is to old on 14.04, you need newer. the simplest is to install it from packages:
code:
- wget http://ftp.de.debian.org/debian/pool/main/libv/libvdpau/libvdpau1_1.1.1-3_armhf.deb
- wget http://ftp.de.debian.org/debian/pool/main/libv/libvdpau/libvdpau-dev_1.1.1-3_armhf.deb
- wget http://ftp.de.debian.org/debian/pool/main/v/vdpauinfo/vdpauinfo_1.0-1+b1_armhf.deb
install packages with:
code:
- sudo dpkg -i libvdpau1_1.1.1-3_armhf.deb
- sudo dpkg -i libvdpau-dev_1.1.1-3_armhf.deb
- sudo dpkg -i vdpauinfo_1.0-1+b1_armhf.deb
Now compile and install libvdpau-sunxi:
code:
- git clone https://github.com/linux-sunxi/libvdpau-sunxi.git
- cd libvdpau-sunxi
- make
- make install
Set permissions for disp/ion/cedar devices:
sudo vi /etc/udev/rules.d/50-disp.rules
code:
- KERNEL=="disp", MODE="0660", GROUP="video"
sudo vi /etc/udev/rules.d/50-ion.rules
code:
- KERNEL=="ion", MODE="0660", GROUP="video"
sudo vi /etc/udev/rules.d/50-cedar.rules
code:
- KERNEL=="cedar_dev", MODE="0660", GROUP="video"
Then check if orangepi user is in the group "video"
if not add it. (on lubuntu it was not)
code:
- sudo usermod -a -G video orangepi
REBOOT
open a terminal and type:
vdpauinfo
It should display something like this:
code:
- orangepi@orangepi:~$ vdpauinfo
- display: localhost:10.0 screen: 0
- Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
- Error creating VDPAU device: 1
Then export libvdpau-sunxi as VDPAU_DRIVER:
code:
- orangepi@orangepi:~$ export VDPAU_DRIVER=sunxi
Retype vdpauinfo and now if all is correct you should see something like this:
http://pastebin.com/4zBxArGF
Now you are ready to play some videos with mplayer or mpv:
code:
- mplayer -fs -vo vdpau -vc ffmpeg12vdpau,ffh264vdpau, test.mkv
- mpv --vo=vdpau --hwdec=vdpau --hwdec-codecs=all test.mkv
Wit the "stock" mplayer you can use this HW-accelerated codecs:
code:
- ffmpeg12vdpau ffmpeg working FFmpeg MPEG-1/2 (VDPAU) [mpegvideo_vdpau]
- ffwmv3vdpau ffmpeg problems FFmpeg WMV3/WMV9 (VDPAU) [wmv3_vdpau]
- ffvc1vdpau ffmpeg problems FFmpeg WVC1 (VDPAU) [vc1_vdpau]
- ffh264vdpau ffmpeg working FFmpeg H.264 (VDPAU) [h264_vdpau]
- ffodivxvdpau ffmpeg working FFmpeg MPEG-4,DIVX-4/5 (VDPAU) [mpeg4_vdpau]
If you want to play HEVC/H.265 files you need to compile mplayer or mpv from source.
With a compiled mplayer 1.2 from source you can use this HW-accelerated codecs:
code:
- ffmpeg12vdpau ffmpeg working FFmpeg MPEG-1/2 (VDPAU) [mpegvideo]
- ffmpeg12vdpauold ffmpeg working FFmpeg MPEG-1/2 (VDPAU) [mpegvideo_vdpau]
- ffwmv3vdpau ffmpeg problems FFmpeg WMV3/WMV9 (VDPAU) [wmv3]
- ffwmv3vdpauold ffmpeg problems FFmpeg WMV3/WMV9 (VDPAU) [wmv3_vdpau]
- ffvc1vdpau ffmpeg problems FFmpeg WVC1 (VDPAU) [vc1]
- ffvc1vdpauold ffmpeg problems FFmpeg WVC1 (VDPAU) [vc1_vdpau]
- ffhevcvdpau ffmpeg working FFmpeg HEVC / H.265 (VDPAU) [hevc]
- ffh264vdpau ffmpeg working FFmpeg H.264 (VDPAU) [h264]
- ffh264vdpauold ffmpeg working FFmpeg H.264 (VDPAU) [h264_vdpau]
- ffodivxvdpau ffmpeg working FFmpeg MPEG-4,DIVX-4/5 (VDPAU) [mpeg4]
- ffodivxvdpauold ffmpeg working FFmpeg MPEG-4,DIVX-4/5 (VDPAU) [mpeg4_vdpau]
"New" commandline with new mplayer:
code:
- mplayer -fs -vo vdpau -vc ffmpeg12vdpau,ffh264vdpau,ffhevcvdpau, test.mkv
If you need to compile mplayer or mpv chose mpv it works better!
https://github.com/mpv-player/mpv-build#instructions-for-debian-and-ubuntu
This will build a debian-package mpv_0.13.0_armhf.deb
That's it