MediaTomb: Unterschied zwischen den Versionen
Rkr (Diskussion | Beiträge) (Die Seite wurde neu angelegt: MediaTomb ist ein Open-Source '''UPnP Medienserver''', der auch für die Playstation 3 verwendet werden kann. == Installation == Unter openSUSE gelingt die...) |
Rkr (Diskussion | Beiträge) K (→Probleme) |
||
(6 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 2: | Zeile 2: | ||
== Installation == | == Installation == | ||
Unter [[openSUSE]] gelingt die Installation am einfachsten über das [[Packman]]-Repository, wobei man sich entweder für ein [[MySQL]]- oder SQLite-Backend entscheiden muss. Die SQLite-Datenbank und die Konfigurationsdateien in <tt>/etc/ | Unter [[openSUSE]] gelingt die Installation am einfachsten über das [[Packman]]-Repository, wobei man sich entweder für ein [[MySQL]]- oder SQLite-Backend entscheiden muss. Die SQLite-Datenbank und die Konfigurationsdateien in <tt>/etc/mediatomb/</tt> werden automatisch beim ersten Start mittels <tt>/etc/init.d/mediatomb</tt> erzeugt. | ||
Wenn MediaTomb über das init-Script nicht startet, muss ggf. ein Link erzeugt werden: | |||
ln -s /usr/bin/mediatomb-sqlite /usr/bin/mediatomb | |||
== Konfiguration == | == Konfiguration == | ||
Die Konfigurationsdatei <tt>/etc/ | Die Konfigurationsdatei <tt>/etc/mediatomb.cfg</tt> dient einzig für den Start des Servers (z.B. TCP-Port). Die Konfiguration des eigentlichen Medienservers geschieht dann mittels <tt>/etc/mediatomb/config.xml</tt>. | ||
Doku: http://mediatomb.cc/pages/documentation | |||
=== config.xml === | === config.xml === | ||
Für die Playstation 3 ist folgende Zeile im <server>-Abschnitt wichtig: | |||
<protocolInfo extend="yes"/> | |||
Beispiel: | Beispiel: | ||
<pre> | <pre> | ||
<?xml version="1.0" encoding="UTF-8"?> | |||
<config xmlns="http://mediatomb.cc/0.10.0/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/0.10.0/config http://mediatomb.cc/0.10.0/config.xsd"> | |||
<server> | |||
<ui enabled="yes"> | |||
<accounts enabled="yes" session-timeout="30"> | |||
<account user="user" password="password"/> | |||
</accounts> | |||
</ui> | |||
<name>MediaTomb</name> | |||
<udn>uuid:396afd63-d64f-47d1-afe8-6f9f41c63ca4</udn> | |||
<home>/etc/mediatomb</home> | |||
<webroot>/usr/share/mediatomb/web</webroot> | |||
<storage driver="sqlite3"> | |||
<database-file>mediatomb.db</database-file> | |||
</storage> | |||
<protocolInfo extend="yes"/> | |||
</server> | |||
<import hidden-files="no"> | |||
<filesystem-charset>UTF-8</filesystem-charset> | |||
<metadata-charset>UTF-8</metadata-charset> | |||
<playlist-charset>UTF-8</playlist-charset> | |||
<scripting script-charset="UTF-8"> | |||
<common-script>/usr/share/mediatomb/js/common.js</common-script> | |||
<playlist-script>/usr/share/mediatomb/js/playlists.js</playlist-script> | |||
<virtual-layout type="builtin"> | |||
<import-script>/usr/share/mediatomb/js/import.js</import-script> | |||
</virtual-layout> | |||
</scripting> | |||
<mappings> | |||
<extension-mimetype ignore-unknown="no"> | |||
<map from="mp3" to="audio/mpeg"/> | |||
<map from="ogg" to="application/ogg"/> | |||
<map from="asf" to="video/x-ms-asf"/> | |||
<map from="asx" to="video/x-ms-asf"/> | |||
<map from="wma" to="audio/x-ms-wma"/> | |||
<map from="wax" to="audio/x-ms-wax"/> | |||
<map from="wmv" to="video/x-ms-wmv"/> | |||
<map from="wvx" to="video/x-ms-wvx"/> | |||
<map from="wm" to="video/x-ms-wm"/> | |||
<map from="wmx" to="video/x-ms-wmx"/> | |||
<map from="m3u" to="audio/x-mpegurl"/> | |||
<map from="pls" to="audio/x-scpls"/> | |||
<map from="avi" to="video/x-divx"/> | |||
<map from="mpg" to="video/mpeg"/> | |||
<map from="m2v" to="video/mpeg"/> | |||
<map from="gif" to="image/gif"/> | |||
<map from="jpg" to="image/jpeg"/> | |||
<map from="png" to="image/png"/> | |||
<map from="mp4" to="video/mp4"/> | |||
<map from="mp4a" to="video/mp4"/> | |||
<map from="m4v" to="video/mp4"/> | |||
<map from="3gp" to="video/3gpp"/> | |||
</extension-mimetype> | |||
<mimetype-upnpclass> | |||
<map from="audio/*" to="object.item.audioItem.musicTrack"/> | |||
<map from="application/ogg" to="object.item.audioItem.musicTrack"/> | |||
<map from="video/*" to="object.item.videoItem"/> | |||
<map from="image/*" to="object.item.imageItem"/> | |||
</mimetype-upnpclass> | |||
<mimetype-contenttype> | |||
<treat mimetype="audio/mpeg" as="mp3"/> | |||
<treat mimetype="application/ogg" as="ogg"/> | |||
<treat mimetype="audio/x-flac" as="flac"/> | |||
<treat mimetype="image/jpeg" as="jpg"/> | |||
<treat mimetype="audio/x-mpegurl" as="playlist"/> | |||
<treat mimetype="audio/x-scpls" as="playlist"/> | |||
</mimetype-contenttype> | |||
</mappings> | |||
</import> | |||
</config> | |||
</pre> | |||
== User-Interface == | |||
Doku: http://mediatomb.cc/pages/userinterface | |||
== Probleme == | |||
*Umlaute in EXIF-Tags von Bildern (ISO / UTF) | |||
*Leerstellen (ggf. nur in Metadaten ?) | |||
== Siehe auch == | |||
*[[Playstation_3#PS3_Media_Server|PS3 Media Server]] | |||
== Weblinks == | == Weblinks == | ||
Zeile 19: | Zeile 106: | ||
**[http://passthejager.org/blog/?p=12 MediaTomb Installation] | **[http://passthejager.org/blog/?p=12 MediaTomb Installation] | ||
**[http://www.freesoftwaremagazine.com/blogs/upnp_mediatomb_ps3_and_me UPnP, Mediatomb, PS3, and me] | **[http://www.freesoftwaremagazine.com/blogs/upnp_mediatomb_ps3_and_me UPnP, Mediatomb, PS3, and me] | ||
[[Kategorie:Multimedia]] |
Aktuelle Version vom 13. August 2010, 13:44 Uhr
MediaTomb ist ein Open-Source UPnP Medienserver, der auch für die Playstation 3 verwendet werden kann.
Installation
Unter openSUSE gelingt die Installation am einfachsten über das Packman-Repository, wobei man sich entweder für ein MySQL- oder SQLite-Backend entscheiden muss. Die SQLite-Datenbank und die Konfigurationsdateien in /etc/mediatomb/ werden automatisch beim ersten Start mittels /etc/init.d/mediatomb erzeugt.
Wenn MediaTomb über das init-Script nicht startet, muss ggf. ein Link erzeugt werden:
ln -s /usr/bin/mediatomb-sqlite /usr/bin/mediatomb
Konfiguration
Die Konfigurationsdatei /etc/mediatomb.cfg dient einzig für den Start des Servers (z.B. TCP-Port). Die Konfiguration des eigentlichen Medienservers geschieht dann mittels /etc/mediatomb/config.xml.
Doku: http://mediatomb.cc/pages/documentation
config.xml
Für die Playstation 3 ist folgende Zeile im <server>-Abschnitt wichtig:
<protocolInfo extend="yes"/>
Beispiel:
<?xml version="1.0" encoding="UTF-8"?> <config xmlns="http://mediatomb.cc/0.10.0/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/0.10.0/config http://mediatomb.cc/0.10.0/config.xsd"> <server> <ui enabled="yes"> <accounts enabled="yes" session-timeout="30"> <account user="user" password="password"/> </accounts> </ui> <name>MediaTomb</name> <udn>uuid:396afd63-d64f-47d1-afe8-6f9f41c63ca4</udn> <home>/etc/mediatomb</home> <webroot>/usr/share/mediatomb/web</webroot> <storage driver="sqlite3"> <database-file>mediatomb.db</database-file> </storage> <protocolInfo extend="yes"/> </server> <import hidden-files="no"> <filesystem-charset>UTF-8</filesystem-charset> <metadata-charset>UTF-8</metadata-charset> <playlist-charset>UTF-8</playlist-charset> <scripting script-charset="UTF-8"> <common-script>/usr/share/mediatomb/js/common.js</common-script> <playlist-script>/usr/share/mediatomb/js/playlists.js</playlist-script> <virtual-layout type="builtin"> <import-script>/usr/share/mediatomb/js/import.js</import-script> </virtual-layout> </scripting> <mappings> <extension-mimetype ignore-unknown="no"> <map from="mp3" to="audio/mpeg"/> <map from="ogg" to="application/ogg"/> <map from="asf" to="video/x-ms-asf"/> <map from="asx" to="video/x-ms-asf"/> <map from="wma" to="audio/x-ms-wma"/> <map from="wax" to="audio/x-ms-wax"/> <map from="wmv" to="video/x-ms-wmv"/> <map from="wvx" to="video/x-ms-wvx"/> <map from="wm" to="video/x-ms-wm"/> <map from="wmx" to="video/x-ms-wmx"/> <map from="m3u" to="audio/x-mpegurl"/> <map from="pls" to="audio/x-scpls"/> <map from="avi" to="video/x-divx"/> <map from="mpg" to="video/mpeg"/> <map from="m2v" to="video/mpeg"/> <map from="gif" to="image/gif"/> <map from="jpg" to="image/jpeg"/> <map from="png" to="image/png"/> <map from="mp4" to="video/mp4"/> <map from="mp4a" to="video/mp4"/> <map from="m4v" to="video/mp4"/> <map from="3gp" to="video/3gpp"/> </extension-mimetype> <mimetype-upnpclass> <map from="audio/*" to="object.item.audioItem.musicTrack"/> <map from="application/ogg" to="object.item.audioItem.musicTrack"/> <map from="video/*" to="object.item.videoItem"/> <map from="image/*" to="object.item.imageItem"/> </mimetype-upnpclass> <mimetype-contenttype> <treat mimetype="audio/mpeg" as="mp3"/> <treat mimetype="application/ogg" as="ogg"/> <treat mimetype="audio/x-flac" as="flac"/> <treat mimetype="image/jpeg" as="jpg"/> <treat mimetype="audio/x-mpegurl" as="playlist"/> <treat mimetype="audio/x-scpls" as="playlist"/> </mimetype-contenttype> </mappings> </import> </config>
User-Interface
Doku: http://mediatomb.cc/pages/userinterface
Probleme
- Umlaute in EXIF-Tags von Bildern (ISO / UTF)
- Leerstellen (ggf. nur in Metadaten ?)