December 08, 2019, 11:48:40 pm

News:

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


Cubian Video Kiosk with Mplayer on CB2

Started by classdroogies, October 12, 2013, 07:00:30 pm

Previous topic - Next topic

classdroogies

December 01, 2013, 05:09:53 pm #15 Last Edit: December 01, 2013, 05:17:17 pm by classdroogies
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


GeorgeIoak

December 01, 2013, 06:52:20 pm #16 Last Edit: December 01, 2013, 08:10:29 pm by GeorgeIoak
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.

For those new to slim the file you need to change is
sudo nano /etc/slim.conf

and don't forget to remove the # in front of default user and auto_login

Next up is to try and trim things to speed up the boot. Any helpful advice would be appreciated.



patwood

Quote from: GeorgeIoak on December 01, 2013, 06:52:20 pm
Next up is to try and trim things to speed up the boot. Any helpful advice would be appreciated.


I know that for ubuntu/lubuntu, the boot sequence waits a long time for the network to come up before bailing and continuing booting without it.  I was able to speed up the boot time when no network was connected from over 2 minutes to a few seconds by removing this.

GeorgeIoak

I have seen that and plan on the final version not loading and checking the network connection. I see a fair amount of kernel messages so turning those off will help. I haven't messed with this stuff in over 6 months and even then I wasn't a programmer!

If "we're" crating a kiosk type platform my goal is make a super fast boot with a system that doesn't look like it's booting a computer.

classdroogies

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

alexvf

December 20, 2013, 09:12:06 am #20 Last Edit: January 09, 2014, 08:18:24 am by alexvf
Quote from: patwood on October 13, 2013, 08:39:55 pm
Quote from: Bangonkali on October 13, 2013, 04:32:20 pm
Very nice tutorial. But it's strange that I can play Video and no Audio. Any notes I may have missed in this? I'm using Gnome install GUI over my Cubian.


cat /proc/asound/cards

Modify the alsa:device setting to use your HDMI alsa card.


I think that -ao alsa:device=default is the safer bet according to what aplay -L reports

EDIT: Actually, this is only true if you have your HDMI alsa card as default device for pulseaudio. You can find out with
pacmd list-sinks
Default is marked * and you can set it as default modifying these two lines in /etc/pulse/default.pa:


load-module module-stream-restore restore_device=false
set-default-sink 1 # or the sink index wou want

alexvf

Hi all,

I've been testing mplayer functionality for a small project where i want to use it in slave mode and i found two issues:

* It crashes when using ffh264vdpau decoder to play an HD video and trying to modify aspect ratio.
* It doesn't seem capable of showing subtitles (nor osd) over the video.

Can anyone here confirm the same behaviour, so i can discard any issue related to my environment?
I haven't found instructions on how to compile mplayer myself to investigate further the issues. Has anyone done it?

Thanks,

PD: I start mplayer with this command:

mplayer -vo vdpau -vc ffmpeg12vdpau,ffh264vdpau,ffodivxvdpau,-ffwmv3vdpau,-ffvc1vdpau, -slave -input nodefault-bindings -noconfig all /mnt/medios/Godzilla_2014_Trailer_1_5.1-1080p-HDTN.mp4

5P9i0s8y19Z

Quote from: alexvf on January 09, 2014, 08:31:56 am
* It doesn't seem capable of showing subtitles (nor osd) over the video.


I think they are working on the 'osd' issue

https://github.com/linux-sunxi/libvdpau-sunxi/tree/osd

botond

Quote from: classdroogies on October 12, 2013, 07:00:30 pm
Hi,
A tutorial for create a basic video kiosk on CB2 with mplayer, for fun  :)
...

Reboot and  8)


Nice tutorial!
mplayer can play back fullHD videos even from an SMB share. Thank you!

maruprez

February 11, 2014, 10:54:16 am #24 Last Edit: February 11, 2014, 11:02:40 am by maruprez
Hi,

Very nice tutorial !! Thank You.

I'm trying to use mplayer2 / cedar with Cubietruck.

I' ve followed all steps.  but i'm getting the following error

[vdpau] Error when calling vdp_presentation_queue_target_create_x11: A catch-all error, used when no other error code applies.
FATAL: Cannot initialize video driver.


Any help will be appreciate !!

Thank You

Maruprez


SOLVED !!!.

It was a /dev/disp permissions issue.

It works!

Maruprez

filly86

Is it possible to pause, move forward and backward the video?

Tar

@filly:
Try the spacebar and "man mplayer" for a comprehensive list of keystrokes for the control of mplayer: 8)

      keyboard control
              LEFT and RIGHT
                   Seek backward/forward 10 seconds.
              UP and DOWN
                   Seek forward/backward 1 minute.
              PGUP and PGDWN
                   Seek forward/backward 10 minutes.
              [ and ]
                   Decrease/increase current playback speed by 10%.
              { and }
                   Halve/double current playback speed.
              BACKSPACE
                   Reset playback speed to normal.
              < and >
                   Go backward/forward in the playlist.
              ENTER
                   Go forward in the playlist, even over the end.
              HOME and END
                   next/previous playtree entry in the parent list
              INS and DEL (ASX playlist only)
                   next/previous alternative source.
              p / SPACE
                   Pause (pressing again unpauses).
              .
                   Step forward.  Pressing once will pause movie, every  consecutive  press  will  play  one
                   frame and then go into pause mode again (any other key unpauses).
              q / ESC
                   Stop playing and quit.
              U
                   Stop playing (and quit if -idle is not used).
              + and -


My actual problem is more severey - as well mplayer as vlc crashes, when i stop the video and try to resume. Only a reboot saves the system! My UART Cable is still on its way, so the chances to debug are small for me now. Up to now, i did not find anything about this. Is this a known issue?

Regards,

Tar
CT Rev.B|Cubian@Nand/ 3.4.79
A20Olinuxino|Debian/ 3.4.79

null

Quote from: Tar on April 02, 2014, 01:28:27 pm
mplayer as vlc crashes, when i stop the video and try to resume

pause and resume ?
or stop and run again with resume from previous position ?

Tar

Resume is the problem.

If i just shutdown vlc or mplayer and later restart it, no problem.

Pause works but on resume, the kernel crashes immediatly. If i am lucky, i may use sysrq to shutdown the system, sometimes hard reset is the only way. i am afraid of my NAND...
CT Rev.B|Cubian@Nand/ 3.4.79
A20Olinuxino|Debian/ 3.4.79

null

Try Arch or Gentoo.
binary distributions(Cubian & others) - can cause unpredictable errors.