Gerbera

MediaTomb is an open source (GPL) UPnP MediaServer with a nice web user interface. It allows you to stream your digital media through your home network and access it on a variety of UPnP compatible devices.

Kernel
MediaTomb supports inotify, which is a file-monitoring mechanism that allows MediaTomb to be notified about changes to files immediately. For more information, please consult Section 2.1.5 of the MediaTomb User Interface documentation.

The following kernel options are required for inotify support.

Software

 * Install MediaTomb.

Network

 * To set the interface that MediaTomb binds to, add the following to the  variable.


 * To set the IP address that MediaTomb binds to, add the following to the  variable.

MySQL

 * To enable MySQL support, set the  attribute to   for the   element.


 * Set the  attribute to   for the   element.

{{FileBox|filename=/etc/mediatomb/config.xml|lang=xml| host ,,   and   values set in the MediaTomb configuration file. {{Cmd }}
 * Set the,  ,   and   elements.
 * CREATE DATABASE database;
 * GRANT ALL ON database.* TO 'username'@'host' IDENTIFIED BY 'password';
 * prompt=mysql>
 * color=white

Transcoding
MediaTomb supports transcoding media files to formats that are supported by the UPnP device being used. The default Gentoo configuration file uses FFmpeg to transcode FLAC, Flash, Theora and Vorbis files. For more information, please consult section 6.3 of the MediaTomb documentation.
 * To enable transcoding support, set the  attribute to   for the   element.


 * For every additional mimetype that requires transcoding, add the following section in between the  and   elements and substitute   and   with the appropriate values e.g. 


 * Install FFmpeg.

Alternative transcoders
MediaTomb's transcoding support is very flexible and any application capable of transcoding can be used. For more information, please consult the MediaTomb Transcoding documentation.

VLC
Audio
 * To enable VLC audio transcoding, replace the  element for the   profile with the following:


 * Set the  element to   for the   profile.

Video
 * To enable VLC video transcoding, replace the  element for the   profile with the following:


 * Set the  element to   for the   profile.


 * Install VLC.

MPlayer
Video
 * To enable MPlayer video transcoding, replace the  element for the   profile with the following.


 * Set the  element to   for the   profile.


 * Install MPlayer.

DLNA

 * To enable DLNA support, set the  attribute to   for the   element.


 * For DLNA enabled TVs (e.g. Samsung), add the following section in between the  and   elements.

Online services
MediaTomb supports streaming online content to UPnP devices from services such as YouTube. For more information, please consult Section 6.2.1 of the MediaTomb documentation.

YouTube

 * To enable YouTube support, set the  attribute to   for the   element.


 * To enable high definition (if available) YouTube videos, set the  attribute to   for the   element.


 * For UPnP devices that don't support MP4 video, enable transcoding and add the following section in between the  and   elements.

Video thumbnails

 * To enable video thumbnail support, set the  attribute to   for the   element.


 * To overlay a filmstrip border on the generated thumbnail, set the  element to.


 * For DLNA enabled devices that support video thumbnails (e.g. PlayStation 3), set the  attribute to   for the   element.

Raw images

 * To enable (Canon CR2 and Nikon NEF) raw image support, enable transcoding and add the following section in between the  and   elements.


 * Add the following section in between the  and   elements.


 * For every additional raw image format (supported by dcraw), add the following section in between the  and   elements, and substitute   with the appropriate value e.g. 


 * Since dcraw only outputs to stdout, the output will need to be redirected with the following script.


 * Install dcraw.

Starting

 * To start MediaTomb.


 * To start MediaTomb at boot.

Mimetype mapping
MediaTomb (via libmagic) may identify the mimetype of some files incorrectly. A common case is where videos with the  extension are identified as the mimetype. To override the mimetype returned by libmagic, add the following section in between the  and   elements, and substitute   and   with the appropriate values e.g. 