|
Edited by Rangarid at 2015-12-4 23:46
Just testet with Lubuntu Vivid and it seems to work. Follow these instructions:
- sudo apt-get install libvdpau-dev build-essential pkg-config
- cd
- git clone https://github.com/linux-sunxi/libvdpau-sunxi.git
- cd libvdpau-sunxi
- git checkout h3-dev
Copy code
As the newly added h265 decoding still does not work we need to remove it for now. If you use Lubuntu the standard textedit is leafpad, but you can as well use nano or any other texteditor...
remove h265.c from SRC define and save
search for text VDP_DECODER_PROFILE_HEVC_MAIN
remove the part marked here:
https://github.com/linux-sunxi/l ... v/decoder.c#L73-L78
and marked here:
https://github.com/linux-sunxi/l ... decoder.c#L205-L211
Save and close.
After that run
Now there should be a folder in /usr/lib/vdpau with 2 files. For lubuntu to recognize libvdpau correctly we need to create a symlink to the nvidia vdpau lib (which does not exist but mplayer keeps asking for it).
- sudo ln -s /usr/lib/vdpau/libvdpau_sunxi.so.1 /usr/lib/libvdpau_nvidia.so
Copy code
As it is mentioned in the libvdpau installation instructions i also added this line in /etc/profile
Not sure if this makes a difference though...
Now we still need to set the correct udev rules in /etc/udev/rules.d/
create file 50-disp.rules (need root permission)
- KERNEL=="disp", MODE="0660", GROUP="video"
Copy code
create file 50-cedar.rules (need root permission)
- KERNEL=="cedar_dev", MODE="0660", GROUP="video"
Copy code
Reboot and then it should all work. You can test it like this:
- wget https://github.com/raspberrypi/firmware/blob/master/opt/vc/src/hello_pi/hello_video/test.h264?raw=true
- mv test.h264?raw=true test.h264
- mplayer -vo vdpau -vc ffmpeg12vdpau,ffh264vdpau, -fs test.h264
Copy code
The -fs parameter means fullscreen. Scaling does not seem to work very well with that driver. If mplayer is not in fullscreen the video looks strange. |
|