Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
Author: Rangarid

VPU CedarX drivers for Allwinner H3

[Copy link]

2

Threads

21

Posts

86

Credits

Registered member

Rank: 2

Credits
86
Post time 2015-11-22 07:29:20 | Show all posts
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
...
[vdpau] Error when calling vdp_presentation_queue_target_create_x11: A catch-all error, used when no other error codes  applies.
FATAL: Cannot initialize video driver
FATAL: Could not initialize video filter (-vf) or video output (-vo)

5

Threads

355

Posts

2383

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
2383
Post time 2015-11-22 15:45:09 | Show all posts
@barban
have you compiled from source?
Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

3

Threads

15

Posts

101

Credits

Registered member

Rank: 2

Credits
101
 Author| Post time 2015-11-22 15:57:49 | Show all posts

5

Threads

355

Posts

2383

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
2383
Post time 2015-11-22 16:38:27 | Show all posts
Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

3

Threads

15

Posts

101

Credits

Registered member

Rank: 2

Credits
101
 Author| Post time 2015-11-22 16:46:23 | Show all posts
Ok that is new... looks like they added it after i asked... Why didnt they tell me

5

Threads

355

Posts

2383

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
2383
Post time 2015-11-22 17:01:50 | Show all posts
@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.
Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

3

Threads

15

Posts

101

Credits

Registered member

Rank: 2

Credits
101
 Author| Post time 2015-11-22 23:32:43 | Show all posts
Sounds good. Cant wait. If you need testers let me know (with detailed instructions ).

2

Threads

21

Posts

86

Credits

Registered member

Rank: 2

Credits
86
Post time 2015-11-23 02:58:35 | Show all posts
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 branch
instead of the h3-dev branch...

I am going to rebuild and retry...  lolBR



3

Threads

15

Posts

101

Credits

Registered member

Rank: 2

Credits
101
 Author| Post time 2015-12-1 18:36:44 | Show all posts
Edited by Rangarid at 2015-12-4 23:46

Just testet with Lubuntu Vivid and it seems to work. Follow these instructions:

  1. sudo apt-get install libvdpau-dev build-essential pkg-config
  2. cd
  3. git clone https://github.com/linux-sunxi/libvdpau-sunxi.git
  4. cd libvdpau-sunxi
  5. git checkout h3-dev
Copy the 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...
  1. leafpad Makefile
Copy the Code

remove h265.c from SRC define and save

  1. leafpad decoder.c
Copy the Code

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
  1. make
  2. sudo make install
Copy the Code


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).
  1. sudo ln -s /usr/lib/vdpau/libvdpau_sunxi.so.1 /usr/lib/libvdpau_nvidia.so
Copy the Code


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

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)
  1. KERNEL=="disp", MODE="0660", GROUP="video"
Copy the Code


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


Reboot and then it should all work. You can test it like this:
  1. wget https://github.com/raspberrypi/firmware/blob/master/opt/vc/src/hello_pi/hello_video/test.h264?raw=true
  2. mv test.h264?raw=true test.h264
  3. mplayer -vo vdpau -vc ffmpeg12vdpau,ffh264vdpau, -fs test.h264
Copy the 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.

3

Threads

15

Posts

101

Credits

Registered member

Rank: 2

Credits
101
 Author| Post time 2015-12-1 19:51:27 | Show all posts
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.
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2022-5-29 19:57 GMT+8 , Processed in 0.032511 second(s), 20 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list