August 14, 2020, 04:26:13 pm


Have you visited the Allwinner Chipset wiki? -

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - classdroogies


I wrote a tutorial for create basic video kiosk in few year ago and I decided to update this :),879.0.html

I use Armbian with a customized image Ubuntu xenial, with legacy kernel, without desktop packages for minimal fresh installation.

Note video acceleration work only with legacy kernel.

For mainline kernel the development is currently work in progress :

Read the Armbian documentation for build your image.

With this image it's very simple, you must have a few packages :

sudo apt-get install xserver-xorg-core xinit xserver-xorg-video-fbdev xfonts-base libvdpau-sunxi1 nodm mpv

And a fewest configuration :

Add this parameters to /boot/armbianEnv.txt for enable memory reservations


Configure nodm with your user which should be automatically logged in, under /etc/default/nodm file :


Create ~/.xsession to launch mpv

#! /bin/bash
mpv --vo=vdpau --hwdec=vdpau --hwdec-codecs=all --loop=yes /home/cubie/video/*.mp4

And of course, you must have a video to read :

mkdir ~/video

wget -O ~/video/big_buck_bunny.mp4

Now reboot and  8)
A tutorial for create a basic video kiosk on CB2 with mplayer, for fun  :)

I use Cubian up to date with the last kernel :

Install and run cubian-update :
sudo apt-get update
sudo apt-get install cubian-update
sudo cubian-update
sudo reboot

Packages installation :
sudo apt-get upgrade
sudo apt-get install xserver-xorg-core xinit xserver-xorg-video-sunximali slim alsa-utils mplayer2 gcc make pkg-config libvdpau1 libvdpau-dev

Add sunxi_cedar_mod in /etc/modules for activate cedar.

Install libvdpau-sunxi library for mplayer :
git clone

cd libvdpau-sunxi
sudo make install

Add environment variable VDPAU_DRIVER=sunxi in /etc/environment.

Add udev rules for change the permission on /dev/disp and /dev/cedar_dev in /lib/udev/rules.d/90-sunxi-disp-permission.rules :
KERNEL=="disp", MODE="0777", GROUP="video"
KERNEL=="cedar_dev", MODE="0777", GROUP="video"

Add your user to the video and audio groups :
sudo usermod -G sudo,video,audio cubie

Login auto with slim :
login_cmd exec /bin/sh - ~/.xinitrc
default_user cubie
auto_login yes

Create video folder :
mkdir ~/video

Download Sintel's trailer for a test :
wget -O ~/video/sintel_trailer-1080p.mp4

Create ~/.xinitrc to launch mplayer :
mplayer -fs -ao alsa:device=hw=1.0 -vo vdpau -vc ffmpeg12vdpau,ffh264vdpau -loop 0 /home/cubie/video/*.mp4

Reboot and  8)