Author Topic: Armbian Video Kiosk with mpv on Cubietruck  (Read 3761 times)

Offline classdroogies

  • Newbie
  • *
  • Posts: 7
  • Karma: +4/-0
    • View Profile
Armbian Video Kiosk with mpv on Cubietruck
« on: May 10, 2018, 09:32:35 am »

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 :

Code: [Select]
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
Code: [Select]

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

Create ~/.xsession to launch mpv
Code: [Select]
#! /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 :
Code: [Select]
mkdir ~/video
Code: [Select]
wget -O ~/video/big_buck_bunny.mp4

Now reboot and  8)
« Last Edit: May 11, 2018, 04:30:33 pm by classdroogies »