1 |
<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"> |
2 |
<!-- |
3 |
See http://gerbera.io or read the docs for more |
4 |
information on creating and using config.xml configration files. |
5 |
--> |
6 |
<server> |
7 |
<ui enabled="yes" show-tooltips="yes"> |
8 |
<accounts enabled="no" session-timeout="30"> |
9 |
<account user="gerbera" password="gerbera"/> |
10 |
</accounts> |
11 |
</ui> |
12 |
<name>Gerbera</name> |
13 |
<udn>uuid:ac239fa6-6dfc-4e0e-965b-3af47ecfa263</udn> |
14 |
<home>/etc/gerbera</home> |
15 |
<webroot>/usr/share/gerbera/web</webroot> |
16 |
<!-- |
17 |
How frequently (in seconds) to send ssdp:alive advertisements. |
18 |
Minimum alive value accepted is: 62 |
19 |
|
20 |
The advertisement will be sent every (A/2)-30 seconds, |
21 |
and will have a cache-control max-age of A where A is |
22 |
the value configured here. Ex: A value of 62 will result |
23 |
in an SSDP advertisement being sent every second. |
24 |
--> |
25 |
<alive>1800</alive> |
26 |
<storage> |
27 |
<sqlite3 enabled="yes"> |
28 |
<database-file>gerbera.db</database-file> |
29 |
</sqlite3> |
30 |
</storage> |
31 |
<protocolInfo extend="no"/><!-- For PS3 support change to "yes" --> |
32 |
<!-- |
33 |
Uncomment the lines below to get rid of jerky avi playback on the |
34 |
DSM320 or to enable subtitles support on the DSM units |
35 |
--> |
36 |
<!-- |
37 |
<custom-http-headers> |
38 |
<add header="X-User-Agent: redsonic"/> |
39 |
</custom-http-headers> |
40 |
|
41 |
<manufacturerURL>redsonic.com</manufacturerURL> |
42 |
<modelNumber>105</modelNumber> |
43 |
--> |
44 |
<!-- Uncomment the line below if you have a Telegent TG100 --> |
45 |
<!-- |
46 |
<upnp-string-limit>101</upnp-string-limit> |
47 |
--> |
48 |
<extended-runtime-options> |
49 |
<mark-played-items enabled="no" suppress-cds-updates="yes"> |
50 |
<string mode="prepend">*</string> |
51 |
<mark> |
52 |
<content>video</content> |
53 |
</mark> |
54 |
</mark-played-items> |
55 |
</extended-runtime-options> |
56 |
</server> |
57 |
<import hidden-files="no"> |
58 |
<scripting script-charset="UTF-8"> |
59 |
<common-script>/usr/share/gerbera/js/common.js</common-script> |
60 |
<playlist-script>/usr/share/gerbera/js/playlists.js</playlist-script> |
61 |
<virtual-layout type="builtin"> |
62 |
<import-script>/usr/share/gerbera/js/import.js</import-script> |
63 |
</virtual-layout> |
64 |
</scripting> |
65 |
<mappings> |
66 |
<extension-mimetype ignore-unknown="no"> |
67 |
<map from="mp3" to="audio/mpeg"/> |
68 |
<map from="ogx" to="application/ogg"/> |
69 |
<map from="ogv" to="video/ogg"/> |
70 |
<map from="oga" to="audio/ogg"/> |
71 |
<map from="ogg" to="audio/ogg"/> |
72 |
<map from="ogm" to="video/ogg"/> |
73 |
<map from="asf" to="video/x-ms-asf"/> |
74 |
<map from="asx" to="video/x-ms-asf"/> |
75 |
<map from="wma" to="audio/x-ms-wma"/> |
76 |
<map from="wax" to="audio/x-ms-wax"/> |
77 |
<map from="wmv" to="video/x-ms-wmv"/> |
78 |
<map from="wvx" to="video/x-ms-wvx"/> |
79 |
<map from="wm" to="video/x-ms-wm"/> |
80 |
<map from="wmx" to="video/x-ms-wmx"/> |
81 |
<map from="m3u" to="audio/x-mpegurl"/> |
82 |
<map from="pls" to="audio/x-scpls"/> |
83 |
<map from="flv" to="video/x-flv"/> |
84 |
<map from="mkv" to="video/x-matroska"/> |
85 |
<map from="mka" to="audio/x-matroska"/> |
86 |
<!-- Uncomment the line below for PS3 divx support --> |
87 |
<!-- <map from="avi" to="video/divx"/> --> |
88 |
<!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 --> |
89 |
<!-- <map from="avi" to="video/avi"/> --> |
90 |
</extension-mimetype> |
91 |
<mimetype-upnpclass> |
92 |
<map from="audio/*" to="object.item.audioItem.musicTrack"/> |
93 |
<map from="video/*" to="object.item.videoItem"/> |
94 |
<map from="image/*" to="object.item.imageItem"/> |
95 |
<map from="application/ogg" to="object.item.audioItem.musicTrack"/> |
96 |
</mimetype-upnpclass> |
97 |
<mimetype-contenttype> |
98 |
<treat mimetype="audio/mpeg" as="mp3"/> |
99 |
<treat mimetype="application/ogg" as="ogg"/> |
100 |
<treat mimetype="audio/ogg" as="ogg"/> |
101 |
<treat mimetype="audio/x-flac" as="flac"/> |
102 |
<treat mimetype="audio/x-ms-wma" as="wma"/> |
103 |
<treat mimetype="audio/x-wavpack" as="wv"/> |
104 |
<treat mimetype="image/jpeg" as="jpg"/> |
105 |
<treat mimetype="audio/x-mpegurl" as="playlist"/> |
106 |
<treat mimetype="audio/x-scpls" as="playlist"/> |
107 |
<treat mimetype="audio/x-wav" as="pcm"/> |
108 |
<treat mimetype="audio/L16" as="pcm"/> |
109 |
<treat mimetype="video/x-msvideo" as="avi"/> |
110 |
<treat mimetype="video/mp4" as="mp4"/> |
111 |
<treat mimetype="audio/mp4" as="mp4"/> |
112 |
<treat mimetype="video/x-matroska" as="mkv"/> |
113 |
<treat mimetype="audio/x-matroska" as="mka"/> |
114 |
</mimetype-contenttype> |
115 |
</mappings> |
116 |
<online-content> |
117 |
<AppleTrailers enabled="no" refresh="43200" update-at-start="no" resolution="640"/> |
118 |
</online-content> |
119 |
</import> |
120 |
<transcoding enabled="no"> |
121 |
<mimetype-profile-mappings> |
122 |
<transcode mimetype="video/x-flv" using="vlcmpeg"/> |
123 |
<transcode mimetype="application/ogg" using="vlcmpeg"/> |
124 |
<transcode mimetype="application/ogg" using="oggflac2raw"/> |
125 |
<transcode mimetype="audio/x-flac" using="oggflac2raw"/> |
126 |
</mimetype-profile-mappings> |
127 |
<profiles> |
128 |
<profile name="oggflac2raw" enabled="no" type="external"> |
129 |
<mimetype>audio/L16</mimetype> |
130 |
<accept-url>no</accept-url> |
131 |
<first-resource>yes</first-resource> |
132 |
<accept-ogg-theora>no</accept-ogg-theora> |
133 |
<agent command="ogg123" arguments="-d raw -o byteorder:big -f %out %in"/> |
134 |
<buffer size="1048576" chunk-size="131072" fill-size="262144"/> |
135 |
</profile> |
136 |
<profile name="vlcmpeg" enabled="no" type="external"> |
137 |
<mimetype>video/mpeg</mimetype> |
138 |
<accept-url>yes</accept-url> |
139 |
<first-resource>yes</first-resource> |
140 |
<accept-ogg-theora>yes</accept-ogg-theora> |
141 |
<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"/> |
142 |
<buffer size="14400000" chunk-size="512000" fill-size="120000"/> |
143 |
</profile> |
144 |
</profiles> |
145 |
</transcoding> |
146 |
</config> |