August 14, 2020, 04:03:23 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.

Messages - 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
Quote from: GeorgeIoak on December 01, 2013, 06:52:20 pm
But since I've already rebooted I'm not able to issue any sudo commands. Do you happen to know a way in?

I took the SD Card out and on another system issued
sudo visudo -f /media/cubieboard/etc/sudoers

and added
cubie   ALL=(ALL:ALL) ALL

Probably not the safest thing to do but I just wanted to get the system up so I could do some testing.



Have you enable root user ?

https://github.com/cubieplayer/Cubian/wiki/Get-started-with-Cubian

You must have this line in sudoers :

%sudo ALL=(ALL) ALL

And with root user :

usermod -G sudo,video,audio cubie
3
Quote from: GeorgeIoak on December 01, 2013, 04:22:46 pm
I got some time to try this out and I'm not getting it to work. I'm trying this on a CB1 and using the latest Cubian release. What's odd at this point is that when I try to debug what is going on I can no longer issue a sudo command. It comes back and says
Quotecubie is not in the sudoers file
. I can ssh in with cubie/cubie but can't do any sudo commands.



Hi,

You must add user cubie in sudo group with root user.

I've modified my tutorial....

Quote from: classdroogies on October 12, 2013, 07:00:30 pm

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

4
Hi patwood,

I see this message with mplayer on debian. If I list the outputs videos :
mplayer -vo help

vdpau output doesn't exist, because mplayer is not build with.

mplayer2 support vdpau by default try it.

5
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)
6
Hi patwood,

I had trying Vdpau's solution on Lubuntu 12.10 SD card image, and i have this error me too.
On this image i hadn't cedar_dev's device and i think mplayer has need to write data to this output with vdpau

But i'm a newby on linux embedded systems, i learn to build my system on my Cubieboard.

Thanks for your time and thanks for your great job on this card !
7
Hi,

Sorry for my English  :o

You should install libvdpau-dev library and pkg-config for compile libvdpau-sunxi.

It's works great on Cubieez, Debian 7.1

You also need to change permissions on:

chmod 777 / dev / cedar_dev
chmod 777 / dev / disp


Look at this :

http://linux-sunxi.org/Reverse_Engineering/Cedar_Status

8)