Tips & Tricks
From Mms-wiki
[edit] Tips and Tricks
From User to User
Please contribute and share your wisdom, we need it!
[edit] mms-audio-library
The navigation in the audio menu can be speed up by doing a offline extraction of the id3 tags. It's recommended, If you have a large MP3 collection.
See how it's done for 1.0.8:
cd /path/to/your/mms/sourcecode cd library-builder make clean make mms-audio-library #(new in 1.0.8) ./mms-audio-library /path/to/your/mp3/archive
- If you should use an older version of the mms-audio-library, it's possible, that the results are written into ~/mms folder. If so, copy the new files (see timestamp) into /etc/mms folder.
- The extraction of the id3-tags can take hours if you have a large archive. Do it over night ;-)
[edit] mms-pic-library
The navigation in the picture menu can be speed up by doing a offline thumbnail-generation. It's recommended, if you setup MMS the first time and have a large picture collection.
- Set this variable first in the /etc/mms/config, else you loose all thumbnails after reboot, because the default is set to the "/tmp" folder.
/etc/mms/config
temp_image_loc = /var/cache/mms
- Create /var/cache/mms first:
mkdir /var/cache/mms chmod 777 /var/cache/mms
See how it's done for 1.0.8:
cd /path/to/your/mms/sourcecode cd pic-library make clean make mms-pic-library ./mms-pic-library /patch/to/your/pictures
- NOTE: The creation of thumbnails can take hours if you have a large archive. Do it over night ;-)
[edit] xine audio problems
- Combinations of some active tasks let music stutter, if used together with "--enable-xine-audio".
Workaround: use alsaplayer. Adjust your config to this values:
/etc/mms/config
audio_dev = default audio_output_type = alsa audio_output_mode = -d
don't forget to install alsaplayer, and it's additional component. Here is a list of my alsaplayer repository, which works for me.
ii alsaplayer-alsa 0.99.76-8 PCM player designed for ALSA (ALSA output module ii alsaplayer-common 0.99.76-8 PCM player designed for ALSA (common files) ii alsaplayer-daemon 0.99.76-8 PCM player designed for ALSA (non-interactive ve ii alsaplayer-gtk 0.99.76-8 PCM player designed for ALSA (GTK version) ii alsaplayer-oss 0.99.76-8 PCM player designed for ALSA (OSS output module) ii libalsaplayer-dev 0.99.76-7 PCM player designed for ALSA (interface library, ii libalsaplayer0 0.99.76-7 PCM player designed for ALSA (interface library)
Hint For working alsaplayer with alsa-output only these packages are needed:
ii alsaplayer-alsa 0.99.76-8 PCM player designed for ALSA (ALSA output module ii alsaplayer-common 0.99.76-8 PCM player designed for ALSA (common files) ii alsaplayer-daemon 0.99.76-8 PCM player designed for ALSA (non-interactive ve
[edit] Starting MMS from X
- See this threads [1][2][3]
- MMS with SDL and fullscreen mode seems to prevent mplayer to be visible. Use fullscreen from KDE. You can find it in the top/left corner of each window. Make it persistent in the appropriate config window.
UPDATE: this bug has been fixed in 1.0.8 stable -- 23:13, 13 December 2006 (CET)
[edit] MMS Icon
- At the moment, there is no official MMS Icon for the desktop. That means, if you install MMS, and want an mms-icon on the e.g. KDE desktop, you have to choose one from the "icon-pool" on your own. You can also download these icons, and use one of them, since tux with sunglasses and headphones is the official MMS-Logo. Depending on your default icon resolution, Icon #1 could be too small. Icon size equal or smaller than 32x32 pixel should use Icon #2.
- copy the icons into this folder (Debian)
/usr/share/icons/hicolor/128x128/apps/MMS1.png
and choose the icon now from the Icon-Selection in your file-properties.
- New brushed up icon-set
[edit] Using Lirc and Keyboard simultaneously
- MMS can be used with keyboard and remote control (lirc) at the same time. This can be easily done with the irxevent tool from lirc itself. See here, how it's done: HOWTO.
It's not necessary to map all keys in the .lircrc config file. At least there should be UP, DOWN, LEFT, RIGHT, OK, EXIT, MENU. What other keys are worth being defined in the .lircrc is up to You. This table gives you a complete overview of all mappable functions of MMS, decide yourself what is important for you, and what's not.
[edit] Stopping tvtime with remote control
- you have to use irxevent mentioned above
- add to your ~./lircrc these lines
begin remote = <name of your remote control in lircd.conf> prog = irxevent button = <your key from lircd.conf> config = Key Escape tvtime end
- you can replace tvtime with kvdr or whatever frontend you are using, you have just to meet the frontend's quit key. Usually it's 'q' , in this example it's Escape.
[edit] How do I set up EPG for MMS?
There are several ways of setting up EPG for MMS. Read this thread, if you don't get your EPG data from VDR.
[edit] How to use epg.data from VDR
- First, you have to download and install/configure vdr2xmltv. Follow this instructions first: [4]
and update your /etc/mms/config with this entry:
######### EPG ##########
# EPG # # xml file location epg_data = /var/lib/mms/TV.xml
# script to update the xml file # # Please note that if you exit while epg is updating you need to be # root to run the shutdown script at the end epg_update_script = /path/to/your/vdr2xmltv #tv_path= #tv_opts=
- Note: channel-logos doesn't work with vdr2xmltv at the moment, so DON'T use this configure-switch
--enable-picture-epg
- You have also to adjust vdr2xmltv.cfg
xmltv_filename =/var/lib/mms/TV.xml
[edit] Using KVDR as frontend for VDR with keyboard input
- KVDR is a small frontend for VDR, that provides the ability to control VDR via keyboard also (tvtime doesn't). In order to use KVDR, the following steps are necessary:
1. download kvdr [5]
2. meat the requirements (shown on its website)
3. edit in kvdr.cpp
#include <qmsgbox.h>
into
#include <qmessagebox.h>
else it won't compile. (built here on a custom-kernel 2.6.18.2, on kunbuntu edgy)
4. use this configure line
./configure --with-qt-includes=/usr/include/qt3/ --with-qt-dir=/usr/share/qt3 --enable-mt
perform a make and make install afterwards
5. on my machine make install didn't copy kvdr anywhere, so you have to provide the full qualified name in the config. So edit /etc/mms/config
tv_path="/path/to/your/kvdrpath/kvdr" tvopts=-x -f
don't use quotes in tvopts, it won't work.
- -- acmelabs 16:17, 29 December 2006 (CET)
[edit] Your personal Online-Radio-Favorites
- Want your own list of favorit online radio stations?
Go ahaead, start with an empty playlist and add stations as you like. Save this playlist under your desired name. You're able to sort, clean up or do whatever you want with your favorit stations
You are even able to edit this list offline. It is located in
/var/lib/mms/playlists
Open up your list with an editor
nano /var/lib/mms/playlists/your-radio-list
The format of the list for radio is as follows:
web,http://station-ip:station-port;description-as-displayed-in-playlist
Example:
web,http://208.53.158.196:8000;RADIO OASIS
To display the stored playlists hit INSERTkey and choose the stored playlist to be added to the recent playlist.
[edit] Kaffeine as video player for video files and DVD
Create two scripts:
/path/to/your/kaffeineplayfile.sh
#!/bin/sh
kaffeine -f; sleep 1; dcop kaffeine KaffeineIface openURL "$5"
while test 1 ; do
{
sleep 1
pidof kaffeine >/dev/null || exit
}
done
/path/to/your/kaffeineplaydvd.sh
#!/bin/sh
kaffeine -f; sleep 1; dcop kaffeine KaffeineIface playDVD
while test 1 ; do
{
sleep 1
pidof kaffeine >/dev/null || exit
}
done
You can put whatever options you want in the scripts for the kaffeine (option -f is for fullscreen). Chmod scripts so that mms can use those. Then edit /etc/mms/config -file, for example like this:
movie_player = mplayer mplayeropts = mplayer_path = /path/to/your/kaffeineplayfile.sh
dvd_player = xine cxfe_path = /path/to/your/kaffeineplaydvd.sh
Note that mplayeropts have to be empty, otherwise $5 in the kaffeineplayfile.sh -script won't work.
[edit] VDR with MMS - using vdr-sxfe
Moved here: MMS&VDR
[edit] Using Mplayer's OSD Menu
See this forum-thread
[edit] How to use VLC in MMS 1.0.8.5
See this [6]
[edit] Tasten-Anzeige im Extra-Menü anpassen.
Bitte ins englische übersetzen.
Wenn Sie das Extra Menü aufrufen, erscheint eine Liste möglicher Aktionen. Auf der Rechten Seite sind die Tasten zu sehen, mit denen man die Aktionen auch ohne das Menü aufrufen kann. Es kann jedoch vorkommen, dass die Tasten-Angabe einem nicht weiter hilft oder einfach unschön ist, z.B. bei Verwendung der Multimedia-Tasten auf der Tastatur mit #KEYCODE oder bei der S100-Fernbedienung ohne Umweg über zenegalircd. Dort ist z.B. die Leiser-Taste = "KP_9".
Die Tasten können in der input Konfigurationsdatei umbenannt werden:
Standard: Die Tastendefinition ist im Extra-Menü sichtbar
Modul,Funktion,Taste
Umbenannte Taste: Der Tastenname wird angezeigt
Modul,Funktion,Taste|Tastenname
Bei Lirc entsprechend
Modul,Funktion,Taste|Tastenname,multiple_keypresses
Hier ein Ausschnitt aus der Konfiguration /etc/mms/input/keyboard/default meiner S100:
playback,play,F4|PLAY playback,pause,F4|PAUSE playback,stop,F3|STOP playback,ff,F6|FF playback,fb,F7|REV playback,vol+,KP_9|Lauter playback,vol-,KP_3|Leiser playback,mute,SCROLLOCK|Stumm
Es ist auch möglich Bildchen statt der Tastennamen anzeigen zu lassen. Im Standard-Theme sind bereits ein Paar Bildchen enthalten:
$ ls /usr/local/share/mms/themes/standard/buttons EJECT.png FF.png NEXT.png PAUSE.png PLAY.png PREV.png REV.png STOP.png
Wenn der Dateiname einem Tastennamen (+".png") entspricht, wird das Bild im Extra-Menü angezeigt. So z.B. werde bei dem obigen Beispiel die Tasten PLAY, PAUSE, STOP, FF und REV als Bildchen dargestellt. Die Tasten Lauter, Leiser und Stumm werden weiterhin als Text dargestellt, da keine Bilder vorhanden sind.
Sie können natürlich auch selbst eigene Bilder erstellen! Fotografieren Sie Ihre Fernbedienung ab! Dann brauchen Sie die selbst erstellten Bilder nur in das Theme "buttons" Verzeichnis als Tastenname.png ablegen und schon können Sie diese im Extra-Menü sehen. Die Bilder sollten ca. 24x24 Pixel gross sein.
Falls jemand sich diesen Aufwand macht, bitte im Forum unter http://mymediasystem.org/forum/viewtopic.php?t=963 posten, damit auch andere was davon haben :-)




