Difference between revisions of "Mediatomb"

From Amahi Wiki
Jump to: navigation, search
(Creation of page)
 
(Added custom import description)
Line 4: Line 4:
  
 
=== Configuration Options: ===
 
=== Configuration Options: ===
<u>Directory scanning</u><br>
+
====Directory scanning====
 
By default, there are no directory's scanned.  
 
By default, there are no directory's scanned.  
 
To automatically scan a directory:
 
To automatically scan a directory:
Line 16: Line 16:
  
 
The media in the share will now be automatically added to the database and will be available on your UPnP-ready device.
 
The media in the share will now be automatically added to the database and will be available on your UPnP-ready device.
 +
 +
====Custom import scripts====
 +
Mediatomb has the possibility to display your imported media files with a customized directory view. Some examples can be found [http://mediatomb.cc/dokuwiki/scripting:scripting HERE]
 +
 +
To use the custom script you'll need to do the following:
 +
 +
As root-user:
 +
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>
  
 
=== Troubleshooting: ===
 
=== Troubleshooting: ===

Revision as of 23:58, 11 December 2010

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.


Configuration Options:

Directory scanning

By default, there are no directory's scanned. To automatically scan a directory:

  • click on "Filesystem"
  • navigate to the directory you want to scan
  • click on the Add as autoscan.png
  • select "Timed" and "Recursive"
  • set the time between scans to your liking
  • click on "Set" when done

The media in the share will now be automatically added to the database and will be available on your UPnP-ready device.

Custom import scripts

Mediatomb has the possibility to display your imported media files with a customized directory view. Some examples can be found HERE

To use the custom script you'll need to do the following:

As root-user: Create a custom .js script in /usr/share/mediatomb/js/

On line 60 of /etc/mediatomb/config.xml change

<virtual-layout type="builtin">
<import-script>/usr/share/mediatomb/js/import.js</import-script>

into

<virtual-layout type="js">
<import-script>/usr/share/mediatomb/js/<yourscriptname>.js</import-script>

restart mediatomb: service mediatomb restart

Troubleshooting:

  • Transcoding of MKV-files isn't working.

Check the logfile of the transcoding process (/var/log/mediatomb-transcode.log) and look for errors. If you can't figure out what's wrong, fpaste the last 100 lines of the logfile (using tail 100 /var/log/mediatomb-transcode.log | fpaste) and paste the returned URL in the forums or on the IRC-channel.