August 14, 2020, 04:26:13 pm

News:

Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/


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

1
Hi,

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

http://www.cubieforums.com/index.php/topic,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 :

https://linux-sunxi.org/Sunxi-cedrus

Read the Armbian documentation for build your image.

https://docs.armbian.com/Developer-Guide_Build-Preparation/

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

disp_mem_reserves=on
extraargs=cma=96M


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

NODM_ENABLED=true
NODM_USER=cubie


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 http://samplemedia.linaro.org/H264/big_buck_bunny_1080p_H264_AAC_25fps_7200K.MP4 -O ~/video/big_buck_bunny.mp4


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

I use Cubian up to date with the last kernel :
https://github.com/cubieplayer/Cubian/wiki/Wiki-Index

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 https://github.com/linux-sunxi/libvdpau-sunxi.git

cd libvdpau-sunxi
make
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 http://ftp.nluug.nl/ftp/graphics/blender/apricot/trailer/sintel_trailer-1080p.mp4 -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)