View difference between Paste ID: 04YWzuix and
SHOW:
|
|
- or go back to the newest paste.
1 | - | |
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/2 http://mediatomb.cc/config/2.xsd"><!-- | |
3 | Read /usr/share/doc/mediatomb-common/README.gz section 6 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="mediatomb" password="mediatomb"/> | |
10 | </accounts> | |
11 | </ui> | |
12 | <name>MediaTomb</name> | |
13 | <udn>uuid:REPLACE_WITH_A_PROPER_UUID</udn> | |
14 | <home></home> | |
15 | <webroot>/usr/local/share/mediatomb/web</webroot> | |
16 | <storage caching="yes"> | |
17 | <sqlite3 enabled="yes"> | |
18 | <database-file>mediatomb.db</database-file> | |
19 | </sqlite3> | |
20 | <mysql enabled="no"> | |
21 | <host>localhost</host> | |
22 | <username>mediatomb</username> | |
23 | <database>mediatomb</database> | |
24 | </mysql> | |
25 | </storage> | |
26 | <protocolInfo extend="yes" samsung-hack="yes"/> | |
27 | <custom-http-headers> | |
28 | <add header="transferMode.dlna.org: Streaming"/> | |
29 | <add header="contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000"/> | |
30 | <add header="X-User-Agent: redsonic"/> | |
31 | </custom-http-headers> | |
32 | <manufacturerURL>redsonic.com</manufacturerURL> | |
33 | <modelNumber>105</modelNumber> | |
34 | <extended-runtime-options> | |
35 | <ffmpegthumbnailer enabled="no"> | |
36 | <thumbnail-size>128</thumbnail-size> | |
37 | <seek-percentage>5</seek-percentage> | |
38 | <filmstrip-overlay>no</filmstrip-overlay> | |
39 | <workaround-bugs>yes</workaround-bugs> | |
40 | </ffmpegthumbnailer> | |
41 | <mark-played-items enabled="yes" suppress-cds-updates="yes"> | |
42 | <mark> | |
43 | <content>video</content> | |
44 | </mark> | |
45 | <string mode="prepend">*</string> | |
46 | </mark-played-items> | |
47 | </extended-runtime-options> | |
48 | </server> | |
49 | <import hidden-files="no"> | |
50 | <scripting script-charset="UTF-8"> | |
51 | <common-script>/usr/share/mediatomb/js/common.js</common-script> | |
52 | <playlist-script>/usr/share/mediatomb/js/playlists.js</playlist-script> | |
53 | <virtual-layout type="builtin"> | |
54 | <import-script>/usr/share/mediatomb/js/import.js</import-script> | |
55 | <dvd-script>/usr/share/mediatomb/js/import-dvd.js</dvd-script> | |
56 | </virtual-layout> | |
57 | </scripting> | |
58 | <mappings> | |
59 | <extension-mimetype ignore-unknown="no"> | |
60 | <map from="mp3" to="audio/mpeg"/> | |
61 | <map from="ogg" to="application/ogg"/> | |
62 | <map from="asf" to="video/x-ms-asf"/> | |
63 | <map from="asx" to="video/x-ms-asf"/> | |
64 | <map from="wma" to="audio/x-ms-wma"/> | |
65 | <map from="wax" to="audio/x-ms-wax"/> | |
66 | <map from="wmv" to="video/x-ms-wmv"/> | |
67 | <map from="wvx" to="video/x-ms-wvx"/> | |
68 | <map from="wm" to="video/x-ms-wm"/> | |
69 | <map from="wmx" to="video/x-ms-wmx"/> | |
70 | <map from="m3u" to="audio/x-mpegurl"/> | |
71 | <map from="pls" to="audio/x-scpls"/> | |
72 | <map from="flv" to="video/x-flv"/> | |
73 | <map from="mkv" to="video/mpeg"/> | |
74 | <map from="mka" to="audio/mpeg"/> | |
75 | <map from="avi" to="video/mpeg"/> | |
76 | </extension-mimetype> | |
77 | <mimetype-upnpclass> | |
78 | <map from="audio/*" to="object.item.audioItem.musicTrack"/> | |
79 | <map from="video/*" to="object.item.videoItem"/> | |
80 | <map from="image/*" to="object.item.imageItem"/> | |
81 | </mimetype-upnpclass> | |
82 | <mimetype-contenttype> | |
83 | <treat mimetype="audio/mpeg" as="mp3"/> | |
84 | <treat mimetype="application/ogg" as="ogg"/> | |
85 | <treat mimetype="audio/x-flac" as="flac"/> | |
86 | <treat mimetype="image/jpeg" as="jpg"/> | |
87 | <treat mimetype="audio/x-mpegurl" as="playlist"/> | |
88 | <treat mimetype="audio/x-scpls" as="playlist"/> | |
89 | <treat mimetype="audio/x-wav" as="pcm"/> | |
90 | <treat mimetype="audio/L16" as="pcm"/> | |
91 | <treat mimetype="video/x-msvideo" as="avi"/> | |
92 | <treat mimetype="video/mp4" as="mp4"/> | |
93 | <treat mimetype="video/x-mkv" as="mkv"/> | |
94 | <treat mimetype="audio/mp4" as="mp4"/> | |
95 | <treat mimetype="application/x-iso9660" as="dvd"/> | |
96 | <treat mimetype="application/x-iso9660-image" as="dvd"/> | |
97 | </mimetype-contenttype> | |
98 | </mappings> | |
99 | <online-content><!-- Make sure to setup a transcoding profile for flv --> | |
100 | <YouTube enabled="no" refresh="28800" update-at-start="no" purge-after="604800" racy-content="exclude" format="flv" hd="no"> | |
101 | <favorites user="mediatomb"/> | |
102 | <standardfeed feed="most_viewed" time-range="today"/> | |
103 | <playlists user="mediatomb"/> | |
104 | <uploads user="mediatomb"/> | |
105 | <standardfeed feed="recently_featured" time-range="today"/> | |
106 | </YouTube> | |
107 | <Weborama enabled="no" refresh="28800" update-at-start="no"> | |
108 | <playlist name="Active" type="playlist" mood="active"/> | |
109 | <playlist name="Metal" type="playlist"> | |
110 | <filter> | |
111 | <genres>metal</genres> | |
112 | </filter> | |
113 | </playlist> | |
114 | </Weborama> | |
115 | <AppleTrailers enabled="no" refresh="43200" update-at-start="yes" resolution="640"/> | |
116 | </online-content> | |
117 | </import> | |
118 | <transcoding enabled="no"> | |
119 | <mimetype-profile-mappings> | |
120 | <transcode mimetype="video/x-flv" using="vlcmpeg"/> | |
121 | <transcode mimetype="application/ogg" using="vlcmpeg"/> | |
122 | <transcode mimetype="application/ogg" using="oggflac2raw"/> | |
123 | <transcode mimetype="audio/x-flac" using="oggflac2raw"/> | |
124 | </mimetype-profile-mappings> | |
125 | <profiles> | |
126 | <profile name="oggflac2raw" enabled="no" type="external"> | |
127 | <mimetype>audio/L16</mimetype> | |
128 | <accept-url>no</accept-url> | |
129 | <first-resource>yes</first-resource> | |
130 | <accept-ogg-theora>no</accept-ogg-theora> | |
131 | <agent command="ogg123" arguments="-d raw -o byteorder:big -f %out %in"/> | |
132 | <buffer size="1048576" chunk-size="131072" fill-size="262144"/> | |
133 | </profile> | |
134 | <profile name="vlcmpeg" enabled="no" type="external"> | |
135 | <mimetype>video/mpeg</mimetype> | |
136 | <accept-url>yes</accept-url> | |
137 | <first-resource>yes</first-resource> | |
138 | <accept-ogg-theora>yes</accept-ogg-theora> | |
139 | <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"/> | |
140 | <buffer size="14400000" chunk-size="512000" fill-size="120000"/> | |
141 | </profile> | |
142 | </profiles> | |
143 | </transcoding> | |
144 | </config> |