Move adding /var/mp3 to the mediatomb shared dirs
[people/pmueller/ipfire-2.x.git] / config / mediatomb / config.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <config version="1" xmlns="http://mediatomb.cc/config/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/config/1 http://mediatomb.cc/config/1.xsd">
3 <server>
4 <ui enabled="yes">
5 <accounts enabled="yes" session-timeout="30">
6 <account user="mediatomb" password="ipfire"/>
7 </accounts>
8 </ui>
9 <name>MediaTomb</name>
10 <home>/var/ipfire/mediatomb</home>
11 <webroot>/usr/share/mediatomb/web</webroot>
12 <storage>
13 <sqlite3 enabled="yes">
14 <database-file>mediatomb.db</database-file>
15 </sqlite3>
16 </storage>
17 <protocolInfo extend="no"/><!-- For PS3 support change to "yes" -->
18 <!--
19 Uncomment the lines below to get rid of jerky avi playback on the
20 DSM320 or to enable subtitles support on the DSM units
21 -->
22 <!--
23 <custom-http-headers>
24 <add header="X-User-Agent: redsonic"/>
25 </custom-http-headers>
26
27 <manufacturerURL>redsonic.com</manufacturerURL>
28 <modelNumber>105</modelNumber>
29 -->
30 <!-- Uncomment the line below if you have a Telegent TG100 -->
31 <!--
32 <upnp-string-limit>101</upnp-string-limit>
33 -->
34 </server>
35 <import hidden-files="no">
36 <autoscan use-inotify="auto">
37 <!-- Add /var/mp3 to mediatomb shares -->
38 <directory location="/var/mp3" mode="inotify" recursive="yes" hidden-files="yes"/>
39 </autoscan>
40 <scripting script-charset="UTF-8">
41 <virtual-layout type="builtin"/>
42 </scripting>
43 <mappings>
44 <extension-mimetype ignore-unknown="no">
45 <map from="mp3" to="audio/mpeg"/>
46 <map from="ogg" to="application/ogg"/>
47 <map from="asf" to="video/x-ms-asf"/>
48 <map from="asx" to="video/x-ms-asf"/>
49 <map from="wma" to="audio/x-ms-wma"/>
50 <map from="wax" to="audio/x-ms-wax"/>
51 <map from="wmv" to="video/x-ms-wmv"/>
52 <map from="wvx" to="video/x-ms-wvx"/>
53 <map from="wm" to="video/x-ms-wm"/>
54 <map from="wmx" to="video/x-ms-wmx"/>
55 <map from="m3u" to="audio/x-mpegurl"/>
56 <map from="pls" to="audio/x-scpls"/>
57 <map from="flv" to="video/x-flv"/>
58 <!-- Uncomment the line below for PS3 divx support -->
59 <!-- <map from="avi" to="video/divx"/> -->
60 <!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 -->
61 <!-- <map from="avi" to="video/avi"/> -->
62 </extension-mimetype>
63 <mimetype-upnpclass>
64 <map from="audio/*" to="object.item.audioItem.musicTrack"/>
65 <map from="video/*" to="object.item.videoItem"/>
66 <map from="image/*" to="object.item.imageItem"/>
67 </mimetype-upnpclass>
68 <mimetype-contenttype>
69 <treat mimetype="audio/mpeg" as="mp3"/>
70 <treat mimetype="application/ogg" as="ogg"/>
71 <treat mimetype="audio/x-flac" as="flac"/>
72 <treat mimetype="image/jpeg" as="jpg"/>
73 <treat mimetype="audio/x-mpegurl" as="playlist"/>
74 <treat mimetype="audio/x-scpls" as="playlist"/>
75 <treat mimetype="audio/x-wav" as="pcm"/>
76 <treat mimetype="audio/L16" as="pcm"/>
77 <treat mimetype="video/x-msvideo" as="avi"/>
78 </mimetype-contenttype>
79 </mappings>
80 </import>
81 <transcoding enabled="no">
82 <mimetype-profile-mappings>
83 <transcode mimetype="video/x-flv" using="vlcmpeg"/>
84 <transcode mimetype="application/ogg" using="vlcmpeg"/>
85 <transcode mimetype="application/ogg" using="oggflac2raw"/>
86 <transcode mimetype="audio/x-flac" using="oggflac2raw"/>
87 </mimetype-profile-mappings>
88 <profiles>
89 <profile name="oggflac2raw" enabled="no" type="external">
90 <mimetype>audio/L16</mimetype>
91 <accept-url>no</accept-url>
92 <first-resource>yes</first-resource>
93 <accept-ogg-theora>no</accept-ogg-theora>
94 <agent command="ogg123" arguments="-d raw -f %out %in"/>
95 <buffer size="1048576" chunk-size="131072" fill-size="262144"/>
96 </profile>
97 <profile name="vlcmpeg" enabled="no" type="external">
98 <mimetype>video/mpeg</mimetype>
99 <accept-url>yes</accept-url>
100 <first-resource>yes</first-resource>
101 <accept-ogg-theora>yes</accept-ogg-theora>
102 <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"/>
103 <buffer size="14400000" chunk-size="512000" fill-size="120000"/>
104 </profile>
105 </profiles>
106 </transcoding>
107 </config>