Gerbera

Gerbera is UPnP media server that streams digital media through a home network to UPnP compatible devices.]] Gerbera is based on MediaTomb 0.12.1, which is no longer maintained.

Kernel
Gerbera requires IP multicast support for automatic discovery by UPnP devices.

Gerbera supports inotify, which is a file-monitoring mechanism that allows Gerbera to be notified about changes to files immediately. For more information, please consult the Gerbera trail operations documentation.

Emerge
After setting any USE configuration, proceed to install Gerbera:

Network

 * To set the network interface that Gerbera binds to, add the following to the GERBERA_OPTIONS variable, and substitute  with the appropriate value e.g.


 * To set the IP address that Gerbera binds to, add the following to the GERBERA_OPTIONS variable, and substitute  with the appropriate value e.g.

MySQL

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


 * Set the  attribute to   for the   element:


 * Set the,  ,   and   elements:

{{FileBox|filename=/etc/gerbera/config.xml|lang=xml| host ,,   and   values set in the Gerbera configuration file:

{{Cmd }}
 * CREATE DATABASE database;
 * GRANT ALL ON database.* TO 'username'@'host' IDENTIFIED BY 'password';
 * prompt=mysql>
 * color=white

Transcoding
Gerbera 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 the Gerbera transcoding configuration 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
Gerbera's transcoding support is very flexible and any application capable of transcoding can be used. For more information, please consult the Gerbera 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:

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:

OpenRC

 * To start Gerbera:


 * To start Gerbera at boot:

systemd
Start Gerbera:

Start Gerbera at boot:

Mimetype mapping
Gerbera (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.