|
h3-dev is now merged in master + add mpv
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:
- sudo apt-get install build-essential pkg-config git libx11-dev
Copy code
Then libvdpau (0.7.1)is to old on 14.04, you need newer. the simplest is to install it from packages:
- 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
Copy code
install packages with:
- 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
Copy code
Now compile and install libvdpau-sunxi:
- git clone https://github.com/linux-sunxi/libvdpau-sunxi.git
- cd libvdpau-sunxi
- make
- make install
Copy code
Set permissions for disp/ion/cedar devices:
sudo vi /etc/udev/rules.d/50-disp.rules
- KERNEL=="disp", MODE="0660", GROUP="video"
Copy code
sudo vi /etc/udev/rules.d/50-ion.rules
- KERNEL=="ion", MODE="0660", GROUP="video"
Copy code
sudo vi /etc/udev/rules.d/50-cedar.rules
- KERNEL=="cedar_dev", MODE="0660", GROUP="video"
Copy code
Then check if orangepi user is in the group "video"
if not add it. (on lubuntu it was not)
- sudo usermod -a -G video orangepi
Copy code
REBOOT
open a terminal and type:
vdpauinfo
It should display something like this:
- 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
Copy code
Then export libvdpau-sunxi as VDPAU_DRIVER:
- orangepi@orangepi:~$ export VDPAU_DRIVER=sunxi
Copy code
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:
- mplayer -fs -vo vdpau -vc ffmpeg12vdpau,ffh264vdpau, test.mkv
- mpv --vo=vdpau --hwdec=vdpau --hwdec-codecs=all test.mkv
Copy code
Wit the "stock" mplayer you can use this HW-accelerated codecs:
- 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]
Copy code
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:
- 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]
Copy code
"New" commandline with new mplayer:
- mplayer -fs -vo vdpau -vc ffmpeg12vdpau,ffh264vdpau,ffhevcvdpau, test.mkv
Copy code 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
|
|