1<?xml version="1.0" encoding="UTF-8"?>
2<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">
3  <!--
4     See https://gerbera.io or read the docs for more
5     information on creating and using config.xml configuration files.
6    -->
7  <server>
8    <ui enabled="yes" show-tooltips="yes">
9      <accounts enabled="no" session-timeout="30">
10        <account user="gerbera" password="gerbera" />
11      </accounts>
12    </ui>
13    <name>Gerbera</name>
14    <udn>uuid:7b156a2a-d79e-4763-983b-ae1d13fe0ff4</udn>
15    <home>/var/lib/gerbera</home>
16    <webroot>/usr/share/gerbera/web</webroot>
17    <!--
18        How frequently (in seconds) to send ssdp:alive advertisements.
19        Minimum alive value accepted is: 62
20
21        The advertisement will be sent every (A/2)-30 seconds,
22        and will have a cache-control max-age of A where A is
23        the value configured here. Ex: A value of 62 will result
24        in an SSDP advertisement being sent every second.
25    -->
26    <alive>180</alive>
27    <storage>
28      <sqlite3 enabled="yes">
29        <database-file>gerbera.db</database-file>
30      </sqlite3>
31    </storage>
32    <containers enabled="yes">
33      <container location="/LastAdded" title="Recently Added" sort="-last_updated">
34        <filter>upnp:class derivedfrom "object.item" and last_updated &gt; "@last7"</filter>
35      </container>
36      <container location="/LastModified" title="Recently Modified" sort="-last_modified">
37        <filter>upnp:class derivedfrom "object.item" and last_modified &gt; "@last7"</filter>
38      </container>
39    </containers>
40    <extended-runtime-options>
41      <mark-played-items enabled="no" suppress-cds-updates="yes">
42        <string mode="prepend">*</string>
43        <mark>
44          <content>video</content>
45        </mark>
46      </mark-played-items>
47    </extended-runtime-options>
48  </server>
49  <import hidden-files="no">
50    <scripting>
51      <virtual-layout type="builtin" />
52    </scripting>
53    <mappings>
54      <extension-mimetype ignore-unknown="no">
55        <map from="asf" to="video/x-ms-asf" />
56        <map from="asx" to="video/x-ms-asx" />
57        <map from="dff" to="audio/x-dff" />
58        <map from="dsd" to="audio/x-dsd" />
59        <map from="dsf" to="audio/x-dsf" />
60        <map from="flv" to="video/x-flv" />
61        <map from="m2ts" to="video/mp2t" />
62        <map from="m3u" to="audio/x-mpegurl" />
63        <map from="m3u8" to="audio/x-mpegurl" />
64        <map from="m4a" to="audio/mp4" />
65        <map from="mka" to="audio/x-matroska" />
66        <map from="mkv" to="video/x-matroska" />
67        <map from="mp3" to="audio/mpeg" />
68        <map from="mts" to="video/mp2t" />
69        <map from="oga" to="audio/ogg" />
70        <map from="ogg" to="audio/ogg" />
71        <map from="ogm" to="video/ogg" />
72        <map from="ogv" to="video/ogg" />
73        <map from="ogx" to="application/ogg" />
74        <map from="pls" to="audio/x-scpls" />
75        <map from="ts" to="video/mp2t" />
76        <map from="tsa" to="audio/mp2t" />
77        <map from="tsv" to="video/mp2t" />
78        <map from="wax" to="audio/x-ms-wax" />
79        <map from="wm" to="video/x-ms-wm" />
80        <map from="wma" to="audio/x-ms-wma" />
81        <map from="wmv" to="video/x-ms-wmv" />
82        <map from="wmx" to="video/x-ms-wmx" />
83        <map from="wv" to="audio/x-wavpack" />
84        <map from="wvx" to="video/x-ms-wvx" />
85        <!-- Uncomment the line below for PS3 divx support -->
86        <!-- <map from="avi" to="video/divx" /> -->
87        <!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 -->
88        <!-- <map from="avi" to="video/avi" /> -->
89      </extension-mimetype>
90      <mimetype-upnpclass>
91        <map from="application/ogg" to="object.item.audioItem.musicTrack" />
92        <map from="audio/*" to="object.item.audioItem.musicTrack" />
93        <map from="image/*" to="object.item.imageItem" />
94        <map from="video/*" to="object.item.videoItem" />
95      </mimetype-upnpclass>
96      <mimetype-contenttype>
97        <treat mimetype="application/ogg" as="ogg" />
98        <treat mimetype="audio/L16" as="pcm" />
99        <treat mimetype="audio/flac" as="flac" />
100        <treat mimetype="audio/mp4" as="mp4" />
101        <treat mimetype="audio/mpeg" as="mp3" />
102        <treat mimetype="audio/ogg" as="ogg" />
103        <treat mimetype="audio/x-dsd" as="dsd" />
104        <treat mimetype="audio/x-flac" as="flac" />
105        <treat mimetype="audio/x-matroska" as="mka" />
106        <treat mimetype="audio/x-mpegurl" as="playlist" />
107        <treat mimetype="audio/x-ms-wma" as="wma" />
108        <treat mimetype="audio/x-scpls" as="playlist" />
109        <treat mimetype="audio/x-wav" as="pcm" />
110        <treat mimetype="audio/x-wavpack" as="wv" />
111        <treat mimetype="image/jpeg" as="jpg" />
112        <treat mimetype="image/png" as="png" />
113        <treat mimetype="video/mkv" as="mkv" />
114        <treat mimetype="video/mp4" as="mp4" />
115        <treat mimetype="video/mpeg" as="mpeg" />
116        <treat mimetype="video/x-matroska" as="mkv" />
117        <treat mimetype="video/x-mkv" as="mkv" />
118        <treat mimetype="video/x-ms-asf" as="asf" />
119        <treat mimetype="video/x-ms-asx" as="playlist" />
120        <treat mimetype="video/x-msvideo" as="avi" />
121      </mimetype-contenttype>
122      <mimetype-dlnatransfermode>
123        <map from="application/ogg" to="Streaming" />
124        <map from="application/x-srt" to="Background" />
125        <map from="audio/*" to="Streaming" />
126        <map from="image/*" to="Interactive" />
127        <map from="srt" to="Background" />
128        <map from="text/*" to="Background" />
129        <map from="video/*" to="Streaming" />
130      </mimetype-dlnatransfermode>
131      <contenttype-dlnaprofile>
132        <map from="asf" to="VC_ASF_AP_L2_WMA" />
133        <map from="avi" to="AVI" />
134        <map from="dsd" to="DSF" />
135        <map from="flac" to="FLAC" />
136        <map from="jpg" to="JPEG_LRG" />
137        <map from="mka" to="MKV" />
138        <map from="mkv" to="MKV" />
139        <map from="mp3" to="MP3" />
140        <map from="mp4" to="AVC_MP4_EU" />
141        <map from="mpeg" to="MPEG_PS_PAL" />
142        <map from="ogg" to="OGG" />
143        <map from="pcm" to="LPCM" />
144        <map from="png" to="PNG_LRG" />
145        <map from="wma" to="WMAFULL" />
146      </contenttype-dlnaprofile>
147    </mappings>
148  </import>
149  <transcoding enabled="no">
150    <mimetype-profile-mappings>
151      <transcode mimetype="application/ogg" using="vlcmpeg" />
152      <transcode mimetype="audio/ogg" using="ogg2mp3" />
153      <transcode mimetype="video/x-flv" using="vlcmpeg" />
154    </mimetype-profile-mappings>
155    <profiles>
156      <profile name="ogg2mp3" enabled="no" type="external">
157        <mimetype>audio/mpeg</mimetype>
158        <accept-url>no</accept-url>
159        <first-resource>yes</first-resource>
160        <accept-ogg-theora>no</accept-ogg-theora>
161        <agent command="ffmpeg" arguments="-y -i %in -f mp3 %out" />
162        <buffer size="1048576" chunk-size="131072" fill-size="262144" />
163      </profile>
164      <profile name="vlcmpeg" enabled="no" type="external">
165        <mimetype>video/mpeg</mimetype>
166        <accept-url>yes</accept-url>
167        <first-resource>yes</first-resource>
168        <accept-ogg-theora>yes</accept-ogg-theora>
169        <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" />
170        <buffer size="14400000" chunk-size="512000" fill-size="120000" />
171      </profile>
172    </profiles>
173  </transcoding>
174</config>
175
176