xref: /OK3568_Linux_fs/buildroot/package/gerbera/config.xml (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun<?xml version="1.0" encoding="UTF-8"?>
2*4882a593Smuzhiyun<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*4882a593Smuzhiyun  <!--
4*4882a593Smuzhiyun     See http://gerbera.io or read the docs for more
5*4882a593Smuzhiyun     information on creating and using config.xml configuration files.
6*4882a593Smuzhiyun    -->
7*4882a593Smuzhiyun  <server>
8*4882a593Smuzhiyun    <ui enabled="yes" show-tooltips="yes">
9*4882a593Smuzhiyun      <accounts enabled="no" session-timeout="30">
10*4882a593Smuzhiyun        <account user="gerbera" password="gerbera" />
11*4882a593Smuzhiyun      </accounts>
12*4882a593Smuzhiyun    </ui>
13*4882a593Smuzhiyun    <name>Gerbera</name>
14*4882a593Smuzhiyun    <udn>uuid:ac20d9b6-5c82-48e6-80de-436965fbe1d7</udn>
15*4882a593Smuzhiyun    <home>/var/lib/gerbera</home>
16*4882a593Smuzhiyun    <webroot>/usr/share/gerbera/web</webroot>
17*4882a593Smuzhiyun    <!--
18*4882a593Smuzhiyun        How frequently (in seconds) to send ssdp:alive advertisements.
19*4882a593Smuzhiyun        Minimum alive value accepted is: 62
20*4882a593Smuzhiyun
21*4882a593Smuzhiyun        The advertisement will be sent every (A/2)-30 seconds,
22*4882a593Smuzhiyun        and will have a cache-control max-age of A where A is
23*4882a593Smuzhiyun        the value configured here. Ex: A value of 62 will result
24*4882a593Smuzhiyun        in an SSDP advertisement being sent every second.
25*4882a593Smuzhiyun    -->
26*4882a593Smuzhiyun    <alive>1800</alive>
27*4882a593Smuzhiyun    <storage>
28*4882a593Smuzhiyun      <sqlite3 enabled="yes">
29*4882a593Smuzhiyun        <database-file>gerbera.db</database-file>
30*4882a593Smuzhiyun      </sqlite3>
31*4882a593Smuzhiyun    </storage>
32*4882a593Smuzhiyun    <extended-runtime-options>
33*4882a593Smuzhiyun      <mark-played-items enabled="no" suppress-cds-updates="yes">
34*4882a593Smuzhiyun        <string mode="prepend">*</string>
35*4882a593Smuzhiyun        <mark>
36*4882a593Smuzhiyun          <content>video</content>
37*4882a593Smuzhiyun        </mark>
38*4882a593Smuzhiyun      </mark-played-items>
39*4882a593Smuzhiyun    </extended-runtime-options>
40*4882a593Smuzhiyun  </server>
41*4882a593Smuzhiyun  <import hidden-files="no">
42*4882a593Smuzhiyun    <scripting>
43*4882a593Smuzhiyun      <virtual-layout type="builtin" />
44*4882a593Smuzhiyun    </scripting>
45*4882a593Smuzhiyun    <mappings>
46*4882a593Smuzhiyun      <extension-mimetype ignore-unknown="no">
47*4882a593Smuzhiyun        <map from="asf" to="video/x-ms-asf" />
48*4882a593Smuzhiyun        <map from="asx" to="video/x-ms-asf" />
49*4882a593Smuzhiyun        <map from="dff" to="audio/x-dsd" />
50*4882a593Smuzhiyun        <map from="dsf" to="audio/x-dsd" />
51*4882a593Smuzhiyun        <map from="flv" to="video/x-flv" />
52*4882a593Smuzhiyun        <map from="m2ts" to="video/mp2t" />
53*4882a593Smuzhiyun        <map from="m3u" to="audio/x-mpegurl" />
54*4882a593Smuzhiyun        <map from="mka" to="audio/x-matroska" />
55*4882a593Smuzhiyun        <map from="mkv" to="video/x-matroska" />
56*4882a593Smuzhiyun        <map from="mp3" to="audio/mpeg" />
57*4882a593Smuzhiyun        <map from="mts" to="video/mp2t" />
58*4882a593Smuzhiyun        <map from="oga" to="audio/ogg" />
59*4882a593Smuzhiyun        <map from="ogg" to="audio/ogg" />
60*4882a593Smuzhiyun        <map from="ogm" to="video/ogg" />
61*4882a593Smuzhiyun        <map from="ogv" to="video/ogg" />
62*4882a593Smuzhiyun        <map from="ogx" to="application/ogg" />
63*4882a593Smuzhiyun        <map from="pls" to="audio/x-scpls" />
64*4882a593Smuzhiyun        <map from="ts" to="video/mp2t" />
65*4882a593Smuzhiyun        <map from="tsa" to="audio/mp2t" />
66*4882a593Smuzhiyun        <map from="tsv" to="video/mp2t" />
67*4882a593Smuzhiyun        <map from="wax" to="audio/x-ms-wax" />
68*4882a593Smuzhiyun        <map from="wm" to="video/x-ms-wm" />
69*4882a593Smuzhiyun        <map from="wma" to="audio/x-ms-wma" />
70*4882a593Smuzhiyun        <map from="wmv" to="video/x-ms-wmv" />
71*4882a593Smuzhiyun        <map from="wmx" to="video/x-ms-wmx" />
72*4882a593Smuzhiyun        <map from="wv" to="audio/x-wavpack" />
73*4882a593Smuzhiyun        <map from="wvx" to="video/x-ms-wvx" />
74*4882a593Smuzhiyun        <!-- Uncomment the line below for PS3 divx support -->
75*4882a593Smuzhiyun        <!-- <map from="avi" to="video/divx" /> -->
76*4882a593Smuzhiyun        <!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 -->
77*4882a593Smuzhiyun        <!-- <map from="avi" to="video/avi" /> -->
78*4882a593Smuzhiyun      </extension-mimetype>
79*4882a593Smuzhiyun      <mimetype-upnpclass>
80*4882a593Smuzhiyun        <map from="application/ogg" to="object.item.audioItem.musicTrack" />
81*4882a593Smuzhiyun        <map from="audio/*" to="object.item.audioItem.musicTrack" />
82*4882a593Smuzhiyun        <map from="image/*" to="object.item.imageItem" />
83*4882a593Smuzhiyun        <map from="video/*" to="object.item.videoItem" />
84*4882a593Smuzhiyun      </mimetype-upnpclass>
85*4882a593Smuzhiyun      <mimetype-contenttype>
86*4882a593Smuzhiyun        <treat mimetype="application/ogg" as="ogg" />
87*4882a593Smuzhiyun        <treat mimetype="audio/L16" as="pcm" />
88*4882a593Smuzhiyun        <treat mimetype="audio/flac" as="flac" />
89*4882a593Smuzhiyun        <treat mimetype="audio/mp4" as="mp4" />
90*4882a593Smuzhiyun        <treat mimetype="audio/mpeg" as="mp3" />
91*4882a593Smuzhiyun        <treat mimetype="audio/ogg" as="ogg" />
92*4882a593Smuzhiyun        <treat mimetype="audio/x-dsd" as="dsd" />
93*4882a593Smuzhiyun        <treat mimetype="audio/x-flac" as="flac" />
94*4882a593Smuzhiyun        <treat mimetype="audio/x-matroska" as="mka" />
95*4882a593Smuzhiyun        <treat mimetype="audio/x-mpegurl" as="playlist" />
96*4882a593Smuzhiyun        <treat mimetype="audio/x-ms-wma" as="wma" />
97*4882a593Smuzhiyun        <treat mimetype="audio/x-scpls" as="playlist" />
98*4882a593Smuzhiyun        <treat mimetype="audio/x-wav" as="pcm" />
99*4882a593Smuzhiyun        <treat mimetype="audio/x-wavpack" as="wv" />
100*4882a593Smuzhiyun        <treat mimetype="image/jpeg" as="jpg" />
101*4882a593Smuzhiyun        <treat mimetype="video/mp4" as="mp4" />
102*4882a593Smuzhiyun        <treat mimetype="video/x-matroska" as="mkv" />
103*4882a593Smuzhiyun        <treat mimetype="video/x-msvideo" as="avi" />
104*4882a593Smuzhiyun      </mimetype-contenttype>
105*4882a593Smuzhiyun    </mappings>
106*4882a593Smuzhiyun    <online-content>
107*4882a593Smuzhiyun      <AppleTrailers enabled="no" refresh="43200" update-at-start="no" resolution="640" />
108*4882a593Smuzhiyun    </online-content>
109*4882a593Smuzhiyun  </import>
110*4882a593Smuzhiyun  <transcoding enabled="no">
111*4882a593Smuzhiyun    <mimetype-profile-mappings>
112*4882a593Smuzhiyun      <transcode mimetype="application/ogg" using="vlcmpeg" />
113*4882a593Smuzhiyun      <transcode mimetype="audio/ogg" using="ogg2mp3" />
114*4882a593Smuzhiyun      <transcode mimetype="video/x-flv" using="vlcmpeg" />
115*4882a593Smuzhiyun    </mimetype-profile-mappings>
116*4882a593Smuzhiyun    <profiles>
117*4882a593Smuzhiyun      <profile name="ogg2mp3" enabled="no" type="external">
118*4882a593Smuzhiyun        <mimetype>audio/mpeg</mimetype>
119*4882a593Smuzhiyun        <accept-url>no</accept-url>
120*4882a593Smuzhiyun        <first-resource>yes</first-resource>
121*4882a593Smuzhiyun        <accept-ogg-theora>no</accept-ogg-theora>
122*4882a593Smuzhiyun        <agent command="ffmpeg" arguments="-y -i %in -f mp3 %out" />
123*4882a593Smuzhiyun        <buffer size="1048576" chunk-size="131072" fill-size="262144" />
124*4882a593Smuzhiyun      </profile>
125*4882a593Smuzhiyun      <profile name="vlcmpeg" enabled="no" type="external">
126*4882a593Smuzhiyun        <mimetype>video/mpeg</mimetype>
127*4882a593Smuzhiyun        <accept-url>yes</accept-url>
128*4882a593Smuzhiyun        <first-resource>yes</first-resource>
129*4882a593Smuzhiyun        <accept-ogg-theora>yes</accept-ogg-theora>
130*4882a593Smuzhiyun        <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" />
131*4882a593Smuzhiyun        <buffer size="14400000" chunk-size="512000" fill-size="120000" />
132*4882a593Smuzhiyun      </profile>
133*4882a593Smuzhiyun    </profiles>
134*4882a593Smuzhiyun  </transcoding>
135*4882a593Smuzhiyun</config>
136