Accelerated H.264 and HEVC video decoding with Cedrus
#24
If you are on ubuntu image, then probably use longsleep packages. Otherwise:


Before you start you should have installed gcc, gnumake, autoconf and other development tools.

You will also need pixman header files and shared library installed. As well thedevelopment headers and shared library for vdpau. In debian and ubuntu you can install that using :

sudo apt-get install libvdpau-dev

Then


git clone https://github.com/linux-sunxi/libump.git
cd libump
./configure
make
sudo make install

git clone https://github.com/ssvb/xf86-video-fbturbo.git
cd xf86-video-fbturbo/
./configure --prefix=/usr
make
sudo make install

git clone https://github.com/linux-sunxi/libcedrus.git
cd libcedrus
make
sudo make install

git clone https://github.com/linux-sunxi/libvdpau-sunxi.git
cd libvdpau-sunxi
make
sudo make install


This is my /etc/X11/xorg.conf file:

Section "Device"
Identifier "Allwinner A10/A13 FBDEV"
Driver "fbturbo"
Option "fbdev" "/dev/fb0"
Option "SwapbuffersWait" "true"
EndSection


After that restart x server, or just reboot, and use the mplayer script or flags mentioned earlier in the thread. I was using

VDPAU_DRIVER=sunxi /usr/bin/mplayer -vo vdpau -vc ffmpeg12vdpau,ffh264vdpau,ffhevcvdpau, some_file.avi

for playback.


Messages In This Thread
RE: Accelerated H.264 and HEVC video decoding with Cedrus - by baryluk - 05-01-2016, 04:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Video wall? monty1 2 5,305 04-12-2017, 04:34 PM
Last Post: monty1
  pine64 accelerated jpeg decoding jacklau 1 4,554 01-12-2017, 01:12 AM
Last Post: Trizna
  Pine64 accelerated H.264 encoding hngjms 7 13,901 10-18-2016, 03:15 AM
Last Post: pfeerick
  The sunxi transform module is very slow, how to do video rotation? jacklau 0 2,664 09-19-2016, 12:24 AM
Last Post: jacklau
  Video encoding h.265/HEVC tomaThoma 1 6,494 07-02-2016, 11:35 PM
Last Post: tllim
  Question about video acceleration BringItOn 10 17,303 06-23-2016, 10:33 AM
Last Post: ssvb
  Linux accelerated graphics nomadewolf 1 4,845 12-29-2015, 11:26 PM
Last Post: tllim

Forum Jump:


Users browsing this thread: 15 Guest(s)