barban post at 2015-11-22 07:29:20

Hi all,
I just installed sunxi vdpa driver and output from vdpauinfo seems ok.
Unfortunately, I cannot reproduce video using mplayer due to the error below.
Any help appreciated.

mplayer -vo vdpau -vc ffmpeg12vdpau,ffh264vdpau, big_buck_bunny_1080p_H264_AAC_25fps_7200K.MP4
...
Error when calling vdp_presentation_queue_target_create_x11: A catch-all error, used when no other error codesapplies.
FATAL: Cannot initialize video driver
FATAL: Could not initialize video filter (-vf) or video output (-vo)

fritz post at 2015-11-22 15:45:09

@barban
have you compiled from source?

Rangarid post at 2015-11-22 15:57:49

libvdpau does not work with H3:
https://github.com/linux-sunxi/libvdpau-sunxi/issues/39

fritz post at 2015-11-22 16:38:27

@Rangarid
open your eyes!
https://github.com/linux-sunxi/libvdpau-sunxi/tree/h3-dev
:D

Rangarid post at 2015-11-22 16:46:23

Ok that is new... looks like they added it after i asked... Why didnt they tell me :'(

fritz post at 2015-11-22 17:01:50

@Rangarid
Pssssssssssssssssssssss!!!!
Don't tell it anyone!
It is a big secret!!!
We will publish it in three weeks on facebook and we will make a video tutorial on youtube.
;P

Rangarid post at 2015-11-22 23:32:43

Sounds good. Cant wait. If you need testers let me know (with detailed instructions :P).

barban post at 2015-11-23 02:58:35

Edited by barban at 2015-11-23 03:02

fritz replied at 2015-11-22 15:45
@barban
have you compiled from source?
Yes I did.
But from your answer I just realized to have considered the master branchgit clone https://github.com/linux-sunxi/libvdpau-sunxi.git
instead of the h3-dev branch...
git clone https://github.com/linux-sunxi/libvdpau-sunxi/tree/h3-dev
I am going to rebuild and retry...lolBR



Rangarid post at 2015-12-1 18:36:44

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

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...
leafpad Makefile

remove h265.c from SRC define and save

leafpad decoder.c

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
make
sudo make install


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


As it is mentioned in the libvdpau installation instructions i also added this line in /etc/profile
export VDPAU_DIVER=sunxi

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"


create file 50-cedar.rules (need root permission)
KERNEL=="cedar_dev", MODE="0660", GROUP="video"


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


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.

Rangarid post at 2015-12-1 19:51:27

Another note... disabling h265 just seems to apply to the libvdpau-dev version in the lubuntu apt repositories. That version is 0.9, but latest is 1.1.1, so it looks like the h265 related things were added in a later version. there it might not be necessary to remove the h265 things.
page: 1 [2] 3 4 5 6 7 8
View full version: VPU CedarX drivers for Allwinner H3