Raspberry Pi and MMS?

Everything about the new development branch of mms

Moderator: Moderator

User avatar
heymish
Posts: 36
Joined: Sat Mar 01, 2008 4:28 am
Location: New Zealand

Raspberry Pi and MMS?

Postby heymish » Thu Apr 04, 2013 1:20 am

Just wondering if anyone has managed to get MMS compiled on the Raspberry Pi.

I see there was a question ask a while ago.
MMS auf dem Raspberry Pi


My board arrives in 2 weeks time and I was hoping to repalce my old MMS install with one on the Raspberry Pi
HAT

User avatar
naicheben
Overlord
Posts: 1332
Joined: Tue Apr 04, 2006 12:50 pm
Location: Germany/Leck
Contact:

Re: Raspberry Pi and MMS?

Postby naicheben » Thu Apr 04, 2013 4:46 pm

I did manage to compile it a while ago, but it did not show up with a menu ... strange thing ... Did you try to compile in a VM?
mit Hellseherschein ;.)

User avatar
heymish
Posts: 36
Joined: Sat Mar 01, 2008 4:28 am
Location: New Zealand

Re: Raspberry Pi and MMS?

Postby heymish » Fri Apr 05, 2013 12:02 am

No I have not tried to compile it for the Pi at all yet. I was going to wait for the board to arrive and try on the board rather than mess around with a cross-compiler.
HAT

User avatar
naicheben
Overlord
Posts: 1332
Joined: Tue Apr 04, 2006 12:50 pm
Location: Germany/Leck
Contact:

Re: Raspberry Pi and MMS?

Postby naicheben » Fri Apr 05, 2013 11:27 am

It takes ages for MMS to compile on the RaspberryPi. As I remember there is a tool chain ready to use somewere on raspberrypis github. Setup wasn't too hard.
mit Hellseherschein ;.)

User avatar
heymish
Posts: 36
Joined: Sat Mar 01, 2008 4:28 am
Location: New Zealand

Re: Raspberry Pi and MMS?

Postby heymish » Sat Apr 06, 2013 7:09 am

what was the performance like?
HAT

User avatar
naicheben
Overlord
Posts: 1332
Joined: Tue Apr 04, 2006 12:50 pm
Location: Germany/Leck
Contact:

Re: Raspberry Pi and MMS?

Postby naicheben » Sat Apr 06, 2013 4:32 pm

It compiled over night .... at least more than one hour

I couldn't use MMS after it finished. No Text in the menu. Only the Bar showed up but I couldnt move it up or down. Well, there was no menu, so were should it be placed at....

I'm not sure if, but when I get time next week I will again try to compile MMS (on the Pi) and take the time.
mit Hellseherschein ;.)

User avatar
naicheben
Overlord
Posts: 1332
Joined: Tue Apr 04, 2006 12:50 pm
Location: Germany/Leck
Contact:

Re: Raspberry Pi and MMS?

Postby naicheben » Sat Apr 06, 2013 6:42 pm

BTW: MMS complains about "RENDER: The font Vera/36 could not be loaded"
but ttf-bitstream-vera is installed into
/usr/share/fonts/truetype

EDIT: compiling finished after:
real 226m53.150s
user 196m37.240s
sys 5m1.660s
but still these errors about not loading Vera
mit Hellseherschein ;.)

User avatar
heymish
Posts: 36
Joined: Sat Mar 01, 2008 4:28 am
Location: New Zealand

Re: Raspberry Pi and MMS?

Postby heymish » Sun Apr 07, 2013 8:10 pm

I do not think I will sit and watch mms compile by the sounds of it.

Strange about the font error. Hopefully my Pi will arrive soon and I can see if I get the same error.
HAT

User avatar
heymish
Posts: 36
Joined: Sat Mar 01, 2008 4:28 am
Location: New Zealand

Re: Raspberry Pi and MMS?

Postby heymish » Thu Apr 11, 2013 7:35 pm

Well I have managed to get it to compile without problems.

Just trying to get it working well with the omxplayer well.

I do have a proformance question. I like having the system setup in icon mode.
The videos are all on drives connected via nfs. I then symlink link them all together

I have

Videos -> TV -> TVSeriesName -> Video Files
______-> Movies -> Video Files

With in the TV folder I have 200 TVSeries folders, then the videos files are within each folder. Navigation of the TV folder is slow the red circule is up all the time you are navigating, but once in the folder with the videos files the navigation is fast or at least no slower than my last system. Even navigationg the Videos folder which only has the TV, and Movies folder is very slow. But Navigation the Movies Folder is fast as it is filled with just video Files there are some 2000 of them,

Any Ideas?
HAT

User avatar
heymish
Posts: 36
Joined: Sat Mar 01, 2008 4:28 am
Location: New Zealand

Re: Raspberry Pi and MMS?

Postby heymish » Fri Apr 12, 2013 10:14 pm

Well it is working but I have 2 problems

Omxplayer is still needing a little work and does not handle having keypress passed to it. It only reciveves key press if you lanuch it from CLI. Someone much smart than me could get it working better.
I ened up just writing a dirty little sh script. The problem is when you skip foreward or back in the video it jumps back to the terminal.

The only other problem is proformance when naviagting folders.

If any one has any suggestions I really want to hear.
HAT

User avatar
naicheben
Overlord
Posts: 1332
Joined: Tue Apr 04, 2006 12:50 pm
Location: Germany/Leck
Contact:

Re: Raspberry Pi and MMS?

Postby naicheben » Sat Apr 13, 2013 7:06 am

Wow, could you please post how you got there? I can't get it to compile to a usable application ....

Regarding performance: I guess someone very smart would have to convert it to OpenGL-ES...
maybe this can be done in output-opengl?
mit Hellseherschein ;.)

User avatar
heymish
Posts: 36
Joined: Sat Mar 01, 2008 4:28 am
Location: New Zealand

Re: Raspberry Pi and MMS?

Postby heymish » Sat Apr 13, 2013 8:39 am

My Adventure to get the raspberry Pi and MMS going

I suggest doing an

Code: Select all

 sudo apt-get update
sudo apt-get upgrade

Just to make sure you have the latest copy of raspbian.

Might also be worth checking you have the lastest firmware.

Code: Select all

/opt/vc/bin/vcgencmd version

i am running

Code: Select all

Feb 7 2013 16:46:17
version 367974


Setting up NFS shares, I had to start rpcbind and set to run at startup
Raspbian FAQ

You will need to instal bazaar to get the source off launchpad.

Code: Select all

sudo apt-get install bzr


Now you can download the latest copy of the source this will take a few minutes

Code: Select all

bzr branch lp:mms-ng

This will create a folder mms-ng with the source code within it

You will need some tools to compile the source there is a handy package for this

Code: Select all

sudo apt-get install build-essential


Dependences

Code: Select all

sudo apt-get install gettext libsqlite3-dev libpcre3-dev libtinyxml-dev libimlib2-dev libncurses-dev liblircclient-dev libsdl-dev libtag1-dev libavcodec-dev libxine-dev libswscale-dev libavformat-dev alsaplayer libalsaplayer-dev alsaplayer-daemon


I complied with (enable-lirc may not be needed if using ir-keytable see below)

Code: Select all

./configure --enable-lirc --enable-weather --enable-clock --enable-notify-area --enable-alsaplayer


Code: Select all

make

Now wait many hours (3ish)

Code: Select all

sudo make install

Not that quick either

To enable remote support. The lastest kernal has alot of the remotes as kernal modules now so lirc is not need for all of them. Still not sure on this one

Code: Select all

sudo apt-get install ir-keytable

and edit mapping in /lib/udev/rc_keytable/
I changed some of the defaults i,e add the P and Q keys to the remote

OMXPlayer
Key bindings Key Action
1 Increase Speed
2 Decrease Speed
j Previous Audio stream
k Next Audio stream
i Previous Chapter
o Next Chapter
n Previous Subtitle stream
m Next Subtitle stream
s Toggle subtitles
q Exit OMXPlayer
Space or p Pause/Resume
- Decrease Volume
+ Increase Volume
Left Seek -30
Right Seek +30
Down Seek -600
Up Seek +600

Problem with OMXPlayer is still very new, it is still very basic. So basic in fact it's key bindings (for play/pause/stop/quit) only function if the program is launched via the CLI. So to get around this I created a script to launch a terminal and then OMXPlayer from there. it works but it is not pretty.

I edited the GenericPlayerConfig I added. "-o hdmi" passes the audio to the hdmi. (If you have not sound check you have got the -o hdmi)
There is also a -r which changes the resolution, but I found this did some strange things to some of my videos. That could be more to do with my TV.

Code: Select all

# OMXPlayer Start
generic_dvd_opts = -o hdmi
generic_vcd_opts = -o hdmi
generic_movie_opts = -o hdmi
# OMXPlayer End


For the genericplayer_movie_path setting I pointed it at the script to run OMXplayer. This is needed to enable keypress to be passed to OMXPlayer.
With using the script you could get away with setting no opts in the GenericPlayerConfig really.

Code: Select all

#!/bin/sh
lxterminal -e 'omxplayer -o hdmi ''${3}'"'


I also setup Auto Login and autostarted mms

in the user goto

Code: Select all

 ~/.Config/autostart
is it does not exist create the folder
Then in this folder create .desktop in the file you need 3 lines

Code: Select all

[Desktop Entry]
Type=Application
Exec=mms



If you create a new user make sure you add them to all the groups that user pi otherwise you will get an error about omxplayer failed to open vchiq


I could zip up the image on my flash card and send that to any one. Might need a bit of cleaning up first.
Last edited by heymish on Mon Apr 15, 2013 4:10 am, edited 3 times in total.
HAT

User avatar
naicheben
Overlord
Posts: 1332
Joined: Tue Apr 04, 2006 12:50 pm
Location: Germany/Leck
Contact:

Re: Raspberry Pi and MMS?

Postby naicheben » Sun Apr 14, 2013 12:09 pm

hmm this was much quicker than mms-1.1.0:

Code: Select all

Linking done

real   104m21.007s
user   85m31.600s
sys   2m57.310s


ir-keytables does not end with "s" :wink:
mit Hellseherschein ;.)

User avatar
naicheben
Overlord
Posts: 1332
Joined: Tue Apr 04, 2006 12:50 pm
Location: Germany/Leck
Contact:

Re: Raspberry Pi and MMS?

Postby naicheben » Sun Apr 14, 2013 1:58 pm

Ahhhh, MMS on RaspberryPi! Like it! Thanks for your HowTo.

Do you have Audio up and running? I will have to use CVBS and the 3,5mm audio jack. MMS complains: audiodevice not available: alsa
EDIT: Ah, I have mpd running, will try without .... EDIT-2: no, wasn't mpd ....
mit Hellseherschein ;.)

User avatar
heymish
Posts: 36
Joined: Sat Mar 01, 2008 4:28 am
Location: New Zealand

Re: Raspberry Pi and MMS?

Postby heymish » Sun Apr 14, 2013 7:44 pm

Well what is an extra s or 2 between friends.

Yea I was getting the error on startup of mms about alsa, but I was still getting sound over the hdmi so had not really started to worry about it. It is on the todo list.

For the audio you will need to change the script (omxplayer.sh) to omxplayer -o local for audio out the 3.5mm, for videos at least. Not sure for mp3's.

Are you expericany any problems with navigation when there are several folders?
HAT


Return to “1.2.x”

Who is online

Users browsing this forum: No registered users and 2 guests