Gehe zu Seite: |vorherige| Erste Letzte

Samsung LED TV, DLNA, IB-, Taurus-, ALDI-NAS, Linux PC, MediaTomb und Serviio

+A -A
Autor
Beitrag
letzter3
Neuling
#51 erstellt: 10. Mrz 2011, 21:20

liab schrieb:
...

In der Datenbank mal mit Edit den Mimetyp überprüfen, bei avi video/mpeg.


container
title:video
class:object.container
liab
Inventar
#52 erstellt: 10. Mrz 2011, 23:10
So sollte es aussehen:

Title: AB-Der...avi
Location: grau unterlegt
Classobject.item.videoItem
Description:
Mimetype: video/mpeg

Du mußt im Web erst auf Filesystem gehen und dann die Dateien mit + (add) hinzufügen. Anschließend unter Datatbase kontrollieren, ggf. manuell anpassen.
letzter3
Neuling
#53 erstellt: 11. Mrz 2011, 00:42
Hatte dich mißverstanden.
Habe vorher über filesystem mein Testverzeichnis hinzugefügt.

Ein x-beliebiges avi-file sieht so aus:
MT02

Da der screeny irgendwie ziemlich klein ist: Alles wie bei dir, sollte also in Ordnung sein.

Michael


[Beitrag von letzter3 am 11. Mrz 2011, 00:43 bearbeitet]
liab
Inventar
#54 erstellt: 11. Mrz 2011, 03:17
Hast Du diese Version? MediaTomb UPnP Server version 0.12.1 - http://mediatomb.cc/
Dann sollte meine config.xlm bei Dir gehen.

Mal eine andere Videodatei testen.
letzter3
Neuling
#55 erstellt: 11. Mrz 2011, 10:17

[root@revo ~]# mediatomb --version

MediaTomb UPnP Server version 0.12.0 - http://mediatomb.cc/

===============================================================================
Copyright 2005-2008 Gena Batsyan, Sergey Bostandzhyan, Leonhard Wimmer.
MediaTomb is free software, covered by the GNU General Public License version 2

[root@revo ~]# mediatomb --compile-info
Compile info: host: x86_64-mandriva-linux-gnu; sqlite3: yes; mysql: missing libjs: yes; libmagic: yes; inotify: yes; libexif: yes; id3lib: disabled; taglib: yes; ffmpeg: yes; libmp4v2: missing; external transcoding: yes; curl: yes; YouTube: yes; SopCast: disabled; libextractor: disabled; db-autocreate: yes; debug log: yes; protocol info extensions: yes; data directory: /usr/share/mediatomb; ffmpegthumbnailer: missing
[root@revo ~]#


Ich werde mal deine config versuchen. Gibt es bekannte Probleme mit der 0.12.0, die mit version 0.12.1 behoben sind?

Michael
letzter3
Neuling
#56 erstellt: 11. Mrz 2011, 10:20
edit:
Das changelog macht mir nicht viel Hoffnung:


v0.12.1 08.04.2010
* fixed YouTube service support (got broken after they updated their
website)
* fixed a problem in soap response http headers (solves "access error"
on Yamaha RX-V2065)
* turned out the change log for 0.12.0 was not complete (various
closed bugs were not mentioned)
* fixed automatic id3lib detection when taglib is not available
liab
Inventar
#57 erstellt: 12. Mrz 2011, 06:42
Hatte ursprünglich auch mal die version 0.12.0, damit ging es aber auch. Meine mich nur zu erinnern, daß die config.xml zwar ähnlich, aber nicht kompatibel ist. Auch die Datenbank paßt nicht.

Wie man die version 0.12.1 installiert habe ich auf der ersten Seite beschrieben, man muß halt kompilieren, was einige Zusatzpakete erfordert.

Habe mal Deine config.xml probiert. Wie ich schon sagte, da muß ich zuviel ändern, damit sie bei mir geht. Mir ist aber aufgefallen,
daß bei Deiner config. xml die <custom-http-headers> auskommentiert sind!
Das sieht man mit Kate an der kursiven Darstellung. Ändere das bitte, sonst wird es nie gehen.


[Beitrag von liab am 12. Mrz 2011, 17:00 bearbeitet]
liab
Inventar
#58 erstellt: 12. Mrz 2011, 07:05
Die Auskommentierung kannst Du so belassen und dahinter dies setzen, vor server:

<custom-http-headers>
<add header="transferMode.dlna.org: Streaming"/>
<add header="contentFeatures.dlna.org: DLNA.ORG_OP=01"/>
</custom-http-headers>


[Beitrag von liab am 12. Mrz 2011, 07:07 bearbeitet]
letzter3
Neuling
#59 erstellt: 12. Mrz 2011, 22:00
Ich habe gerade gesehen, das in den Mandriva-backports die 0.12.1 verfügbar ist.
Ich werde mal mit der weitertesten, allerdings nicht mehr heute.

Michael
letzter3
Neuling
#60 erstellt: 13. Mrz 2011, 13:03
Also mit der 0.12.1 und den Änderungen in der config.xml läuft es super.
Jetzt noch die ganzen Feineinstellungen und ich bin glücklich.

Vielen Dank für die Hilfe!

Michael
letzter3
Neuling
#61 erstellt: 20. Mrz 2011, 12:36
Ich habe ein DVD-Iso, welches ich gerne abspielen möchte (am liebsten mit allen Menüs).
Der Eintrag <map from="iso" to="video/mpeg"/> in der mapping-section zeigt mir zwar das iso auf dem Fernseher an, aber abspielen kann ich es nicht (unbekanntes oder nicht unterstütztes Dateiformat).

Gibt es dafür eine Lösung?

Michael
liab
Inventar
#62 erstellt: 20. Mrz 2011, 16:35
Stehen die auch in der Datenbank (mediatomb.db) auf video/mpeg? Kopiergeschützte DVD's (sind heute fast alle) können Probleme machen. Am besten gehen die, die z.B. mit dem WinDVD-Creator erstellt wurden.
letzter3
Neuling
#63 erstellt: 20. Mrz 2011, 17:25
Das kann ich leider nicht nachprüfen, da:

Die Seite auf 192.168.0.11:50500 says:
MediaTomb cannot be reached! Please check if the server is still running.


Der Server läuft aber, ich kann avi's und mpg's schauen und die Weboberfläche ist bedienbar (mit Ausnahme der edit-Schaltfläche auf allen Ebenen). Eine firewall läuft momentan nicht.
Grummel

An den iso's als solche kann es nicht liegen, da das entpackte iso als DVD-Struktur abspielbar ist.

Aber vllt. kannst du mir erstmal helfen, das obige Problem zu lösen?

Michael
letzter3
Neuling
#64 erstellt: 20. Mrz 2011, 18:46
Oha, der Fehler liegt an Chromium. Mit firefox, konqueror funktioniert der Zugriff.

Michael
letzter3
Neuling
#65 erstellt: 21. Mrz 2011, 15:10
Habe nochmal nachgeschaut, im Browser steht bei den ISO's
class: object.item.videoItem
Mimetype: video/mpeg

Allerdings kann ich auch keine mpg's abspiele,obwohl der Typ in meiner config.xls hinterlegt ist.

<?xml version="1.0" encoding="UTF-8"?>
<config version="2" xmlns="http://mediatomb.cc/config/2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/config/2 http://mediatomb.cc/config/2.xsd\">
<server>
<ui enabled="yes" show-tooltips="yes">
<accounts enabled="no" session-timeout="30">
<account user="mediatomb" password="mediatomb"/>
</accounts>
</ui>
<name>MediaTomb</name>
<udn>uuid:b10228d0-e766-4578-abd8-9eccdb8d646d</udn>
<home>/etc/mediatomb</home>
<webroot>/usr/share/mediatomb/web</webroot>
<storage>
<sqlite3 enabled="yes">
<database-file>mediatomb.db</database-file>
</sqlite3>
</storage>
<protocolInfo extend="yes"/><!-- For PS3 support change to "yes" -->
<!--
Uncomment the lines below to get rid of jerky avi playback on the
DSM320 or to enable subtitles support on the DSM units
-->
<!--
<custom-http-headers>
<add header="X-User-Agent: redsonic"/>
</custom-http-headers>

<manufacturerURL>redsonic.com</manufacturerURL>
<modelNumber>105</modelNumber>
-->
<!-- Uncomment the line below if you have a Telegent TG100 -->
<!--
<upnp-string-limit>101</upnp-string-limit>
-->
<extended-runtime-options>
<mark-played-items enabled="no" suppress-cds-updates="yes">
<string mode="prepend">*</string>
<mark>
<content>video</content>
</mark>
</mark-played-items>
</extended-runtime-options>
<custom-http-headers>
<add header="transferMode.dlna.org: Streaming"/>
<add header="contentFeatures.dlna.org: DLNA.ORG_OP=01"/>
</custom-http-headers>
<extended-runtime-options>
<ffmpegthumbnailer enabled="yes">
<thumbnail-size>128</thumbnail-size>
<seek-percentage>5</seek-percentage>
<filmstrip-overlay>yes</filmstrip-overlay>
<workaround-bugs>no</workaround-bugs>
</ffmpegthumbnailer>
<mark-played-items enabled="no" suppress-cds-updates="yes">
<string mode="prepend">*</string>
</mark-played-items>
</extended-runtime-options>
</server>
<import hidden-files="no">
<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="mp2t" to="video/mpeg"/>
<map from="ts" to="video/mpeg"/>
<map from="tse" to="video/tse"/>
<map from="tsf" to="video/tsf"/>
<map from="mpg" to="video/mpeg"/>
<map from="avi" to="video/mpeg"/>
<map from="mkv" to="video/mpeg"/>
<map from="mp4" to="video/mpeg"/>
<map from="m2t" to="video/mpeg"/>
<map from="vob" to="video/mpeg"/>
<map from="iso" to="video/mpeg"/>
<map from="jpg" to="image/jpeg"/>
<map from="jpeg" to="image/jpeg"/>
<map from="avi" to="video/mpeg"/>
<map from="iso" to="video/mpeg"/>
<map from="mp3" to="audio/mpeg"/>
<map from="ogx" to="application/ogg"/>
<map from="ogv" to="video/ogg"/>
<map from="oga" to="audio/ogg"/>
<map from="ogg" to="audio/ogg"/>
<map from="ogm" to="video/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="flv" to="video/x-flv"/>
<map from="mkv" to="video/x-matroska"/>
<map from="mka" to="audio/x-matroska"/>
<!-- Uncomment the line below for PS3 divx support -->
<!-- <map from="avi" to="video/divx"/> -->
<!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 -->
<!-- <map from="avi" to="video/avi"/> -->
</extension-mimetype>
<mimetype-upnpclass>
<map from="audio/*" 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"/>
<treat mimetype="audio/x-wav" as="pcm"/>
<treat mimetype="audio/L16" as="pcm"/>
<treat mimetype="video/x-msvideo" as="avi"/>
<treat mimetype="video/mp4" as="mp4"/>
<treat mimetype="audio/mp4" as="mp4"/>
<treat mimetype="application/x-iso9660" as="dvd"/>
<treat mimetype="application/x-iso9660-image" as="dvd"/>
</mimetype-contenttype>
</mappings>
<online-content>
<YouTube enabled="no" refresh="28800" update-at-start="no" purge-after="604800" racy-content="exclude" format="mp4" hd="no">
<favorites user="mediatomb"/>
<standardfeed feed="most_viewed" time-range="today"/>
<playlists user="mediatomb"/>
<uploads user="mediatomb"/>
<standardfeed feed="recently_featured" time-range="today"/>
</YouTube>
</online-content>
</import>
<transcoding enabled="no">
<mimetype-profile-mappings>
<transcode mimetype="video/x-flv" using="vlcmpeg"/>
<transcode mimetype="application/ogg" using="vlcmpeg"/>
<transcode mimetype="application/ogg" using="oggflac2raw"/>
<transcode mimetype="audio/x-flac" using="oggflac2raw"/>
</mimetype-profile-mappings>
<profiles>
<profile name="oggflac2raw" enabled="no" type="external">
<mimetype>audio/L16</mimetype>
<accept-url>no</accept-url>
<first-resource>yes</first-resource>
<accept-ogg-theora>no</accept-ogg-theora>
<agent command="ogg123" arguments="-d raw -o byteorder:big -f %out %in"/>
<buffer size="1048576" chunk-size="131072" fill-size="262144"/>
</profile>
<profile name="vlcmpeg" enabled="no" type="external">
<mimetype>video/mpeg</mimetype>
<accept-url>yes</accept-url>
<first-resource>yes</first-resource>
<accept-ogg-theora>yes</accept-ogg-theora>
<agent command="vlc" arguments="-I dummy %in --sout #transcode{venc=ffmpeg,vcodec=mp2v,vb=4096,fps=25,aenc=ffmpeg,acodec=mpga,ab=192,samplerate=44100,channels=2}:standard{access=file,mux=ps,dst=%out} vlc:quit"/>
<buffer size="14400000" chunk-size="512000" fill-size="120000"/>
</profile>
</profiles>
</transcoding>
</config>


Muss ich dafür das transcoding aktivieren?

Michael
liab
Inventar
#66 erstellt: 21. Mrz 2011, 16:21
Hallo Michael, transcodieren muß man nur bei einigen flv's. Deine config.xml ist ok, sie funktioniert bei mir.

Lassen sich die Dateien denn bei Dir auf dem PC abspielen mit kaffeine, dragon oder vlc? Evt. fehlt bei Dir die ffmpeg codec library.

Gruß liab
letzter3
Neuling
#67 erstellt: 21. Mrz 2011, 20:39
Hallo liab,

[root@revo mediatomb]# [root@revo mediatomb]# urpme ffmp -a --test
Um die Abhängigkeiten zu erfüllen, werden die folgenden 11 Pakete entfernt (17MB):
ffmpeg-0.6-0.22960.5plf2010.1.x86_64
ffmpeg2theora-0.25-1mdv2010.1.x86_64
ffmpegthumbnailer-2.0.1-1mdv2010.1.x86_64
ffmpegthumbs-4.4.3-7mdv2010.1.x86_64
gstreamer0.10-ffmpeg-0.10.10-2mdv2010.1.x86_64
lib64ffmpeg52-0.6-0.22960.5plf2010.1.x86_64
lib64ffmpegthumbnailer4-2.0.1-1mdv2010.1.x86_64


Das sind die ffmpeg-codecs, welche ich installiert habe.
VLC muss ich mal rumprobieren, auf dem Rechner ist kein X installiert, von daher tu ich mich mit der Grafikausgabe etwas schwer :-)

Die entsprechenden vob-files hab ich mal testweise über mediatomb gestreamt, das funktioniert.

Michael


[Beitrag von letzter3 am 21. Mrz 2011, 21:29 bearbeitet]
liab
Inventar
#68 erstellt: 21. Mrz 2011, 21:38
Hallo Michael, wenn er vob's spielt, sollten auch mpg und iso gehen. Wie ich schon sagte, kann es bei iso's Probleme geben. Bei mir wurden bisher alle iso's gespielt, nur fehlte bei einigen beim Hauptfilm der Ton. Die müssen dann nochmal bearbeitet und neu verpackt werden.

Gruß liab
liab
Inventar
#69 erstellt: 26. Mrz 2011, 05:17
Wer die Vorschaubildchen liebt, sollte MediaTomb mit
configure --enable-sqlite3 --enable-ffmpegthumbnailer
konfigurieren. Dazu braucht man die Pakete libffmpegthumbnailer-dev und libavdevice-dev. In der config.xml das "yes" bei ffmpegthumbnailer nicht vergessen.

Das Forumsmitglied Stardust79 brachte mich auf die Idee, auch mal Serviio zu testen. Für Linux braucht man noch die Pakete java, libcanberra-gtk-module und ffmpeg (sollte schon vorhanden sein). Serviio mit serviio.sh starten und dann serviio-console.sh. Mit letzterem wird die Datenbank eingerichtet.
http://www.serviio.org/download

Es läuft auch sehr gut, schöne Vorschau, spielt alle meine Formate - auch mkv - und spult (aber kein Vergleich zur USB-HD). Nachteil zu MediaTomb, spielt kein iso, asx (ARD MediaThek) muß man in avi umbenennen. Vorteil es spult auch beim Transkodieren.

Ich kann es empfehlen, probiert es mal. Gibt es auch für Windows!
Beide Programme spielen auch HD-Filme störungsfrei über DLNA ab.


[Beitrag von liab am 27. Mrz 2011, 05:05 bearbeitet]
djbobo
Neuling
#70 erstellt: 11. Apr 2011, 19:45
Tach,

so, ich habe jetzt viel gelesen und ausprobiert und trotzdem keine Lösung

Nutze Mediatomb 0.12.1 unter Kubuntu 10.10, 64 Bit und hab nen Samsung UE46C7700 mit Softwareversion 2011/01/06_003006.

Was total super funktioniert, ist fertige MPEG Filme zu streamen, was ich aber möchte, ist Sopcast zu streamen und dabei zu transkodieren.

Vorab - nutze ich meine PS3 als Streaming-Client ist alles tutti - funkt super.

Aber ich möchte es natürlich direkt über den Fernseher streamen.

Er findet Mediatomb und es kommt auch kein "unbekanntes Dateiformat". Vielmehr sehe ich die "Eieruhr" und es dauert ein Bisserl und dann sehe ich wieder die Auswahl an Streams auf Mediatomb.

Sprich, der scheint anzufangen zu puffern und das sehe ich auch im Mediatomb und bevor das erste Bild kommt, beendet der das Abspielen und kehrt zur Auswahl zurück.

Habt Ihr eine Idee? Ich habe gesehen, dass auch andere dieses Problem schon mal hatten, aber eine Lösung habe ich nicht.

Thx
Markus

PS: hier mein config.xml
PPS: ich habs auch schon mit ORG_OP=00 probiert und mit 00 und 01 auch ohne den ganzen Sermon dahinter...




<?xml version="1.0" encoding="UTF-8"?>
<config version="2" xmlns="http://mediatomb.cc/config/2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/config/2 http://mediatomb.cc/config/2.xsd\"><!--
Read /usr/share/doc/mediatomb-common/README.gz section 6 for more
information on creating and using config.xml configration files.
-->
<server>
<ui enabled="yes" show-tooltips="yes">
<accounts enabled="no" session-timeout="30">
<account user="mediatomb" password="mediatomb"/>
</accounts>
</ui>
<name>MediaTomb</name>
<udn>uuid:0170e7d7-4e49-48f6-97d6-673093d96ee8</udn>
<home>/home/mark/.mediatomb</home>
<webroot>/usr/share/mediatomb/web</webroot>
<storage>
<sqlite3 enabled="yes">
<database-file>mediatomb.db</database-file>
</sqlite3>
<mysql enabled="no">
<host>localhost</host>
<username>mediatomb</username>
<database>mediatomb</database>lavcresample
</mysql>
</storage>
<protocolInfo extend="yes"/>
<!--
Uncomment the lines below to get rid of jerky avi playback on the
DSM320 or to enable subtitles support on the DSM units
-->
<custom-http-headers>
<!-- Samsung needs it -->
<add header="transferMode.dlna.org: Streaming"/>
<add header="contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000"/>
</custom-http-headers>


<manufacturerURL>redsonic.com</manufacturerURL>
<modelNumber>105</modelNumber>
<extended-runtime-options>
<ffmpegthumbnailer enabled="no">
<thumbnail-size>128</thumbnail-size>
<seek-percentage>5</seek-percentage>
<filmstrip-overlay>yes</filmstrip-overlay>
<workaround-bugs>no</workaround-bugs>
</ffmpegthumbnailer>
<mark-played-items enabled="no" suppress-cds-updates="yes">
<string mode="prepend">*</string>
</mark-played-items>
</extended-runtime-options></server>
<import hidden-files="no">
<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>
<dvd-script>/usr/share/mediatomb/js/import-dvd.js</dvd-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="flv" to="video/x-flv"/>
<map from="mkv" to="video/x-matroska"/>
<map from="mka" to="audio/x-matroska"/>
<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="mkv" to="video/x-matroska"/>
<map from="mts" to="video/mpeg"/>
<map from="ts" to="video/mpeg"/>
<map from="m2ts" to="video/mpeg"/>
<map from="mov" to="video/x-quicktime"/>
<map from="vob" to="video/mpeg"/>
<map from="m4v" to="video/mp4"/>
<map from="avi" to="video/divx"/><!-- Uncomment the line below for PS3 divx support --><!-- <map from="avi" to="video/divx"/> --><!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 --><!-- <map from="avi" to="video/avi"/> -->
</extension-mimetype>
<mimetype-upnpclass>
<map from="audio/*" 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"/>
<treat mimetype="audio/x-wav" as="pcm"/>
<treat mimetype="audio/L16" as="pcm"/>
<treat mimetype="video/x-msvideo" as="avi"/>
<treat mimetype="video/mp4" as="mp4"/>
<treat mimetype="video/x-mkv" as="mkv"/>
<treat mimetype="audio/mp4" as="mp4"/>
<treat mimetype="application/x-iso9660" as="dvd"/>
<treat mimetype="application/x-iso9660-image" as="dvd"/>
<treat mimetype="video/quicktime" as="mov"/>
<treat mimetype="video/x-quicktime" as="mov"/>
</mimetype-contenttype>
</mappings>
<online-content><!-- Make sure to setup a transcoding profile for flv -->
<YouTube enabled="no" refresh="28800" update-at-start="no" purge-after="604800" racy-content="exclude" format="flv" hd="no">
<favorites user="mediatomb"/>
<standardfeed feed="most_viewed" time-range="today"/>
<playlists user="mediatomb"/>
<uploads user="mediatomb"/>
<standardfeed feed="recently_featured" time-range="today"/>
</YouTube>
<Weborama enabled="no" refresh="28800" update-at-start="no">
<playlist name="Active" type="playlist" mood="active"/>
<playlist name="Metal" type="playlist">
<filter>
<genres>metal</genres>
</filter>
</playlist>
</Weborama>
<AppleTrailers enabled="yes" refresh="43200" update-at-start="no" resolution="640"/>
<SopCast enabled="yes" refresh="43200" purge-after="50000" update-at-start="yes"/>
</online-content>
</import>
<transcoding enabled="yes">
<mimetype-profile-mappings>
<transcode mimetype="video/x-flv" using="mencodermpeg"/>
<transcode mimetype="application/ogg" using="mencodermpeg"/>
<transcode mimetype="application/ogg" using="oggflac2raw"/>
<transcode mimetype="audio/x-flac" using="oggflac2raw"/>
<transcode mimetype="application/ogg" using="audio-generic"/>
<transcode mimetype="audio/x-flac" using="audio-generic"/>
<transcode mimetype="video/x-ms-asf" using="video-generic"/>
<transcode mimetype="video/x-flv" using="video-generic"/>
<transcode mimetype="video/x-matroska" using="video-generic"/>
<transcode mimetype="video/x-quicktime" using="video-generic"/>
<transcode mimetype="video/quicktime" using="video-generic"/>
<transcode mimetype="video/sopcast-x-ms-wmv" using="mencodermpeg"/>
</mimetype-profile-mappings>
<profiles>
<profile name="audio-generic" enabled="yes" type="external">
<mimetype>audio/L16</mimetype>
<first-resource>yes</first-resource>
<accept-url>yes</accept-url>
<sample-frequency>44100</sample-frequency>
<audio-channels>2</audio-channels>
<hide-original-resource>yes</hide-original-resource>
<agent command="ffmpeg" arguments="-ac 2 -ar 44100 -y -i %in -f s16be %out"/>
<buffer size="1048576" chunk-size="4096" fill-size="1024"/>
</profile>
<profile name="video-generic" enabled="yes" type="external">
<avi-fourcc-list mode="ignore">
<fourcc>DX50</fourcc>
<fourcc>DM4V</fourcc>
<fourcc>M4S2</fourcc>
</avi-fourcc-list>
<mimetype>video/mpeg</mimetype>
<accept-url>yes</accept-url>
<first-resource>yes</first-resource>
<hide-original-resource>yes</hide-original-resource>
<accept-ogg-theora>yes</accept-ogg-theora>
<agent command="/usr/local/bin/mediatomb-video-generic" arguments="%in %out"/>
<buffer size="1048576" chunk-size="26214" fill-size="52428"/>
</profile>
<profile name="oggflac2raw" enabled="yes" type="external">
<mimetype>audio/L16</mimetype>
<accept-url>no</accept-url>
<first-resource>yes</first-resource>
<accept-ogg-theora>no</accept-ogg-theora>
<agent command="ogg123" arguments="-d raw -o byteorder:big -f %out %in"/>
<buffer size="1048576" chunk-size="131072" fill-size="262144"/>
</profile>
<profile name="mencodermpeg" enabled="yes" type="external">
<mimetype>video/mpeg</mimetype>
<accept-url>yes</accept-url>
<first-resource>yes</first-resource>
<accept-ogg-theora>yes</accept-ogg-theora>
<agent command="mencoder" arguments="%in -oac lavc -ovc lavc -fps 25 -srate 48000 -af lavcresample=48000 -of mpeg -lavcopts vcodec=mpeg2video:keyint=1:vbitrate=200000:vrc_maxrate=9800:vrc_buf_size=1835 -mpegopts muxrate=12000 -vf harddup -o %out"/>
<buffer size="14400000" chunk-size="512000" fill-size="120000"/>
</profile>

</profiles>
</transcoding>
</config>


[Beitrag von djbobo am 11. Apr 2011, 19:47 bearbeitet]
liab
Inventar
#71 erstellt: 11. Apr 2011, 20:57
Wenn MT transkodieren soll, muß DLNA.ORG_OP=00 sein. Habe ich hier aber schon erwähnt. Ist übrigens nur in Verbindung mit dem Samsung so.
Diese Einträge genügen dort:

<custom-http-headers>
<add header="transferMode.dlna.org: Streaming"/>
<add header="contentFeatures.dlna.org: DLNA.ORG_OP=00"/>
</custom-http-headers>

Damit dann Pause wieder geht, sollte noch eine Änderung in der action_request.cc vogenommen werden, s.b. Beitrag #17 und neu compiliert werden.
djbobo
Neuling
#72 erstellt: 12. Apr 2011, 19:04
Hoi,

danke für die Antwort... Ich war 100% sicher, dass ich das schon probiert hatte... vermutlich wahrscheinlich, bevor ich von VLC auf mencoder umgestellt hatte... (mit VLC hats nämlich nicht gefunkt)

Klappt auf jeden Fall...

Allerdings fängt das nun total an zu laggen nach einiger Zeit... nur aufm Samsung, nicht auf der PS3... irgendne Idee?

Thx
Markus
liab
Inventar
#73 erstellt: 13. Apr 2011, 00:18
Ist die Netzwerkverbindung zum Samsung ok? WLAN ist z.B. nicht empfehlenswert.

Evt. mal in der config.xml im Transkodierprofil die buffer Werte erhöhen.


[Beitrag von liab am 13. Apr 2011, 00:21 bearbeitet]
djbobo
Neuling
#74 erstellt: 13. Apr 2011, 18:37
Hoi,

Mediatomb geht via WLAN, Samsung via Kabel direkt an WLAN Switch.

Das mit dem Buffer probiere ich mal aus

Thx
Markus
djbobo
Neuling
#75 erstellt: 27. Apr 2011, 21:50
Hoi,

mit


<buffer size="51200000" chunk-size="512000" fill-size="5120000"/>


scheint es nun zu funktionieren...

Danke für den Tipp

Markus
liab
Inventar
#76 erstellt: 27. Apr 2011, 23:44
Um diese Riesen HD mkv's von tvheadend zu spielen, mußte ich für den mencoder den Wert noch höher setzen. Beim Transcodieren mit vlc konnten sie normal bleiben. Nur so werden bei mir die mit tvheadend aufgenommenen Testvideos von Einsfestival HD fehlerfrei abgespielt. Beim vlc gibt es gelegentlich kleine Zeilenstörungen, beim mencoder ist alles fehlerfrei.

<agent command="mencoder" arguments="%in -oac lavc -ovc lavc -of mpeg -lavcopts vcodec=mpeg2video:keyint=1:vbitrate=200000:vrc_maxrate=36000:vrc_buf_size=1835 -mpegopts muxrate=12000 -vf harddup -o %out"/>
<buffer size="1440000000" chunk-size="512000" fill-size="120000"/>
djbobo
Neuling
#77 erstellt: 28. Apr 2011, 19:37
Hoi,

ich hatte das auch noch größer eingestellt, aber da ist der mir abgeraucht... Genaue Einstellungen weiss ich nicht mehr.

Aber jetzt, wo Du es schreibst - ich hab mich über die Fillsize gewundert, die kleiner ist, als die Chunk-Size...
Ist doch beides in Byte oder?

Grüße
Markus
liab
Inventar
#78 erstellt: 28. Apr 2011, 23:14
Der Riesenwert hatte mich auch verwundert, sind doch immerhin 1,4 GB. War speziell eine Testdatei, die das brauchte, sonst kam alle naslang oben rechts die Nachlademeldung WG. An chunk und fill hatte ich auch gedreht, aber ohne Erfolg.

Die Werte für chunk und fill habe ich von irgendwo übernommen. Im MediaTomb README steht es so:

<buffer size="1048576" chunk-size="131072" fill-size="262144"/>

Required
These settings help you to achieve a smooth
playback of transcoded media. The actual values
need to be tuned and depend on the speed of your
system. The general idea is to buffer the data
before sending it out to the player, it is also
possible to delay first playback until the buffer
is filled to a certain amount. The prefill should
give you enough space to overcome some high
bitrate scenes in case your system can not
transcode them in real time.
#
size=...

Required
Size of the buffer in bytes.
#
chunk-size=...

Required
Size of chunks in bytes, that are read by
the buffer from the transcoder. Smaller
chunks will produce a more constant buffer
fill ratio, however too small chunks may
slow things down.
#
fill-size=...

Required
Initial fill size - number of bytes that
have to be in the buffer before the first
read (i.e. before sending the data to the
player for the first time). Set this to 0
(zero) if you want to disable prefilling.
miftner
Neuling
#79 erstellt: 24. Mai 2011, 17:33
Also ich bin echt am verzweifeln, habe mir den Thread durchgelesen und auch die änderungen an der Config vorgenommen, jedoch weigert sich mein Samsung immer noch, Musik oder Filem abzuspielen. Der Fehler ist immernoch Dateiformat nicht unterstützt

Meine Config sieht im Moment so aus:
<?xml version="1.0" encoding="UTF-8"?>
<config version="2" xmlns="http://mediatomb.cc/config/2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/config/2 http://mediatomb.cc/config/2.xsd\">
<!--
Read /usr/share/doc/mediatomb-common/README.gz section 6 for more
information on creating and using config.xml configration files.
-->
<server>
<ui enabled="yes" show-tooltips="yes">
<accounts enabled="no" session-timeout="30">
<account user="mediatomb" password="mediatomb"/>
</accounts>
</ui>
<name>MediaTomb</name>
<udn>uuid:9fcf13d6-e769-4584-ade7-cfb0018faf80</udn>
<home>/home/iffi/.mediatomb</home>
<webroot>/usr/share/mediatomb/web</webroot>
<storage>
<sqlite3 enabled="yes">
<database-file>mediatomb.db</database-file>
</sqlite3>
<mysql enabled="no">
<host>localhost</host>
<username>mediatomb</username>
<database>mediatomb</database>
</mysql>
</storage>
<protocolInfo extend="yes"/><!-- For PS3 support change to "yes" -->
<!--
Uncomment the lines below to get rid of jerky avi playback on the
DSM320 or to enable subtitles support on the DSM units
-->
<!--
<custom-http-headers>
<add header="X-User-Agent: redsonic"/>
</custom-http-headers>

<manufacturerURL>redsonic.com</manufacturerURL>
<modelNumber>105</modelNumber>
-->
<!-- Uncomment the line below if you have a Telegent TG100 -->
<!--
<upnp-string-limit>101</upnp-string-limit>
-->
<extended-runtime-options>
<ffmpegthumbnailer enabled="yes">
<thumbnail-size>128</thumbnail-size>
<seek-percentage>5</seek-percentage>
<filmstrip-overlay>yes</filmstrip-overlay>
<workaround-bugs>no</workaround-bugs>
<image-quality>8</image-quality>
</ffmpegthumbnailer>
<mark-played-items enabled="no" suppress-cds-updates="yes">
<string mode="prepend">*</string>
<mark>
<content>video</content>
</mark>
</mark-played-items>
<custom-http-headers>
<add header="transferMode.dlna.org: Streaming"/>
<add header="contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000" />
</custom-http-headers>
</extended-runtime-options>
</server>
<import hidden-files="no">
<scripting script-charset="UTF-8">
<virtual-layout type="builtin"/>
</scripting>
<mappings>
<extension-mimetype ignore-unknown="no">
<map from="mp3" to="audio/mpeg"/>
<map from="ogx" to="application/ogg"/>
<map from="ogv" to="video/ogg"/>
<map from="oga" to="audio/ogg"/>
<map from="ogg" to="audio/ogg"/>
<map from="ogm" to="video/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="flv" to="video/flv"/>
<!-- <map from="mkv" to="video/x-matroska"/> -->
<map from="mka" to="audio/x-msvideo"/>
<!--neu von mir -->
<map from="avi" to="video/x-msvideo"/>
<map from="ts" to="video/mpeg"/>
<map from="divx" to="video/mpeg"/>
<map from="mp4" to="video/MP4V-ES"/>
<map from="mkv" to="video/x-msvideo"/>
<!-- Uncomment the line below for PS3 divx support -->
<!-- <map from="avi" to="video/divx"/> -->
<!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 -->
<!-- <map from="avi" to="video/avi"/> -->
</extension-mimetype>
<mimetype-upnpclass>
<map from="audio/*" to="object.item.audioItem.musicTrack"/>
<map from="video/*" to="object.item.videoItem"/>
<map from="image/*" to="object.item.imageItem"/>
<map from="application/ogg" to="object.item.audioItem.musicTrack"/>
</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"/>
<treat mimetype="audio/x-wav" as="pcm"/>
<treat mimetype="audio/L16" as="pcm"/>
<treat mimetype="video/x-msvideo" as="avi"/>
<treat mimetype="video/mp4" as="mkv"/>
<treat mimetype="audio/mp4" as="mkv"/>
<treat mimetype="application/x-iso9660" as="dvd"/>
<treat mimetype="application/x-iso9660-image" as="dvd"/>
<treat mimetype="video/x-matroska" as="mkv"/>
<treat mimetype="audio/x-matroska" as="mka"/>
</mimetype-contenttype>
</mappings>
<online-content>
<YouTube enabled="no" refresh="28800" update-at-start="no" purge-after="604800" racy-content="exclude" format="mp4" hd="no">
<favorites user="mediatomb"/>
<standardfeed feed="most_viewed" time-range="today"/>
<playlists user="mediatomb"/>
<uploads user="mediatomb"/>
<standardfeed feed="recently_featured" time-range="today"/>
</YouTube>
</online-content>
</import>
<transcoding enabled="yes">
<mimetype-profile-mappings>
<transcode mimetype="video/flv" using="vlcmpeg"/>
<transcode mimetype="application/ogg" using="vlcmpeg"/>
<transcode mimetype="application/ogg" using="oggflac2raw"/>
<transcode mimetype="audio/x-flac" using="oggflac2raw"/>
<transcode mimetype="video/x-msvideo" using="vlcmpeg"/>
</mimetype-profile-mappings>
<profiles>
<profile name="oggflac2raw" enabled="yes" type="external">
<mimetype>audio/L16</mimetype>
<accept-url>no</accept-url>
<first-resource>yes</first-resource>
<accept-ogg-theora>yes</accept-ogg-theora>
<agent command="ogg123" arguments="-d raw -o byteorder:big -f %out %in"/>
<buffer size="1048576" chunk-size="131072" fill-size="262144"/>
</profile>
<profile name="vlcmpeg" enabled="yes" type="external">
<mimetype>video/mpeg</mimetype>
<accept-url>yes</accept-url>
<first-resource>yes</first-resource>
<accept-ogg-theora>yes</accept-ogg-theora>
<agent command="vlc" arguments="-I dummy %in --sout #transcode{venc=ffmpeg,vcodec=mp2v,vb=4096,fps=25,aenc=ffmpeg,acodec=mpga,ab=192,samplerate=44100,channels=2}:standard{access=file,mux=ps,dst=%out} vlc:quit"/>
<buffer size="14400000" chunk-size="512000" fill-size="120000"/>
</profile>
</profiles>
</transcoding>
</config>


Ich weiß echt nicht, was ich noch machen könnte, er spielt weder mkv,mp3,mp4,avi noch flv ab

Wäre nice, wenn einer den Fehler entdecken könnte
liab
Inventar
#80 erstellt: 24. Mai 2011, 20:30
Deine config.xml geht bei mir auch nicht. Der Fehler liegt vor mappings. Wenn ich bis mappings meine Werte einsetze geht sie. Habe im Moment leider keine Zeit, die fehlerhafte Zeile zu suchen. Aber hier stehen doch Beispiele der config.xml
miftner
Neuling
#81 erstellt: 24. Mai 2011, 23:04
Habs jetzt mit einem config hier zum laufen gebracht, mkv geht auch, nur avi's lassen sich nicht spulen
Kann man das einstellen oder muss ich damit leben?
Wegen transkodieren, hab nen quadcore mit 12Gb ram als server, das sollte ausreichen.

Gibt es eine möglichkeit, eine dts tonspur einer mkv datei zu transkodieren, da mein samsung diese nicht abspielen kann?


[Beitrag von miftner am 24. Mai 2011, 23:37 bearbeitet]
liab
Inventar
#82 erstellt: 24. Mai 2011, 23:54
Habe den Fehler gefunden. Die Sektion custom-http-headers (wichtigster DLNA-Eintrag) ist falsch! Er steht bei Dir innerhalb der Sektion <extended-runtime-options>, da kann es nicht gehen. So wäre es richtig:

<upnp-string-limit>101</upnp-string-limit>
-->
<custom-http-headers>
<add header="transferMode.dlna.org: Streaming"/>
<add header="contentFeatures.dlna.org: DLNA.ORG_OP=00"/>
</custom-http-headers>
<extended-runtime-options>
<ffmpegthumbnailer enabled="yes">

Spulen geht mit den Tasten rechts/links, OK = Pause. Ein perfektes Spulen gibt es bei DLNA nicht. Bei einigen Dateiformaten geht es einigermaßen, bei anderen mehr schlecht als recht. Bei DLNA.ORG_OP=01, geht Spulen auch nicht. Es wird aber zum Transcodieren gebraucht, steht aber alles hier. Man macht sich am besten ein Startprogramm mit Auswahl verschiedener config.xml's.

Wenn Du MediaTomb in der Konsole gestartet hättest, hättest Du gesehen, daß bei Dir dies fehlt:

2011-05-24 23:34:49 INFO: Adding HTTP header "transferMode.dlna.org: Streaming"
2011-05-24 23:34:49 INFO: Adding HTTP header "contentFeatures.dlna.org: DLNA.ORG_OP=00"
krawutke
Schaut ab und zu mal vorbei
#83 erstellt: 28. Aug 2011, 11:56
So ich hänge mich mal hin
Besteht beim Mediatomb auch die Möglichkeit, dass Filme an der Stelle weiter spielen, wo man sie das letzte Mal beendet hat? Wenn ich per USB-Stick am Fernseher schaue, klappt das ja problemlos. Bei Mediatomb leider nicht.
liab
Inventar
#84 erstellt: 28. Aug 2011, 13:17
DLNA sieht das nicht vor, nur lesend, nicht schreibend!
krawutke
Schaut ab und zu mal vorbei
#85 erstellt: 28. Aug 2011, 13:53
OK, dann macht das wohl beim USB-Stick der Fernseher. Danke!
sr4003
Stammgast
#86 erstellt: 01. Nov 2011, 00:06
Edit am Anfang:

Ich denke die config wie unten zitiert, ist schon ok. Man muss auf jeden Fall die Mediatomb-DB aktualisieren. Vermutlich kann man das besser machen, ich habe einfach eine andere Option beim Indizieren gewählt und dann noch einmal die, die ich hatte.

H264 im mkv-Container kann also abgespielt werden.

Original-Posting:

Dank dieses Threads bin ich mit mediatomb einiges weiter. Der LG spielt die Videos brav mit der Default-Konfiguration, der Samsung PS51D6900DSXZG spielt mit der Default-Konfiguration gar nichts, aber mittlerweile mit u.a. Konfiguration mp3 und zeigt jpg-Fotos an. Beim H264 kodierten Videos im mkv-Container kommt die berüchtigte Meldung "Nicht unterstütztes Dateiformat" und ich vermute, es liegt am mapping, denn vorher funktionierte ohne "<custom-http-headers>" gar kein Format.

Ich verwende kein NAS, sondern einen Ubuntuserver, genauer Ubuntu Natty Kernel 2.6.38-12-generic mit mediatomb 0.12.1-0ubuntu1

Das ist die Default-Zeile, die nicht funktioniert:
<map from="mkv" to="video/x-matroska"/>

es funktioniert aber auch nicht, die hier erwähnte Zeile:
<map from="mkv" to="video/mpeg"/>

Woran könnte es liegen bzw. was könnte ich probieren? Vielen Dank!

Daten eines Videos:


General
Unique ID : 109747418078929140692039732064890966549 (0x529095792481D4918796A34EE8D4D215)
Complete name : 1989-01_kochen.x264.mkv
Format : Matroska
Format version : Version 1
File size : 189 MiB
Duration : 6mn 7s
Overall bit rate mode : Variable
Overall bit rate : 4 309 Kbps
Encoded date : UTC 2010-02-03 19:02:55
Writing application : mkvmerge v2.4.0 ('Fumbling Towards Ecstasy') built on Dec 3 2008 16:22:41
Writing library : libebml v0.7.8 + libmatroska v0.8.1

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.0
Format settings, CABAC : Yes
Format settings, ReFrames : 3 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 6mn 7s
Bit rate : 4 095 Kbps
Width : 704 pixels
Height : 576 pixels
Display aspect ratio : 4:3
Original display aspect ratio : 1.222
Frame rate mode : Variable
Frame rate : 25.000 fps
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.404
Stream size : 179 MiB (95%)
Writing library : x264 core 83
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=3 / sliced_threads=0 / nr=0 / decimate=1 / mbaff=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / wpredb=1 / wpredp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc=cqp / mbtree=0 / qp=29 / ip_ratio=1.40 / pb_ratio=1.30 / aq=0

Audio
ID : 2
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Mode : Joint stereo
Mode extension : MS Stereo
Codec ID : A_MPEG/L3
Codec ID/Hint : MP3
Duration : 6mn 6s
Bit rate mode : Variable
Bit rate : 128 Kbps
Minimum bit rate : 32.0 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 5.61 MiB (3%)
Writing library : LAME3.99a
Encoding settings : -m j -V 2 -q 3 -lowpass 18.6 --vbr-old -b 32




cat config.xml
<?xml version="1.0" encoding="UTF-8"?>
<config version="2" xmlns="http://mediatomb.cc/config/2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/config/2 http://mediatomb.cc/config/2.xsd\"><!--
Read /usr/share/doc/mediatomb-common/README.gz section 6 for more
information on creating and using config.xml configration files.
-->
<server>
<ui enabled="yes" show-tooltips="yes">
<accounts enabled="yes" session-timeout="30">
<account user="mediatomb" password="123"/>
</accounts>
</ui>
<name>mediaserver</name>
<udn>uuid:b3612860-fa70-4b8a-8eba-571195c77221</udn>
<home>/var/lib/mediatomb</home>
<webroot>/usr/share/mediatomb/web</webroot>
<storage caching="yes">
<sqlite3 enabled="yes">
<database-file>mediatomb.db</database-file>
</sqlite3>
<mysql enabled="no">
<host>localhost</host>
<username>mediatomb</username>
<database>mediatomb</database>
</mysql>
</storage>
<protocolInfo extend="yes"/><!-- For PS3 support change to "yes" --><!--
Uncomment the lines below to get rid of jerky avi playback on the
DSM320 or to enable subtitles support on the DSM units
--><!--
<custom-http-headers>
<add header="X-User-Agent: redsonic"/>
</custom-http-headers>

<manufacturerURL>redsonic.com</manufacturerURL>
<modelNumber>105</modelNumber>
--><!-- Uncomment the line below if you have a Telegent TG100 --><!--
<upnp-string-limit>101</upnp-string-limit>
-->

<custom-http-headers>
<add header="transferMode.dlna.org: Streaming"/>
<add header="contentFeatures.dlna.org: DLNA.ORG_OP=01"/>
</custom-http-headers>

<extended-runtime-options>
<ffmpegthumbnailer enabled="no">
<thumbnail-size>128</thumbnail-size>
<seek-percentage>5</seek-percentage>
<filmstrip-overlay>yes</filmstrip-overlay>
<workaround-bugs>no</workaround-bugs>
</ffmpegthumbnailer>
<mark-played-items enabled="no" suppress-cds-updates="yes">
<string mode="prepend">*</string>
</mark-played-items>
</extended-runtime-options>
</server>
<import hidden-files="no">
<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>
<dvd-script>/usr/share/mediatomb/js/import-dvd.js</dvd-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="flv" to="video/x-flv"/>

<map from="mp2t" to="video/mpeg"/>
<map from="ts" to="video/mpeg"/>
<map from="mpg" to="video/mpeg"/>
<map from="avi" to="video/mpeg"/>
<map from="mkv" to="video/mpeg"/>

<map from="original_mkv" to="video/x-matroska"/>

<map from="mka" to="audio/x-matroska"/><!-- Uncomment the line below for PS3 divx support --><!-- <map from="avi" to="video/divx"/> --><!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 --><!-- <map from="avi" to="video/avi"/> -->
</extension-mimetype>
<mimetype-upnpclass>
<map from="audio/*" to="object.item.audioItem.musicTrack"/>
<map from="video/*" to="object.item.videoItem"/>
<map from="image/*" to="object.item.imageItem"/>
<map from="application/ogg" to="object.item.audioItem.musicTrack"/>
</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"/>
<treat mimetype="audio/x-wav" as="pcm"/>
<treat mimetype="audio/L16" as="pcm"/>
<treat mimetype="video/x-msvideo" as="avi"/>
<treat mimetype="video/mp4" as="mp4"/>
<treat mimetype="audio/mp4" as="mp4"/>
<treat mimetype="application/x-iso9660" as="dvd"/>
<treat mimetype="application/x-iso9660-image" as="dvd"/>
<treat mimetype="video/x-matroska" as="mkv"/>
<treat mimetype="audio/x-matroska" as="mka"/>
</mimetype-contenttype>
</mappings>
<online-content><!-- Make sure to setup a transcoding profile for flv -->
<YouTube enabled="no" refresh="28800" update-at-start="no" purge-after="604800" racy-content="exclude" format="flv" hd="no">
<favorites user="mediatomb"/>
<standardfeed feed="most_viewed" time-range="today"/>
<playlists user="mediatomb"/>
<uploads user="mediatomb"/>
<standardfeed feed="recently_featured" time-range="today"/>
</YouTube>
<Weborama enabled="no" refresh="28800" update-at-start="no">
<playlist name="Active" type="playlist" mood="active"/>
<playlist name="Metal" type="playlist">
<filter>
<genres>metal</genres>
</filter>
</playlist>
</Weborama>
<AppleTrailers enabled="no" refresh="43200" update-at-start="no" resolution="640"/>
</online-content>
</import>
<transcoding enabled="no">
<mimetype-profile-mappings>
<transcode mimetype="video/x-flv" using="vlcmpeg"/>
<transcode mimetype="application/ogg" using="vlcmpeg"/>
<transcode mimetype="application/ogg" using="oggflac2raw"/>
<transcode mimetype="audio/x-flac" using="oggflac2raw"/>
</mimetype-profile-mappings>
<profiles>
<profile name="oggflac2raw" enabled="no" type="external">
<mimetype>audio/L16</mimetype>
<accept-url>no</accept-url>
<first-resource>yes</first-resource>
<accept-ogg-theora>no</accept-ogg-theora>
<agent command="ogg123" arguments="-d raw -o byteorder:big -f %out %in"/>
<buffer size="1048576" chunk-size="131072" fill-size="262144"/>
</profile>
<profile name="vlcmpeg" enabled="no" type="external">
<mimetype>video/mpeg</mimetype>
<accept-url>yes</accept-url>
<first-resource>yes</first-resource>
<accept-ogg-theora>yes</accept-ogg-theora>
<agent command="vlc" arguments="-I dummy %in --sout #transcode{venc=ffmpeg,vcodec=mp2v,vb=4096,fps=25,aenc=ffmpeg,acodec=mpga,ab=192,samplerate=44100,channels=2}:standard{access=file,mux=ps,dst=%out} vlc:quit"/>
<buffer size="14400000" chunk-size="512000" fill-size="120000"/>
</profile>
</profiles>
</transcoding>
</config>


[Beitrag von sr4003 am 01. Nov 2011, 00:41 bearbeitet]
sr4003
Stammgast
#87 erstellt: 01. Nov 2011, 00:56
Kann Samsung auch ISO-Files abspielen? Wenn ja, wie lautet das mapping dafür?
liab
Inventar
#88 erstellt: 02. Nov 2011, 06:17
ISO siehe bitte Eintrag 44. Manche iso's muß man allerdings transcodieren.

Lade Dir mal die Matroska Testfiles. Mit Deiner config gehen bei mir test2, 3, 5, 7 und 8. Hartnäckige Matroskas erfordern transkodieren in Echtzeit mit einer CPU ab i5 aufwärts.
sr4003
Stammgast
#89 erstellt: 02. Nov 2011, 17:51
Bei funktionieren die Testfiles 1, 4 und 6 nicht. Testfile 7 wird nach ca. 2 Sekunden beendet und schaltet auf 8 weiter.

Kann ich da bei meiner Config (#86) noch was ändern?

In der Praxis sind für mich die Fotos noch nicht sehr brauchbar.

Mehr als 10000 Fotos sind in 1 Verzeichnis via DLNA nicht brauchbar. Die Ordner, alfabetisch sortiert nach Namen, bringt mir auch nicht viel. Der Ordnername fängt mit dem Monat an, zB für November mit 11, da brauch ich ewig um von 01 zu 11 zu gelangen.

Die Dateinamen erstelle ich per Script, da könnte ich schon das Jahr davorgeben, aber viel lieber wäre mir eine Jahres- / Monatsstruktur, so wie es von mediatomb eingelesen wird.

Irgendwo habe ich gelesen, dass mediatomb nach den Exif-Daten eine Struktur erstellen kann. Hat das jemand probiert und hat ein Beispiel dafür?

BTW, ich habe zwar einen Plasma, aber das dürfte in diesem Fall egal sein. Hat schon jemand probiert 10000 Fotos auf _1_ Partition einer USB-HD anzuschauen, bei mir werden Fotos ab 8900 _nicht_ mehr angezeigt.

Änderungen der Dateien auf einer USB-HD, dh ein paar Filme hinzugefügt führt bei mir zum Chaos. Passt zwar nicht zum Threadthema, aber vielleicht hat jemand einen Tipp, ich bin am Verzweifeln.

ISO kann ich erst später probieren und gebe dann Feedback.

Edit:
ISO werden grundsätzlich abgespielt, aber wie wähle ich den Hauptfilm aus?


[Beitrag von sr4003 am 02. Nov 2011, 20:37 bearbeitet]
liab
Inventar
#90 erstellt: 09. Jan 2012, 04:33
Hier mal meine Anleitung, wie man MediaTomb für das ALDI NAS compiliert und installiert.

Quellen
http://drobo.jhah.net/guides/compiling_mediatomb
http://intellidick.c...drobo-using-ubunutu/

First, let’s create the jailed environment.

sudo mkdir -p /var/chroot/medion
Install schroot (you can also use chroot if you’d like) and debootstrap

sudo apt-get install schroot debootstrap

Create the file /etc/schroot/chroot.d/medion with the following contents
xxxx=user
——– /etc/schroot/chroot.d/medion ——–

[medion]
description=Ubunutu Intrepid for DroboApps
directory=/var/chroot/medion
priority=3
users=xxxx
groups=xxxx
root-groups=root
——– /etc/schroot/chroot.d/medion ——–

Create a minimal system in the chroot jail

sudo debootstrap --variant=buildd --arch i386 intrepid /var/chroot/medion
Create a place to extract the new downloads

sudo mkdir /var/chroot/medion/root/code
Download the Drobo toolchain to a temporary directory
http://www.codesourcery.com/gnu_toolchains/arm/releases/2006q1-6
(Select ARM GNU/Linux, then IA32 GNU/Linux, then click Download)

Extract the Drobo toolchain

cd /var/chroot/medion/usr/local
sudo tar xfj /home/xxxx/compiler/download/arm-2006q1-6-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2

--------------------Download der Dateien--------------------
Download MediaTomb
Grab a copy from here : http://mediatomb.cc/pages/download#source_code
Extract the files into the chroot

cd /var/chroot/medion/root/code
sudo tar xfz /home/xxxx/compiler/download/mediatomb-0.12.1.tar.gz
Because i’m building MediaTomb, i’ll need SQLite, ZLib, expat, and a few other things …

Let’s start with SQLite
Grab a copy from here : http://www.sqlite.org/download.html
I used ‘sqlite-amalgamation-3.6.23.1.tar.gz’
Extract to the code directory
cd /var/chroot/medion/root/code
sudo tar xfz /home/xxxx/compiler/download/sqlite-amalgamation-3.6.23.1.tar.gz

ZLib – http://www.zlib.net/
I used ‘zlib-1.2.5.tar.gz’
Extract to the directory
cd /var/chroot/medion/root/code
sudo tar xfz /home/xxxx/compiler/download/zlib-1.2.5.tar.gz

Expat – http://sourceforge.net/projects/expat/
I used ‘expat-2.0.1.tar.gz’
Extract to the directory
cd /var/chroot/medion/root/code
sudo tar xfz /home/xxxx/compiler/download/expat-2.0.1.tar.gz

File – http://www.darwinsys.com/file/
Note : The site admin removed the 4.24 version of file so I had to get mine from here
ftp://ftp.sunfreeware.com/pub/freeware/SOURCES/file-4.24.tar.gz
I used ‘file-5.00.tar.gz’
Extract to the directory
cd /var/chroot/medion/root/code
sudo tar xfz /home/xxxx/compiler/download/file-5.00.tar.gz

TagLib – http://developer.kde.org/~wheeler/taglib.html
I used ‘taglib-1.6.3.tar.gz’
Extract to the directory
cd /var/chroot/medion/root/code
sudo tar xfz /home/xxxx/compiler/download/taglib-1.6.3.tar.gz

libexif – http://libexif.sourceforge.net
I used ‘libexif-0.6.19.tar.gz’
Extract to the directory
cd /var/chroot/medion/root/code
sudo tar xfz /home/xxxx/compiler/download/libexif-0.6.19.tar.gz

ffmpeg – http://ffmpeg.org
http://ffmpeg.org/download.html
Extract to the directory
cd /var/chroot/medion/root/code
sudo tar xfj /home/xxxx/compiler/download/ffmpeg-0.5.7.tar.bz2

libcurl4-gnutls-dev nur bei ffmpeg support von MediaTomb installieren!
Wahrscheinlich nicht bei mediatomb-0.11.0!
Bei mediatomb-0.12.1 geht ffmpeg nicht, Fehler configure!
apt-get install libcurl4-gnutls-dev
Am besten mediatomb-0.12.1 ohne ffmpeg bauen.

--------------------Verzeichnis für das Ergebnis------------
Create a directory for the resulting binaries.

sudo mkdir -p /var/chroot/medion/usr/arm
Now it’s time to enter the chroot jail and start compiling!

Mount the required filesystems

sudo mount -o bind /proc /var/chroot/medion/proc
sudo cp /etc/resolv.conf /var/chroot/medion/etc/resolv.conf
Activate the chroot

**********Einstieg, wenn alles geladen ist**********

sudo schroot -c medion -d /root
Load some extra packages

apt-get install vim
(Feel free to use whatever editor you like in place of vim)

apt-get install automake autoconf libtool autotools-dev m4
Setup some environment variables. The trick to cross-compiling is to use the system’s binaries for running autotools but tell the compiler to link against the ARM headers, libraries, and binaries. These environment variables ease the pain when building in a non-standard directory. If they’re not set, a few of the below builds will fail miserably.

Seeing as we know the CPU/Architecture of the Drobo and the version of GCC, a quick check of the docs gives us some additional command line switches to further tweak things for our processor. The Drobo is no speed demon so everything helps.

export CFLAGS="-I/usr/arm/include -march=armv5te"
export CPPFLAGS=${CFLAGS}
export LDFLAGS="-L/usr/arm/lib"
export CC=arm-none-linux-gnueabi-gcc

export CFLAGS="-I/usr/arm/include -march=armv6"
export CPPFLAGS=${CFLAGS}
export LDFLAGS="-L/usr/arm/lib"
export CC=arm-none-linux-gnueabi-gcc

--------------------Software bilden-------------------------
With that out of that way, let’s build some software! ZLib is up first

cd /root/code/zlib-1.2.5
make clean
./configure --prefix=/usr/arm --shared
make
make install
----------
Now Expat

cd /root/code/expat-2.0.1
make clean
./configure --host=arm-none-linux-gnueabi --prefix=/usr/arm
make
make install
----------
SQLite

cd /root/code/sqlite-3.6.23.1
make clean
./configure --host=arm-none-linux-gnueabi --prefix=/usr/arm
make
make install
----------
File-5.00

File proved to be a bit more tricky, but nothing too horid…

cd /root/code/file-5.00
make clean
Edit magic/Makefile.am

vi magic/Makefile.am
Change line 224 from

${MAGIC}: $(EXTRA_DIST) $(FILE_COMPILE)
to

${MAGIC}: $(EXTRA_DIST)
Now run the following to rebuild the build system …

aclocal
autoheader
autoconf
libtoolize
automake
./configure --host=arm-none-linux-gnueabi --prefix=/usr/arm
make
make install
----------
Libexif

cd /root/code/libexif-0.6.19
make clean
./configure --host=arm-none-linux-gnueabi --prefix=/usr/arm
make
make install
----------
Taglib time

cd /root/code/taglib-1.6.3
make clean
./configure --host=arm-none-linux-gnueabi --prefix=/usr/arm
make
make install
----------
ffmpeg

Hold on to your cookies … it’s time for ffmpeg. This is a seriously daunting command line but I have a feeling that this version is broken when cross compiling. Who knows what the problem is … this build works, just no Matroska.

cd /root/code/ffmpeg-0.5.7
./configure --cross-prefix=arm-none-linux-gnueabi- --prefix=/usr/arm --arch=arm --enable-armv5te --enable-nonfree --disable-network --disable-ipv6 --enable-pthreads --disable-zlib --disable-bzlib --disable-ffserver --disable-ffplay --disable-devices --disable-encoders --disable-muxers --enable-shared --disable-static --disable-vhook --enable-avfilter --enable-cross-compile --disable-decoder=matroska
make
make install
----------
MediaTomb

MediaTomb leaves a lot to be desired when it comes to properly detecting items in a cross-compiled environment. It also looks like some of the distributions move header files around… which of course breaks it further. The following hack fixes it up for us to use again.

Ffmpeg geht (bisher) nur mit mediatomb-0.11.0
mkdir -p /usr/arm/include/ffmpeg
cp -v /usr/arm/include/libavcodec/* /usr/arm/include/ffmpeg
cp -v /usr/arm/include/libavutil/* /usr/arm/include/ffmpeg
cp -v /usr/arm/include/libavformat/* /usr/arm/include/ffmpeg
cp -v /usr/arm/include/libavdevice/* /usr/arm/include/ffmpeg
Diese (libswscale) hat das Verzeichnis include nicht!
cp -v /usr/arm/include/libswscale/* /usr/arm/include/ffmpeg
Last but not least … MediaTomb! Time for some build system hacking again.
Enter the code directory

cd /root/code/mediatomb-0.11.0
bzw.
cd /root/code/mediatomb-0.12.1
make clean
Hack up the configure script a little.

vi configure.ac
Change the following line numbers.
2378, 2395, 2402, 2418
On each of those lines, you’re going to see the following section

"-lavformat -lavutil"
With this version of FFmpeg, a

"-lavcodec"
is needed. Here’s how mine turned out.

Line 2378
FFMPEG_LIBS="-L$FFMPEG_SEARCH_LIBS -lavcodec -lavformat -lavutil -lz"

Line 2395
FFMPEG_LIBS="-lavcodec -lavformat -lavutil"

Line 2402
FFMPEG_LIBS="-L$SEARCH_DIR_LIBS -lavcodec -lavformat -lavutil -lz"

Line 2418
FFMPEG_LIBS="-L$SEARCH_DIR_LIBS -lavcodec -lavformat -lavutil -lz"
Now it’s autotools time again.

aclocal
autoheader
autoconf
libtoolize
automake

Ohne ffmpeg
./configure --host=arm-none-linux-gnueabi --prefix=/usr/arm --disable-external-transcoding --disable-ffmpeg --with-taglib-cfg=/usr/arm/bin/taglib-config --disable-libjs --disable-rpl-malloc --with-ffmpeg-lbs=/usr/arm/lib --disable-inotify --disable-mysql --enable-taglib --enable-libexif

Mit ffmpeg, geht (bisher) nur mit mediatomb-0.11.0
./configure --host=arm-none-linux-gnueabi --prefix=/usr/arm --disable-external-transcoding --enable-ffmpeg --with-taglib-cfg=/usr/arm/bin/taglib-config --disable-libjs --disable-rpl-malloc --with-ffmpeg-lbs=/usr/arm/lib --disable-inotify --disable-mysql --enable-taglib --enable-libexif --disable-youtube

make
make install

Packen
cd /usr/arm
tar cvfz ../mediatomb.tgz *

Auf dem NAS das Verzeichnis /i-data/md0/admin/mediatomb anlegen und dort wieder auspacken.
tar -xvzpf mediatomb.tgz

Zum Starten dient dieses Startskript im Ordner /i-data/md0/admin/mediatomb

Startskript
#!/bin/sh

Startskript
# if you want to launch this script from a different directory (for example
# from an another init script or similar, set the LAUNCHDIR variable below
# to the absolute path of the mediatomb.sh script
# Ein beliebiger Parameter beendet mediatomb
killall -9 mediatomb
if [ $1 != "" ] ; then
exit
fi
cd /i-data/md0/admin/mediatomb
LAUNCHDIR=`pwd`
export MEDIATOMB_DATADIR="$LAUNCHDIR/share/mediatomb"
export MEDIATOMB_MAGIC_FILE="share/file/magic"
export LD_LIBRARY_PATH="$LAUNCHDIR/lib"
$LAUNCHDIR/bin/mediatomb -m $LAUNCHDIR -f /config/

Man muß noch den Ordner /i-data/md0/admin/mediatomb/config anlegen. Nach dem ersten Start legt mediatomb dort die config.xml an. Sie muß noch bearbeitet werden. Der Samsung wichtige
Eintrag: <add header="contentFeatures.dlna.org: DLNA.ORG_OP=01"/>

<?xml version="1.0" encoding="UTF-8"?>
<config version="2" xmlns="http://mediatomb.cc/config/2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/config/2 http://mediatomb.cc/config/2.xsd\">
<server>
<ui enabled="yes" show-tooltips="yes">
<accounts enabled="no" session-timeout="30">
<account user="mediatomb" password="mediatomb"/>
</accounts>
</ui>
<name>MT-NAS-SERVER</name>
<udn>uuid:b8dcb2b4-b49e-43a0-ba5c-3fd42cad29bf</udn>
<home>/i-data/md0/admin/mediatomb//config/</home>
<webroot>/i-data/md0/admin/mediatomb/share/mediatomb/web</webroot>
<storage>
<sqlite3 enabled="yes">
<database-file>mediatomb.db</database-file>
</sqlite3>
</storage>
<protocolInfo extend="yes"/><!-- For PS3 support change to "yes" -->
<!--
Uncomment the lines below to get rid of jerky avi playback on the
DSM320 or to enable subtitles support on the DSM units
-->
<!--
<custom-http-headers>
<add header="X-User-Agent: redsonic"/>
</custom-http-headers>

<manufacturerURL>redsonic.com</manufacturerURL>
<modelNumber>105</modelNumber>
-->
<!-- Uncomment the line below if you have a Telegent TG100 -->
<!--
<upnp-string-limit>101</upnp-string-limit>
-->
<custom-http-headers>
<add header="transferMode.dlna.org: Streaming"/>
<add header="contentFeatures.dlna.org: DLNA.ORG_OP=01"/>
</custom-http-headers>
<extended-runtime-options>
<mark-played-items enabled="no" suppress-cds-updates="yes">
<string mode="prepend">*</string>
<mark>
<content>video</content>
</mark>
</mark-played-items>
</extended-runtime-options>
</server>
<import hidden-files="no">
<magic-file>share/file/magic</magic-file>
<filesystem-charset>UTF-8</filesystem-charset>
<metadata-charset>UTF-8</metadata-charset>
<scripting script-charset="UTF-8">
<virtual-layout type="builtin"/>
</scripting>
<mappings>
<extension-mimetype ignore-unknown="no">
<map from="mp3" to="audio/mpeg"/>
<map from="ogx" to="application/ogg"/>
<map from="ogv" to="video/ogg"/>
<map from="oga" to="audio/ogg"/>
<map from="ogg" to="audio/ogg"/>
<map from="ogm" to="video/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="flv" to="video/mpeg"/>
<map from="mkv" to="video/mpeg"/>
<map from="mka" to="audio/x-matroska"/>
<map from="ts" to="video/mpeg"/>
<map from="mp4" to="video/mpeg"/>
<!-- Uncomment the line below for PS3 divx support -->
<!-- <map from="avi" to="video/divx"/> -->
<!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 -->
<!-- <map from="avi" to="video/avi"/> -->
</extension-mimetype>
<mimetype-upnpclass>
<map from="audio/*" 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"/>
<treat mimetype="audio/x-wav" as="pcm"/>
<treat mimetype="audio/L16" as="pcm"/>
<treat mimetype="video/x-msvideo" as="avi"/>
<treat mimetype="video/mp4" as="mp4"/>
<treat mimetype="audio/mp4" as="mp4"/>
<treat mimetype="application/x-iso9660" as="dvd"/>
<treat mimetype="application/x-iso9660-image" as="dvd"/>
</mimetype-contenttype>
</mappings>
</import>
</config>
liab
Inventar
#91 erstellt: 10. Jan 2012, 03:57
Hier noch, wie MediaTomb und die telnet Aktivierung beim Booten des Medion-NAS automatisch geladen werden.

cd /usr/local/zy-pkgs/etc/init.d

Nicht ZYPKG_DEPS entsprechend bearbeiten (geht zwar auch), sondern diesen Link anlegen:
ln -sf /i-data/md0/admin/start.sh start

Im Verzeichnis /i-data/md0/admin dieses Startskript mit dem Namen start.sh anlegen.

#!/bin/sh
#telnet aktivieren
/usr/local/btn/open_back_door.sh
#MediaTomb atomatisch beim Booten starten
/i-data/md0/admin/mediatomb/mediatomb.sh &
exit

Vorsicht - das "&" bei ".../mediatomb.sh &" ist wichtig, da das NAS sonst beim Booten hängen bleiben kann.

Nachtrag:
Hier gibt es fertige Pakete, die auf dem Medion-NAS laufen. Getestet habe ich mediatomb_0.12.1_1.zip.
http://drobo.jhah.net/apps/mediatomb/start


[Beitrag von liab am 11. Jan 2012, 05:04 bearbeitet]
liab
Inventar
#92 erstellt: 12. Jan 2012, 05:36
Hier noch eine weitere Verbesserung für MediaTomb in Verbindung mit dem ALDI-NAS, ein schnelles Starten / Beenden über telnet mit dem Befehl mt.

Damit MediaTomb über die telnet Konsole mit dem Kurznamen mt gestartet werden kann,
noch diesen Link anlegen:
cd /usr/local/bin
ln -sf /i-data/md0/admin/mediatomb/mediatomb.sh mt
Vorher besser mit ls kontrollieren, ob der Name mt bereits vergeben ist!
Jetzt kann MediaTomb einfach von telnet aus mit dem Befehl mt gestartet werden.
Der Befehl mit einem Parameter beendet MediaTomb, z.B. mt n.

Der angelegte Link bleibt nach einem Stromausfall erhalten.
liab
Inventar
#93 erstellt: 23. Jan 2012, 00:18
Hier eine verbesserte Anleitung zum Compilieren von MediaTomb für die ARM-CPU des ALDI NAS.
Und hier habe ich ein fertiges Paket zur sofortigen Installation auf dem NAS hinterlegt.
http://www.fileuploadx.de/309968
Das Paket enthält zwar ffmpeg, mediatomb wurde aber ohne ffmpeg compiliert.
Den Umgang mit der MediaTomb Web-Gui muß man etwas üben. Da läß sich allerhand einstellen,
vor allem auch die automatische Aktualisierung der Datenbank. Ich wähle meist Inotify.

Das Paket mediatomb-0.12.1-220112.tgz wird auf dem NAS in den Ordner
/i-data/md0/admin/mediatomb kopiert und dort entpackt. Die Datei mediatomb.sh
startet MediaTomb.

Wunder, was mkv betriftt, sollte man nicht erwarten. Da gibt es etliche, die man dem
Samsung in Echtzeit transcodiert anbieten muß. Das geht nur mit einem schnellen Rechner.

Dank an diese Quellen:
http://drobo.jhah.net/guides/compiling_mediatomb
http://intellidick.c...drobo-using-ubunutu/

Ausgeführt wurde dies alles auf einem kubuntu 10.10 (Maverick Meerkat) Computer.
Die erforderlichen Downloads wurden im Verzeichnis ~/compiler/download abgelegt

First, let’s create the jailed environment.

sudo mkdir -p /var/chroot/medion
Install schroot (you can also use chroot if you’d like) and debootstrap

sudo apt-get install schroot debootstrap

Die Datei /etc/schroot/schroot.conf bearbeiten und mit diesem Eintrag erweitern:

[medion]
description=Ubunutu Maverick for MedionApps
directory=/var/chroot/medion
priority=3
users=liab
groups=liab
root-groups=root

Create a minimal system in the chroot jail
sudo debootstrap --variant=buildd --arch i386 maverick /var/chroot/medion

Create a place to extract the new downloads
sudo mkdir /var/chroot/medion/root/code

Download the ARM toolchain to a temporary directory
http://www.codesourcery.com/gnu_toolchains/arm/releases/2006q1-6
(Select ARM GNU/Linux, then IA32 GNU/Linux, then click Download)

Erfolgreich getestet habe ich:
arm-2006q1-3-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
arm-2006q1-6-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
arm-2008q1-126-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
Letzterer baut kleinere Dateien.

Extract the ARM toolchain
cd /var/chroot/medion/usr/local
sudo tar xfj /home/liab/compiler/download/arm-2006q1-6-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
oder, den nehme ich neuerdings
sudo tar xfj /home/liab/compiler/download/arm-2008q1-126-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2

--------------------Download der Dateien--------------------

Download MediaTomb

Grab a copy from here : http://mediatomb.cc/pages/download#source_code
Extract the files into the chroot

sudo chmod 777 /var/chroot/medion/root
cd /var/chroot/medion/root/code
sudo tar xfz /home/liab/compiler/download/mediatomb-0.11.0.tar.gz
oder die letzte Version
sudo tar xfz /home/liab/compiler/download/mediatomb-0.12.1.tar.gz
Because i’m building MediaTomb, i’ll need SQLite, ZLib, expat, and a few other things …
--------------------
Let’s start with SQLite

Grab a copy from here : http://www.sqlite.org/download.html
I used ‘sqlite-amalgamation-3.6.23.1.tar.gz’
Extract to the code directory
cd /var/chroot/medion/root/code
sudo tar xfz /home/liab/compiler/download/sqlite-amalgamation-3.6.23.1.tar.gz
--------------------
ZLib – http://www.zlib.net/

Zlib is a compression library that is available on most systems, we need it for the database autocreation functionality. Make sure to install the zlib development package providing zlib.h, if it is not available you will need to create the MediaTomb sqlite3/MySQL database manually.

I used ‘zlib-1.2.5.tar.gz’
Extract to the directory
cd /var/chroot/medion/root/code
sudo tar xfz /home/liab/compiler/download/zlib-1.2.5.tar.gz
--------------------
Expat – http://sourceforge.net/projects/expat/

Expat is a very good and robust XML parser, since most of UPnP is based on XML this package is a requirement.

I used ‘expat-2.0.1.tar.gz’
Extract to the directory
cd /var/chroot/medion/root/code
sudo tar xfz /home/liab/compiler/download/expat-2.0.1.tar.gz
--------------------
File – http://www.darwinsys.com/file/

This is the 'file' package, it is used to determine the mime type of the media. If you don't have this you will have to enter file extension to mime type mappings manually in your config file.

Note : The site admin removed the 4.24 version of file so I had to get mine from here
ftp://ftp.sunfreeware.com/pub/freeware/SOURCES/file-4.24.tar.gz
I used ‘file-5.00.tar.gz’ von ftp://ftp.astron.com/pub/file/
Extract to the directory
cd /var/chroot/medion/root/code
sudo tar xfz /home/liab/compiler/download/file-5.00.tar.gz
--------------------
TagLib – http://developer.kde.org/~wheeler/taglib.html

This library retrieves metadata from mp3, ogg and flac files. You will need it if you want to have virtual objects for those files (i.e. nice content layout).

I used ‘taglib-1.6.3.tar.gz’
Extract to the directory
cd /var/chroot/medion/root/code
sudo tar xfz /home/liab/compiler/download/taglib-1.6.3.tar.gz
--------------------
libjs - SpiderMonkey – http://ftp.mozilla.org/pub/mozilla.org/js/

This package is necessary to allow the user defined creation of virtual containers. The import.js script defines the layout of your media, the default import script will create a structure sorted by Audio/Photo/Video, it will make use of the gathered metadata (like ID3 tags) to sort your music by Artist/Album/Genre/Year , etc. The import script can be adjusted and modified - it allows you to create the layout that you want.

I used ‘js-1.5.tar.gz’
Extract to the directory
cd /var/chroot/medion/root/code
sudo tar xfz /home/liab/compiler/download/js-1.5.tar.gz
--------------------
libexif – http://libexif.sourceforge.net

You will need this library if you want to extract metadata from images, this will allow you to have virtual containers for your Photos, sorted by various attributes like Date, etc. It also enables thumbnail support: if EXIF thumbnails are present in your images they will also be offered via UPnP.

I used ‘libexif-0.6.19.tar.gz’
Extract to the directory
cd /var/chroot/medion/root/code
sudo tar xfz /home/liab/compiler/download/libexif-0.6.19.tar.gz
--------------------
ffmpeg – http://ffmpeg.org

Currently ffmpeg is used to gather additional metadata from audio and video files.

http://ffmpeg.org/download.html
Extract to the directory
cd /var/chroot/medion/root/code

sudo tar xf /home/liab/compiler/tools/ffmpeg-0.6.4.tar.gz
--------------------
ffmpegthumbnailer, http://code.google.com/p/ffmpegthumbnailer/downloads/list

Compiling with ffmpegthumbnailer support is only possible if you also compile with ffmpeg support. The library allows to generate thumbnails for the videos on the fly.

cd /var/chroot/medion/root/code
sudo tar xf /home/liab/compiler/download/ffmpegthumbnailer-2.0.0.tar.gz
oder
sudo tar xf /home/liab/compiler/download/ffmpegthumbnailer-2.0.2.tar.gz
--------------------
libcurl4-gnutls-dev nur bei ffmpeg support von MediaTomb installieren!

Wahrscheinlich nicht bei mediatomb-0.11.0!
Bei mediatomb-0.12.1 geht ffmpeg nicht, Fehler configure!
apt-get install libcurl4-gnutls-dev
Am besten mediatomb-0.12.1 ohne ffmpeg bauen.

--------------------Verzeichnis für das Ergebnis------------

Create a directory for the resulting binaries.

sudo mkdir -p /var/chroot/medion/usr/arm
Wegen ffmpegthumbnailer noch:
sudo cp /usr/bin/pkg-config /var/chroot/medion/usr/bin/
sudo cp /lib/libpopt.so.0 /var/chroot/medion/lib/
sudo cp /lib/libpopt.so.0.0.0 /var/chroot/medion/lib/

Now it’s time to enter the chroot jail and start compiling!

Mount the required filesystems

sudo mount -o bind /proc /var/chroot/medion/proc
Activate the chroot

**********Einstieg, wenn alles geladen ist**********

sudo schroot -c medion -d /root
Load some extra packages, nur beim ersten Betreten!

Nur bei Bedarf!
apt-get install vim
(Feel free to use whatever editor you like in place of vim)
Wichtig:
apt-get install automake autoconf libtool autotools-dev m4
apt-get install pkg-config

Setup some environment variables. The trick to cross-compiling is to use the system’s binaries for running autotools but tell the compiler to link against the ARM headers, libraries, and binaries. These environment variables ease the pain when building in a non-standard directory. If they’re not set, a few of the below builds will fail miserably.

Seeing as we know the CPU/Architecture of the Drobo and the version of GCC, a quick check of the docs gives us some additional command line switches to further tweak things for our processor. The Drobo is no speed demon so everything helps.

export CFLAGS="-I/usr/arm/include -march=armv5te"
export CPPFLAGS=${CFLAGS}
export LDFLAGS="-L/usr/arm/lib"
export CC=arm-none-linux-gnueabi-gcc

Statt dessen diese Parameter bei configure:
./configure --host=arm-none-linux-gnueabi --prefix=/usr/arm --with-search=/usr/arm

--------------------Software bilden-------------------------

With that out of that way, let’s build some software! ZLib is up first

cd /root/code/zlib-1.2.5
make clean
./configure --prefix=/usr/arm --shared
make
make install
--------------------
Expat

cd /root/code/expat-2.0.1
make clean
./configure --host=arm-none-linux-gnueabi --prefix=/usr/arm
make
make install
--------------------
SQLite

cd /root/code/sqlite-3.6.23.1
make clean
./configure --host=arm-none-linux-gnueabi --prefix=/usr/arm
make
make install
--------------------
File-5.00

File proved to be a bit more tricky, but nothing too horid…

cd /root/code/file-5.00
make clean

Die nachstehende Änderung scheint mir nicht erforderlich zu sein.
Ich mache neuerding bei configure weiter.
Edit magic/Makefile.am
Change line 235 from

${MAGIC}: $(EXTRA_DIST) $(FILE_COMPILE_DEP)
to

${MAGIC}: $(EXTRA_DIST)
Now run the following to rebuild the build system …

aclocal
autoheader
autoconf
libtoolize
automake
./configure --host=arm-none-linux-gnueabi --prefix=/usr/arm
make
make install
--------------------
Libexif

cd /root/code/libexif-0.6.19
make clean
./configure --host=arm-none-linux-gnueabi --prefix=/usr/arm
make
make install
--------------------
Taglib time

cd /root/code/taglib-1.6.3
make clean
./configure --host=arm-none-linux-gnueabi --prefix=/usr/arm
make
make install
--------------------
libjs

cd /root/code/js/src
run make, this will fail on the first attempt

make BUILD_OPT=1 -f Makefile.ref CC=arm-none-linux-gnueabi-gcc LD=arm-none-linux-gnueabi-ld

first copy jscpucfg to the target Medion-NAS and execute it. to generate jsautocfg.h

Dies muß aktuell ausgeführt werden, eine ältere jsautocfg.h geht nicht!
./jscpucfg > jsautocfg.h (auf dem NAS)

copy the resulting jsautocfg.h back to your build system to replace the 0 byte version
copy von jsautocfg.h nach /root/code/js/src/Linux_All_OPT.OBJ

make BUILD_OPT=1 -f Makefile.ref CC=arm-none-linux-gnueabi-gcc LD=arm-none-linux-gnueabi-ld

there is no install target, so manually install
# from dir: js/src

mkdir /usr/arm/include/smjs
cp *.{h,tbl} /usr/arm/include/smjs/
cp Linux_All_OPT.OBJ/*.h /usr/arm/include/smjs/
cp Linux_All_OPT.OBJ/js /usr/arm/bin/
cp Linux_All_OPT.OBJ/libjs.so /usr/arm/lib/
--------------------
ffmpeg

Hold on to your cookies … it’s time for ffmpeg. This is a seriously daunting command line but I have a feeling that this version is broken when cross compiling. Who knows what the problem is … this build works, just no Matroska.

cd /root/code/ffmpeg-0.6.4
make clean
./configure --cross-prefix=arm-none-linux-gnueabi- --prefix=/usr/arm --enable-armv5te --enable-nonfree --disable-network --enable-pthreads --disable-zlib --disable-bzlib --disable-ffserver --disable-ffplay --disable-devices --disable-encoders --disable-muxers --enable-shared --disable-static --enable-avfilter --enable-cross-compile --disable-decoder=matroska --arch=armv5te --target-os=linux --enable-nonfree --enable-gpl
make
make install

Ffmpeg geht (bisher) nur mit mediatomb-0.11.0
mkdir -p /usr/arm/include/ffmpeg
cp -v /usr/arm/include/libavcodec/* /usr/arm/include/ffmpeg
cp -v /usr/arm/include/libavdevice/* /usr/arm/include/ffmpeg
cp -v /usr/arm/include/libavfilter/* /usr/arm/include/ffmpeg
cp -v /usr/arm/include/libavformat/* /usr/arm/include/ffmpeg
cp -v /usr/arm/include/libavutil/* /usr/arm/include/ffmpeg
cp -v /usr/arm/include/libswscale/* /usr/arm/include/ffmpeg
--------------------
ffmpegthumbnailer

Überspringen! Nützt nichts, da ffmpeg Support bei mediatomb-0.12.1 bei configure aussteigt.
Und mediatomb-0.11.0 unterstützt kein thumbnailer.

pkg-config in /usr/bin nachladen und
nach /medion/lib
/lib/libpopt.so.0 und /lib/libpopt.so.0.0.0
Nur zur Erinnerung, wurde schon weiter oben mit "apt-get install pkg-config" erledigt!

ffmpegthumbnailer-2.0.0, geht nur mit ffmpeg-0.5.7

cd /root/code/ffmpegthumbnailer-2.0.0
Die Dateien aus pkgconfig (libavcodec.pc usw.) von
/usr/arm/lib/pkgconfig müssen nach /usr/lib/pkgconfig kopiert werden!!
make clean
./configure --host=arm-none-linux-gnueabi --prefix=/usr/arm
make
make install

cd /root/code/ffmpegthumbnailer-2.0.2
cp -r /usr/arm/lib/pkgconfig /usr/lib/
make clean
./configure --host=arm-none-linux-gnueabi --prefix=/usr/arm
make
make install
--------------------
MediaTomb

MediaTomb leaves a lot to be desired when it comes to properly detecting items in a cross-compiled environment. It also looks like some of the distributions move header files around… which of course breaks it further. The following hack fixes it up for us to use again.

Last but not least … MediaTomb! Time for some build system hacking again.
Enter the code directory
--------------------
mediatomb-0.11.0

cd /root/code/mediatomb-0.11.0
make clean
Hack up the configure script a little.

vi configure.ac
Change the following line numbers.
2378, 2395, 2402, 2418
On each of those lines, you’re going to see the following section

"-lavformat -lavutil"
With this version of FFmpeg, a

"-lavcodec"
is needed. Here’s how mine turned out.

Line 2378
FFMPEG_LIBS="-L$FFMPEG_SEARCH_LIBS -lavcodec -lavformat -lavutil -lz"

Line 2395
FFMPEG_LIBS="-lavcodec -lavformat -lavutil"

Line 2402
FFMPEG_LIBS="-L$SEARCH_DIR_LIBS -lavcodec -lavformat -lavutil -lz"

Line 2418
FFMPEG_LIBS="-L$SEARCH_DIR_LIBS -lavcodec -lavformat -lavutil -lz"
Now it’s autotools time again.

aclocal
autoheader
autoconf
libtoolize
automake

mediatomb-0.11.0, inotify muß disabled sein

Mit ffmpeg, geht nur bei mediatomb-0.11.0
./configure --host=arm-none-linux-gnueabi --prefix=/usr/arm --with-search=/usr/arm --with-taglib-cfg=/usr/arm/bin/taglib-config --disable-inotify --disable-rpl-malloc

CONFIGURATION SUMMARY ----

sqlite3 : yes
mysql : missing
libjs : yes
libmagic : yes
inotify : disabled
libexif : yes
expat : yes
id3lib : disabled
taglib : yes
ffmpeg : yes
external transcoding : yes
libextractor : disabled

Ohne ffmpeg
./configure --host=arm-none-linux-gnueabi --prefix=/usr/arm --with-search=/usr/arm --with-taglib-cfg=/usr/arm/bin/taglib-config --disable-inotify --disable-rpl-malloc --disable-ffmpeg

make
make install
--------------------
mediatomb-0.12.1

cd /root/code/mediatomb-0.12.1
make clean

aclocal
autoheader
autoconf
libtoolize
automake

Mit ffmpeg (macht Fehlermeldung)
./configure --host=arm-none-linux-gnueabi --prefix=/usr/arm --with-search=/usr/arm --disable-external-transcoding --enable-ffmpeg --with-taglib-cfg=/usr/arm/bin/taglib-config --enable-libjs --with-js-h=/usr/arm/include/smjs --with-js-libs=/usr/arm/lib --disable-rpl-malloc --disable-inotify --disable-mysql --enable-taglib --enable-libexif
make
make install

Ohne ffmpeg
./configure --host=arm-none-linux-gnueabi --prefix=/usr/arm --with-search=/usr/arm --enable-external-transcoding --disable-ffmpeg --disable-ffmpegthumbnailer --with-taglib-cfg=/usr/arm/bin/taglib-config --enable-libjs --with-js-h=/usr/arm/include/smjs --with-js-libs=/usr/arm/lib --disable-rpl-malloc --enable-inotify --disable-mysql --disable-libmp4v2 --enable-taglib --enable-libexif --disable-lastfmlib --disable-youtube

CONFIGURATION SUMMARY ----

sqlite3 : yes
mysql : disabled
libjs : yes
libmagic : yes
inotify : yes
libexif : yes
id3lib : disabled
taglib : yes
libmp4v2 : disabled
ffmpeg : disabled
ffmpegthumbnailer : disabled
lastfmlib : disabled
external transcoding : yes
curl : no
YouTube : disabled
libextractor :
db-autocreate : yes

make
make install

Packen
cd /usr/arm
tar cvfz ../mediatomb.tgz *

Auf dem NAS das Verzeichnis /i-data/md0/admin/mediatomb anlegen und dort wieder auspacken.
tar -xvzpf mediatomb.tgz

Zum Starten dient dieses Startskript im Ordner /i-data/md0/admin/mediatomb/mediatomb.sh.
Beim Erststart einpackt es die Datei mediatomb*.tgz. Weitere Starts starten
MediaTomb.

#!/bin/sh

# if you want to launch this script from a different directory (for example
# from an another init script or similar, set the LAUNCHDIR variable below
# to the absolute path of the mediatomb.sh script
killall -9 mediatomb
if [ $1 != "" ] ; then
exit
fi
cd /i-data/md0/admin/mediatomb
if [ -e /i-data/md0/admin/mediatomb/bin/mediatomb ] ; then
echo
else
tar -xvzpf mediatomb*.tgz
fi
LAUNCHDIR=`pwd`
export MEDIATOMB_DATADIR="$LAUNCHDIR/share/mediatomb"
export MEDIATOMB_MAGIC_FILE="share/file/magic"
export LD_LIBRARY_PATH="$LAUNCHDIR/lib"
$LAUNCHDIR/bin/mediatomb -m $LAUNCHDIR -f /config/

Man muß noch den Ordner /i-data/md0/admin/mediatomb/config anlegen. Nach dem ersten Start legt mediatomb dort die config.xml an. Sie muß noch bearbeitet werden. Der Samsung wichtige
Eintrag: <add header="contentFeatures.dlna.org: DLNA.ORG_OP=01"/>

<?xml version="1.0" encoding="UTF-8"?>
<config version="2" xmlns="http://mediatomb.cc/config/2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/config/2 http://mediatomb.cc/config/2.xsd\">
<server>
<ui enabled="yes" show-tooltips="yes">
<accounts enabled="no" session-timeout="30">
<account user="mediatomb" password="mediatomb"/>
</accounts>
</ui>
<name>MT-NAS-SERVER</name>
<udn>uuid:e1e3ea75-5034-4233-9018-b2064298d164</udn>
<home>/i-data/md0/admin/mediatomb//config/</home>
<webroot>/i-data/md0/admin/mediatomb/share/mediatomb/web</webroot>
<storage>
<sqlite3 enabled="yes">
<database-file>mediatomb.db</database-file>
</sqlite3>
</storage>
<protocolInfo extend="yes"/><!-- For PS3 support change to "yes" -->
<!--
Uncomment the lines below to get rid of jerky avi playback on the
DSM320 or to enable subtitles support on the DSM units
-->
<!--
<custom-http-headers>
<add header="X-User-Agent: redsonic"/>
</custom-http-headers>

<manufacturerURL>redsonic.com</manufacturerURL>
<modelNumber>105</modelNumber>
-->
<!-- Uncomment the line below if you have a Telegent TG100 -->
<!--
<upnp-string-limit>101</upnp-string-limit>
-->
<custom-http-headers>
<add header="transferMode.dlna.org: Streaming"/>
<add header="contentFeatures.dlna.org: DLNA.ORG_OP=01"/>
</custom-http-headers>
<extended-runtime-options>
<mark-played-items enabled="no" suppress-cds-updates="yes">
<string mode="prepend">*</string>
<mark>
<content>video</content>
</mark>
</mark-played-items>
</extended-runtime-options>
</server>
<import hidden-files="no">
<magic-file>share/file/magic</magic-file>
<filesystem-charset>UTF-8</filesystem-charset>
<metadata-charset>UTF-8</metadata-charset>
<scripting script-charset="UTF-8">
<common-script>/i-data/md0/admin/mediatomb/share/mediatomb/js/common.js</common-script>
<playlist-script>/i-data/md0/admin/mediatomb/share/mediatomb/js/playlists.js</playlist-script>
<virtual-layout type="builtin">
<import-script>/i-data/md0/admin/mediatomb/share/mediatomb/js/import.js</import-script>
</virtual-layout>
</scripting>
<mappings>
<extension-mimetype ignore-unknown="no">
<map from="mp3" to="audio/mpeg"/>
<map from="ogx" to="application/ogg"/>
<map from="ogv" to="video/ogg"/>
<map from="oga" to="audio/ogg"/>
<map from="ogg" to="audio/ogg"/>
<map from="ogm" to="video/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="flv" to="video/x-flv"/>
<map from="mkv" to="video/mpeg"/>
<map from="mka" to="audio/x-matroska"/>
<map from="mov" to="video/mpeg"/>
<map from="m2t" to="video/mpeg"/>
<map from="ts" to="video/mpeg"/>
<!-- Uncomment the line below for PS3 divx support -->
<!-- <map from="avi" to="video/divx"/> -->
<!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 -->
<!-- <map from="avi" to="video/avi"/> -->
</extension-mimetype>
<mimetype-upnpclass>
<map from="audio/*" 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"/>
<treat mimetype="audio/x-wav" as="pcm"/>
<treat mimetype="audio/L16" as="pcm"/>
<treat mimetype="video/x-msvideo" as="avi"/>
<treat mimetype="video/mp4" as="mp4"/>
<treat mimetype="audio/mp4" as="mp4"/>
<treat mimetype="application/x-iso9660" as="dvd"/>
<treat mimetype="application/x-iso9660-image" as="dvd"/>
</mimetype-contenttype>
</mappings>
</import>
<transcoding enabled="no">
<mimetype-profile-mappings>
<transcode mimetype="video/x-flv" using="vlcmpeg"/>
<transcode mimetype="application/ogg" using="vlcmpeg"/>
<transcode mimetype="application/ogg" using="oggflac2raw"/>
<transcode mimetype="audio/x-flac" using="oggflac2raw"/>
</mimetype-profile-mappings>
<profiles>
<profile name="oggflac2raw" enabled="no" type="external">
<mimetype>audio/L16</mimetype>
<accept-url>no</accept-url>
<first-resource>yes</first-resource>
<accept-ogg-theora>no</accept-ogg-theora>
<agent command="ogg123" arguments="-d raw -o byteorder:big -f %out %in"/>
<buffer size="1048576" chunk-size="131072" fill-size="262144"/>
</profile>
<profile name="vlcmpeg" enabled="no" type="external">
<mimetype>video/mpeg</mimetype>
<accept-url>yes</accept-url>
<first-resource>yes</first-resource>
<accept-ogg-theora>yes</accept-ogg-theora>
<agent command="vlc" arguments="-I dummy %in --sout #transcode{venc=ffmpeg,vcodec=mp2v,vb=4096,fps=25,aenc=ffmpeg,acodec=mpga,ab=192,samplerate=44100,channels=2}:standard{access=file,mux=ps,dst=%out} vlc:quit"/>
<buffer size="14400000" chunk-size="512000" fill-size="120000"/>
</profile>
</profiles>
</transcoding>
</config>

MediaTomb und die telnet Aktivierung automatisch beim Booten auf dem NAS starten:
cd /usr/local/zy-pkgs/etc/init.d

Nicht ZYPKG_DEPS entsprechend bearbeiten, sondern diesen Link anlegen:
ln -sf /i-data/md0/admin/start.sh start
oder direkt im Stammverzeichnis
ln -sf /i-data/md0/admin/start.sh /usr/local/zy-pkgs/etc/init.d/start

Damit MediaTomb über die telnet Konsole mit dem Kurznamen mt gestartet werden kann,
noch diesen Link anlegen:
cd /usr/local/bin
ln -sf /i-data/md0/admin/mediatomb/mediatomb.sh mt
Vorher besser mit ls kontrollieren, ob der Name mt bereits vergeben ist!
Jetzt kann MediaTomb einfach von telnet aus mit dem Befehl mt gestartet werden.
Der Befehl mit einem Parameter beendet MediaTomb, z.B. mt n.

Im Verzeichnis /i-data/md0/admin dieses Startskript mit dem Namen start.sh anlegen.
Damit können dann auch künftig weitere Programmme beim Booten gestartet werden.

#!/bin/sh
#telnet aktivieren
/usr/local/btn/open_back_door.sh
#MediaTomb atomatisch beim Booten starten
/i-data/md0/admin/mediatomb/mediatomb.sh &
exit

Vorsicht - das "&" bei ".../mediatomb.sh &" ist wichtig, da das NAS sonst beim Booten hängen bleiben kann.


[Beitrag von liab am 27. Jan 2012, 03:41 bearbeitet]
alexinc
Ist häufiger hier
#94 erstellt: 04. Apr 2012, 16:03
schade, der download zur compilierten version scheint nicht mehr zu funktionieren.. gibts denn generell updates zur thematik? habe soeben mit ffp rumgespielt und den dringenden wunsch, mich vom twonky zu verabschieden. leider hat der mediatomb vom ffp einige dinge nicht mitcompiliert - stichwort: js support für virtual-layout.
liab
Inventar
#95 erstellt: 04. Apr 2012, 18:32
Schicke mir eine pn mit Deiner Mailadresse und ich schicke Dir meine Version.
thowit
Neuling
#96 erstellt: 17. Mai 2012, 15:03
Beste Lösung für mich bisher:
1) Auf die (versteckte) Twonky Konfigurationsseite gehen:
http://platte:9001/config
Bzw. http://platte:9001/configpage/config-content.html (da sind dann oben auch die Knöpfe zum speichern).
2) Dort unten in der Liste der Media Receivers den Fernseher von "Generic Media Receiver" auf "Samsung TV" stellen.
3) Ganz oben auf der Seite auf "Save Changes" klicken. Evtl. neustarten.
Tada, alle Videos laufen!
Severall
Neuling
#97 erstellt: 23. Jun 2012, 18:15
Servus!

Ich habe, glaub ich, alle Einstellungen ausprobiert, die in diesem Them erwähnt waren - leider immer noch ohne Erfolg.
Ich habe Samsung PS50C6970 YSXZG und Ubuntu 11.10. Was mich interessieren würde: muss bloss config.xml aus /etc/mediatomb editiert werden oder auch sein default-"Klon" aus /.mediatomb/?

Mein config.xml aus etc/mediatomb sieht aktuell so aus - vielen herzlichen Danke für die Hilfe!

"<?xml version="1.0" encoding="UTF-8"?>
<config version="2" xmlns="http://mediatomb.cc/config/2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/config/2 http://mediatomb.cc/config/2.xsd\"><!--
Read /usr/share/doc/mediatomb-common/README.gz section 6 for more
information on creating and using config.xml configration files.
-->
<server>
<ui enabled="yes" show-tooltips="yes">
<accounts enabled="yes" session-timeout="30">
<account user="mediatomb" password="mediatomb"/>
</accounts>
</ui>
<name>MediaTomb</name>
<udn>uuid:257ba9ee-23cf-4860-ba1d-c2ef18e0fd42</udn>
<home>/var/lib/mediatomb</home>
<webroot>/usr/share/mediatomb/web</webroot>
<storage caching="yes">
<sqlite3 enabled="yes">
<database-file>mediatomb.db</database-file>
</sqlite3>
<mysql enabled="no">
<host>localhost</host>
<username>mediatomb</username>
<database>mediatomb</database>
</mysql>
</storage>
<protocolInfo extend="yes"/><!-- For PS3 support change to "yes" --><!--
Uncomment the lines below to get rid of jerky avi playback on the
DSM320 or to enable subtitles support on the DSM units
-->
<custom-http-headers>
<add header="transferMode.dlna.org: Streaming"/>
<add header="contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000"/>
</custom-http-headers>

<manufacturerURL>redsonic.com</manufacturerURL>
<modelNumber>105</modelNumber>
--><!-- Uncomment the line below if you have a Telegent TG100 --><!--
<upnp-string-limit>101</upnp-string-limit>
-->
<extended-runtime-options>
<ffmpegthumbnailer enabled="no">
<thumbnail-size>128</thumbnail-size>
<seek-percentage>5</seek-percentage>
<filmstrip-overlay>yes</filmstrip-overlay>
<workaround-bugs>no</workaround-bugs>
</ffmpegthumbnailer>
<mark-played-items enabled="no" suppress-cds-updates="yes">
<string mode="prepend">*</string>
</mark-played-items>
</extended-runtime-options>
</server>
<import hidden-files="no">
<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>
<dvd-script>/usr/share/mediatomb/js/import-dvd.js</dvd-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/mpeg"/>
<map from="mkv" to="video/mpeg"/>
<map from="mpg" to="video/mpeg"/>
<map from="flv" to="video/x-flv"/>
<map from="mkv" to="video/x-matroska"/>
<map from="mka" to="audio/x-matroska"/><!-- Uncomment the line below for PS3 divx support --><!-- <map from="avi" to="video/divx"/> --><!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 --><!-- <map from="avi" to="video/avi"/> -->
</extension-mimetype>
<mimetype-upnpclass>
<map from="audio/*" to="object.item.audioItem.musicTrack"/>
<map from="video/*" to="object.item.videoItem"/>
<map from="image/*" to="object.item.imageItem"/>
<map from="application/ogg" to="object.item.audioItem.musicTrack"/>
</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"/>
<treat mimetype="audio/x-wav" as="pcm"/>
<treat mimetype="audio/L16" as="pcm"/>
<treat mimetype="video/x-msvideo" as="avi"/>
<treat mimetype="video/mp4" as="mp4"/>
<treat mimetype="audio/mp4" as="mp4"/>
<treat mimetype="application/x-iso9660" as="dvd"/>
<treat mimetype="application/x-iso9660-image" as="dvd"/>
<treat mimetype="video/x-matroska" as="mkv"/>
<treat mimetype="audio/x-matroska" as="mka"/>
</mimetype-contenttype>
</mappings>
<online-content><!-- Make sure to setup a transcoding profile for flv -->
<YouTube enabled="no" refresh="28800" update-at-start="no" purge-after="604800" racy-content="exclude" format="flv" hd="no">
<favorites user="mediatomb"/>
<standardfeed feed="most_viewed" time-range="today"/>
<playlists user="mediatomb"/>
<uploads user="mediatomb"/>
<standardfeed feed="recently_featured" time-range="today"/>
</YouTube>
<Weborama enabled="no" refresh="28800" update-at-start="no">
<playlist name="Active" type="playlist" mood="active"/>
<playlist name="Metal" type="playlist">
<filter>
<genres>metal</genres>
</filter>
</playlist>
</Weborama>
<AppleTrailers enabled="no" refresh="43200" update-at-start="no" resolution="640"/>
</online-content>
</import>
<transcoding enabled="yes">
<mimetype-profile-mappings>
<transcode mimetype="video/x-flv" using="vlcmpeg"/>
<transcode mimetype="application/ogg" using="vlcmpeg"/>
<transcode mimetype="application/ogg" using="oggflac2raw"/>
<transcode mimetype="audio/x-flac" using="oggflac2raw"/>
</mimetype-profile-mappings>
<profiles>
<profile name="oggflac2raw" enabled="no" type="external">
<mimetype>audio/L16</mimetype>
<accept-url>no</accept-url>
<first-resource>yes</first-resource>
<accept-ogg-theora>no</accept-ogg-theora>
<agent command="ogg123" arguments="-d raw -o byteorder:big -f %out %in"/>
<buffer size="1048576" chunk-size="131072" fill-size="262144"/>
</profile>
<profile name="vlcmpeg" enabled="no" type="external">
<mimetype>video/mpeg</mimetype>
<accept-url>yes</accept-url>
<first-resource>yes</first-resource>
<accept-ogg-theora>yes</accept-ogg-theora>
<agent command="vlc" arguments="-I dummy %in --sout #transcode{venc=ffmpeg,vcodec=mp2v,vb=4096,fps=25,aenc=ffmpeg,acodec=mpga,ab=192,samplerate=44100,channels=2}:standard{access=file,mux=ps,dst=%out} vlc:quit"/>
<buffer size="14400000" chunk-size="512000" fill-size="120000"/>
</profile>
</profiles>
</transcoding>
</config>"
liab
Inventar
#98 erstellt: 23. Jun 2012, 21:21
Die config kommt ins home/.mediatomb.
Severall
Neuling
#99 erstellt: 24. Jun 2012, 00:39
Danke, liab! Soll dann config etc/mediatomb gar nicht beachtet werden, oder auf 'default' jetzt gesetzt werden? Vielen Dank!

P.S.: habe gleich "meinen" in /.mediatomb kopiert/alten ersetzt - geht leider auch nicht..


[Beitrag von Severall am 24. Jun 2012, 00:49 bearbeitet]
liab
Inventar
#100 erstellt: 29. Jun 2012, 01:58
Wie hast Du MT installiert, selber compiliert oder über die Datenbank? In etc steht nichts von mediatomb, die config kommt nach /home/userxyz/.mediatomb. Den Punkt nicht vergessen!
Was passiert, wenn Du eine Konsole öffnest und mediatomb eingibts? So sollte es aussehen:

MediaTomb UPnP Server version 0.12.1 - http://mediatomb.cc/

===============================================================================
Copyright 2005-2010 Gena Batsyan, Sergey Bostandzhyan, Leonhard Wimmer.
MediaTomb is free software, covered by the GNU General Public License version 2

2012-06-29 01:50:34 INFO: Loading configuration from: /home/wbail/.mediatomb/config.xml
2012-06-29 01:50:34 INFO: Checking configuration...
2012-06-29 01:50:34 INFO: Setting filesystem import charset to UTF-8
2012-06-29 01:50:34 INFO: Setting metadata import charset to UTF-8
2012-06-29 01:50:34 INFO: Setting playlist charset to UTF-8
2012-06-29 01:50:34 WARNING: You enabled the YouTube feature, which allows you
to watch YouTube videos on your UPnP device!
Please check http://www.youtube.com/t/terms
By using this feature you may be violating YouTube
service terms and conditions!

2012-06-29 01:50:34 INFO: Configuration check succeeded.
2012-06-29 01:50:34 WARNING: Sqlite3 database seems to be corrupt or doesn't exist yet.
2012-06-29 01:50:34 INFO: no sqlite3 backup is available or backup is corrupt. automatically creating database...
2012-06-29 01:50:34 INFO: database created successfully.
2012-06-29 01:50:34 INFO: Initialized port: 49153
2012-06-29 01:50:34 INFO: Server bound to: 192.168.0.2
2012-06-29 01:50:34 INFO: Adding HTTP header "transferMode.dlna.org: Streaming"
2012-06-29 01:50:34 INFO: Adding HTTP header "contentFeatures.dlna.org: DLNA.ORG_OP=00"
2012-06-29 01:50:35 INFO: MediaTomb Web UI can be reached by following this link:
2012-06-29 01:50:35 INFO: http://192.168.0.2:49153/
Suche:
Gehe zu Seite: |vorherige| Erste Letzte
Das könnte Dich auch interessieren:
Samsung H6470 DLNA + NAS
ViViD2000 am 30.11.2014  –  Letzte Antwort am 01.12.2014  –  3 Beiträge
Unerklärliches Phänomen (Samsung TV, DLNA)
smitty16 am 12.11.2011  –  Letzte Antwort am 14.11.2011  –  7 Beiträge
NAS für Samsung UE40F6500
mns1188 am 07.01.2014  –  Letzte Antwort am 08.01.2014  –  4 Beiträge
Samsung UE40F6500 und DLNA
jochen35 am 26.04.2013  –  Letzte Antwort am 10.01.2014  –  10 Beiträge
Samsung DLNA ohne PC?
quellenfeuer am 05.06.2011  –  Letzte Antwort am 07.06.2011  –  9 Beiträge
Serviio 0.6.2 und Samsung UE55ES8090
Sartrox am 10.08.2012  –  Letzte Antwort am 11.08.2012  –  3 Beiträge
Filmdatei von NAS mit Samsung UE40D8090 ansehen
Gorden_Sh am 16.04.2011  –  Letzte Antwort am 24.04.2011  –  10 Beiträge
.mkv Dateien abspielen, via Serviio
LieberKerl am 09.04.2013  –  Letzte Antwort am 27.05.2014  –  7 Beiträge
Samsung DLNA NAS Laufwerk AVI-Codierung
Thunder1973Blau am 04.01.2012  –  Letzte Antwort am 06.01.2012  –  5 Beiträge
40B653 Medi@2.0 DLNA mit Icy Box als NAS
christian2060 am 24.11.2009  –  Letzte Antwort am 30.11.2009  –  4 Beiträge

Anzeige

Aktuelle Aktion

Partner Widget schließen

  • beyerdynamic Logo
  • DALI Logo
  • SAMSUNG Logo
  • TCL Logo

Forumsstatistik Widget schließen

  • Registrierte Mitglieder925.721 ( Heute: 1 )
  • Neuestes MitgliedBluebyte75.
  • Gesamtzahl an Themen1.551.070
  • Gesamtzahl an Beiträgen21.537.342