MALI & CedarX now working on a20 debian ultimate (with a how to)

Started by denjell, December 15, 2013, 09:50:31 PM

Previous topic - Next topic

denjell

In case you don't know, you need to have cedar in order to get hardware acceleration of video. Considering one of the major selling points of the board is the fact that it has a dual GPU, I kind of wonder why this hasn't been done i the official "ultimate" image.

Here is what you have to do:
1) Get and install the ultimate debian image onto a class 10 8gb sd card
2) apt-get update
3) set your time! (otherwise github will complain)
4) Follow these instructions: https://www.olimex.com/forum/index.php?topic=1910.0
(if you can't run ./autogen.sh just chmod a+x it)

then do the following (ripped from http://www.cubieforums.com/index.php/topic,879.0.html )

apt-get install xserver-xorg-core xinit slim alsa-utils mplayer2 gcc make pkg-config libvdpau1 libvdpau-dev
git clone https://github.com/linux-sunxi/libvdpau-sunxi.git
cd libvdpau-sunxi
make
make install

Add environment variable VDPAU_DRIVER=sunxi to /etc/environment

add the following two kernel lines to /lib/udev/rules.d/90-sunxi-disp-permission.rules

KERNEL=="disp", MODE="0777", GROUP="video"
KERNEL=="cedar_dev", MODE="0777", GROUP="video"

mplayer -fs -vo vdpau -vc ffmpeg12vdpau,ffh264vdpau, yourh264video.mp4

Good luck.

fushfush

So how does the A20 handle XBMC, after getting the correct driver?


fab

Hello,

I tried this tuto. All the installation went well. But when I am trying to play a video I got this error:

[vdpau] Error when calling vdp_device_create_x11: 25
Error opening/initializing the selected video_out (-vo) device.

This is the way I am calling mplayer:
mplayer -fs -vo vdpau -vc ffmpeg12vdpau,ffh264vdpau, myH264video.h264

Any ideas?
Thx for your help

junetec

I had the same error and after that I use without -vo and work fine.

fab

ok thx junetec,

Curiously, it works but the CPU inscrease to 40%, rather than 20% when using the regular ffmpeg code!!
So I am not very sure the GPU is used in that case!


fab

Hi,

I finally got it to work! including the option -vo=vdpau

What I actually forgotten, was to load the "sunxi_cedar_mod"
(drop it into /etc/modules) and then chmod 777 onto /dev/cedar_dev

and now mplayer is using very very few cpu cycles when decoding videos.


tmanev

Could you sheare the image? I would like to test the VLC with Cedrax.


Best regarsd,
Todor