[HOWTO] play video with cedarx acceleration on A20-OLinuXino-MICRO-4GB

Started by cedric, August 12, 2014, 02:39:19 PM

Previous topic - Next topic

cedric

Hi All,

I saw a video demonstrating accelerated video with an allwinner A10 device. after some trial and error I got it working on an olimex A20 board. Here are the steps I have taken:

1)watch the demonstration video here:
http://linux-sunxi.org/CedarX/Reverse_Engineering

2)buy the olimex A20 board :-)
https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-MICRO-4GB/open-source-hardware

3) download A20_debian_kernel_3_4_LAN_USBx2_Cards_LCD_HDMI_SATA_TS_X_GPIO_OTG_MIC_Video_accel_release7.7z
https://docs.google.com/file/d/0B-bAEPML8fwlX2tYS2FmNXV5OUU/edit?pli=1

4)write the image to a SD card. I have used a 32GB card, but only 4 GB is used.
$ 7z e A20_debian_kernel_3_4_LAN_USBx2_Cards_LCD_HDMI_SATA_TS_X_GPIO_OTG_MIC_Video_accel_release7.7z
# dd if=A20_debian_kernel_3_4_LAN_USBx2_Cards_LCD_HDMI_SATA_TS_X_GPIO_OTG_MIC_Video_accel_release7.img of=/dev/mmcblk0

5)enable DHCP, so the olimex board can be reached via the network. This can be done by mounting the SD card, and editing /etc/network/interfaces. Uncomment the line "auto eth0" This can also be done after booting the olimex board, with an USB keyboard and HDMI screen.

the rest of the guide is executed on the olimex board itself, in LXterminal

6)compile libvdpau-sunxi:
# apt-get install libvdpau-dev
$ git clone https://github.com/linux-sunxi/libvdpau-sunxi.git
$ cd libvdpau-sunxi
$ make
# make install

7)prepare permissions:
# chmod 777 /dev/cedar_dev /dev/disp
$ export VDPAU_DRIVER=sunxi

8)download the sintel trailer and/or big bugs bunny:
$ wget http://download.blender.org/durian/trailer/sintel_trailer-1080p.mp4
$ wget http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_1080p_h264.mov

9)watch the movie:
$ mplayer -vo vdpau -vc ffmpeg12vdpau,ffh264vdpau big_buck_bunny_1080p_h264.mov
$ mplayer -vo vdpau -vc ffmpeg12vdpau,ffh264vdpau sintel_trailer-1080p.mp4

Kind regards,
Cedric