Changes

From Amahi Wiki
Jump to: navigation, search
935 bytes added ,  03:44, 23 June 2020
[[Category:Apps]]
[http://www.amahi.org/apps/mediatomb MediaTomb ] is an UPnP MediaServer with an easy web user interface. It allows you to stream your digital media through your home network and listen to/watch it on a variety of UPnP compatible devices.
====Custom import scripts====
Mediatomb has the possibility to display your imported media files with a customized directory view. Some examples and descriptions of how to make your own scripts can be found at the [http://mediatomb.cc/dokuwiki/scripting:scripting HEREMediatomb wiki]site.
To use the custom script you'll need to do the following:
As root-user:<br>* Create a custom .js script in <small>/usr/share/mediatomb/js/</small>
* On line 60 of <small>/etc/mediatomb/config.xml</small> change
<small> <virtual-layout type="builtin"></small><br><small> <import-script>/usr/share/mediatomb/js/import.js</import-script></small>}}
into
<small> <virtual-layout type="js"></small><br><small> <import-script>/usr/share/mediatomb/js/<yourscriptname>.js</import-script></small>}}
* restart mediatomb: <small>service mediatomb restart</small>
==== Samsung configuration ====The default configuration of MediaTomb is optimized for use with a PS3. However, it is also possible to use MediaTomb to stream avi files to Samsung TV's. '''Note''' This might cause PS3-support to fail. To enable MediaTomb to stream avi files to your Samsung TV, do the following: As root-user:<br>* Add the following after line 28 of <small>/etc/mediatomb/config.xml</small>   <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=017000 00000000000000000000000000"/> </custom-http-headers>}} * Change line 91 of <small>/etc/mediatomb/config.xml</small> into  <map from="avi" to="video/x-divx"/>}} * Save the config.xml and restart MediaTomb <small>service mediatomb restart</small> * Remove and re-add all you avi files === Troubleshooting: ===
* Transcoding of MKV-files isn't working.
 ** Check the logfile of the transcoding process (<small>/var/log/mediatomb-transcode.log</small>) and look for errors. ** If you can't figure out what's wrong, fpaste the last 100 lines of the logfile (using <small>tail 100 /var/log/mediatomb-transcode.log | fpaste</small>) and paste the returned URL in the forums or on the IRC-channel.
12,424

edits