cvar
Posts: 1
Joined: Thu Mar 21, 2013 10:16 am

Pi as media player

Tue Mar 26, 2013 2:20 pm

Hi, I'm new to Raspberry Pi so excuse me if some questions are basic.

I have my wheezy image on my Raspberry. And I'm setting it up to be a media player for videos and pictures.
I'm using omxplayer(videos) and fbi(pictures). Basic idea was to try to display images/videos after booting. So I've made a script and put it in crontab.

The problem with this was that I couldn't clear the screen (in my case tty1/fb0) if I did crontab solution :?: . Now if I automatically login (through inittab) user and run script from .bashrc then I can clear the screen. Not sure where the problem is.

I'm using all/some of the following to clear screen:

Code: Select all

sudo -u root setterm -cursor off
sudo -u root clear > /dev/tty1
sudo -u root dd if=/dev/zero of=/dev/fb0 > /dev/null
I'm using sudo and user as root because logged in as default pi user I can't clear tty.

Now the problem is I'm getting error when playing video:

Code: Select all

map: tty1 => fb0
:?: :?: and I'm not sure what the problem is. I managed to find reference to source code of fbtools.c where there is checking if framebuffer is null. And it seems that's when this "error" happens. My framebuffer is null somehow.
What I would like to know is, how can I avoid this error. And if I can't avoid it, how I can at least not write this error to terminal.
I've used standard command

Code: Select all

> /dev/null
but it isn't helping, I still get error displayed on terminal.

I'm also thinking maybe installed omxplayer is at fault so maybe I'll have to compile it from source but I want to avoid it because it takes really long to do that I hear.

Any suggestions would be welcome. 8-)

KenT
Posts: 758
Joined: Tue Jan 24, 2012 9:30 am
Location: Hertfordshire, UK
Contact: Website

Re: Pi as media player

Tue Mar 26, 2013 2:54 pm

My Pi Presents might be what you want
https://github.com/KenT2/pipresents

otherwise xbmc,openelec, raspbmc, TBOPlayer (video only) are all media centres of various weights
Pi Presents - A toolkit to produce multi-media interactive display applications for museums, visitor centres, and more
Download from http://pipresents.wordpress.com

Return to “Beginners”