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.     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.       <port>49152</port>
  9.       <accounts enabled="no" session-timeout="30">
  10.         <account user="mediatomb" password="mediatomb"/>
  11.       </accounts>
  12.     </ui>
  13.     <name>MediaTomb</name>
  14.     <udn>uuid:4aa219b1-3dd5-4a7e-8397-14a5dfa2fabe</udn>
  15.     <home>/var/lib/mediatomb</home>
  16.     <webroot>/usr/share/mediatomb/web</webroot>
  17.     <storage caching="yes">
  18.       <sqlite3 enabled="yes">
  19.         <database-file>mediatomb.db</database-file>
  20.       </sqlite3>
  21.       <mysql enabled="no">
  22.         <host>localhost</host>
  23.         <username>mediatomb</username>
  24.         <database>mediatomb</database>
  25.       </mysql>
  26.     </storage>
  27.     <protocolInfo extend="no"/><!-- For PS3 support change to "yes" --><!--
  28.       Uncomment the lines below to get rid of jerky avi playback on the
  29.       DSM320 or to enable subtitles support on the DSM units
  30.    --><!--
  31.    <custom-http-headers>
  32.      <add header="X-User-Agent: redsonic"/>
  33.    </custom-http-headers>
  34.  
  35.    <manufacturerURL>redsonic.com</manufacturerURL>
  36.    <modelNumber>105</modelNumber>
  37.    --><!-- Uncomment the line below if you have a Telegent TG100 --><!--
  38.       <upnp-string-limit>101</upnp-string-limit>
  39.    -->
  40.     <extended-runtime-options>
  41.       <ffmpegthumbnailer enabled="no">
  42.         <thumbnail-size>128</thumbnail-size>
  43.         <seek-percentage>5</seek-percentage>
  44.         <filmstrip-overlay>yes</filmstrip-overlay>
  45.         <workaround-bugs>no</workaround-bugs>
  46.       </ffmpegthumbnailer>
  47.       <mark-played-items enabled="no" suppress-cds-updates="yes">
  48.         <string mode="prepend">*</string>
  49.       </mark-played-items>
  50.     </extended-runtime-options>
  51.   </server>
  52.   <import hidden-files="no">
  53.     <filesystem-charset>UTF-8</filesystem-charset>
  54.     <metadata-charset>UTF-8</metadata-charset>
  55.     <playlist-charset>UTF-8</playlist-charset>
  56.     <scripting script-charset="UTF-8">
  57.       <common-script>/usr/share/mediatomb/js/common.js</common-script>
  58.       <playlist-script>/usr/share/mediatomb/js/playlists.js</playlist-script>
  59.       <virtual-layout type="builtin">
  60.         <import-script>/usr/share/mediatomb/js/import.js</import-script>
  61.         <dvd-script>/usr/share/mediatomb/js/import-dvd.js</dvd-script>
  62.       </virtual-layout>
  63.     </scripting>
  64.     <mappings>
  65.       <extension-mimetype ignore-unknown="no">
  66.         <map from="mp3" to="audio/mpeg"/>
  67.         <map from="ogg" to="application/ogg"/>
  68.         <map from="asf" to="video/x-ms-asf"/>
  69.         <map from="asx" to="video/x-ms-asf"/>
  70.         <map from="wma" to="audio/x-ms-wma"/>
  71.         <map from="wax" to="audio/x-ms-wax"/>
  72.         <map from="wmv" to="video/x-ms-wmv"/>
  73.         <map from="wvx" to="video/x-ms-wvx"/>
  74.         <map from="wm" to="video/x-ms-wm"/>
  75.         <map from="wmx" to="video/x-ms-wmx"/>
  76.         <map from="m3u" to="audio/x-mpegurl"/>
  77.         <map from="pls" to="audio/x-scpls"/>
  78.         <map from="flv" to="video/x-flv"/>
  79.         <map from="mkv" to="video/x-matroska"/>
  80.         <map from="mka" to="audio/x-matroska"/><!-- Uncomment the line below for PS3 divx support --><!-- <map from="avi" to="video/divx"/> --><!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 --><!-- <map from="avi" to="video/avi"/> -->
  81.       </extension-mimetype>
  82.       <mimetype-upnpclass>
  83.         <map from="audio/*" to="object.item.audioItem.musicTrack"/>
  84.         <map from="video/*" to="object.item.videoItem"/>
  85.         <map from="image/*" to="object.item.imageItem"/>
  86.         <map from="application/ogg" to="object.item.audioItem.musicTrack"/>
  87.       </mimetype-upnpclass>
  88.       <mimetype-contenttype>
  89.         <treat mimetype="audio/mpeg" as="mp3"/>
  90.         <treat mimetype="application/ogg" as="ogg"/>
  91.         <treat mimetype="audio/x-flac" as="flac"/>
  92.         <treat mimetype="image/jpeg" as="jpg"/>
  93.         <treat mimetype="audio/x-mpegurl" as="playlist"/>
  94.         <treat mimetype="audio/x-scpls" as="playlist"/>
  95.         <treat mimetype="audio/x-wav" as="pcm"/>
  96.         <treat mimetype="audio/L16" as="pcm"/>
  97.         <treat mimetype="video/x-msvideo" as="avi"/>
  98.         <treat mimetype="video/mp4" as="mp4"/>
  99.         <treat mimetype="audio/mp4" as="mp4"/>
  100.         <treat mimetype="application/x-iso9660" as="dvd"/>
  101.         <treat mimetype="application/x-iso9660-image" as="dvd"/>
  102.         <treat mimetype="video/x-matroska" as="mkv"/>
  103.         <treat mimetype="audio/x-matroska" as="mka"/>
  104.       </mimetype-contenttype>
  105.     </mappings>
  106.     <online-content><!-- Make sure to setup a transcoding profile for flv -->
  107.       <YouTube enabled="no" refresh="28800" update-at-start="no" purge-after="604800" racy-content="exclude" format="flv" hd="no">
  108.         <favorites user="mediatomb"/>
  109.         <standardfeed feed="most_viewed" time-range="today"/>
  110.         <playlists user="mediatomb"/>
  111.         <uploads user="mediatomb"/>
  112.         <standardfeed feed="recently_featured" time-range="today"/>
  113.       </YouTube>
  114.       <Weborama enabled="no" refresh="28800" update-at-start="no">
  115.         <playlist name="Active" type="playlist" mood="active"/>
  116.         <playlist name="Metal" type="playlist">
  117.           <filter>
  118.             <genres>metal</genres>
  119.           </filter>
  120.         </playlist>
  121.       </Weborama>
  122.       <AppleTrailers enabled="no" refresh="43200" update-at-start="no" resolution="640"/>
  123.     </online-content>
  124.   </import>
  125.   <transcoding enabled="yes">
  126.     <mimetype-profile-mappings>
  127.       <transcode mimetype="video/x-flv" using="vlcmpeg"/>
  128.       <transcode mimetype="application/ogg" using="vlcmpeg"/>
  129.       <transcode mimetype="application/ogg" using="oggflac2raw"/>
  130.       <transcode mimetype="audio/x-flac" using="oggflac2raw"/>
  131.       <transcode mimetype="video/x-msvideo" using="sony"/>
  132.     </mimetype-profile-mappings>
  133.     <profiles>
  134.       <profile name="sony" enabled="yes" type="external">
  135.         <mimetype>video/mpeg</mimetype>
  136.         <accept-url>yes</accept-url>
  137.         <first-resource>yes</first-resource>
  138.         <hide-original-resource>yes</hide-original-resource>
  139.         <accept-ogg-theora>no</accept-ogg-theora>
  140.         <agent command="mencoder" arguments="%in -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -oac copy other_options -o %out"/>
  141.         <buffer size="60000" chunk-size="20000" fill-size="20000"/>
  142.       </profile>
  143.       <profile name="oggflac2raw" enabled="yes" type="external">
  144.         <mimetype>audio/L16</mimetype>
  145.         <accept-url>no</accept-url>
  146.         <first-resource>yes</first-resource>
  147.         <hide-original-resource>yes</hide-original-resource>
  148.         <accept-ogg-theora>no</accept-ogg-theora>
  149.         <agent command="ogg123" arguments="-d raw -o byteorder:big -f %out %in"/>
  150.         <buffer size="1048576" chunk-size="131072" fill-size="262144"/>
  151.       </profile>
  152.       <profile name="vlcmpeg" enabled="no" type="external">
  153.         <mimetype>video/mpeg</mimetype>
  154.         <accept-url>yes</accept-url>
  155.         <first-resource>yes</first-resource>
  156.         <accept-ogg-theora>yes</accept-ogg-theora>
  157.         <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"/>
  158.         <buffer size="14400000" chunk-size="512000" fill-size="120000"/>
  159.       </profile>
  160.     </profiles>
  161.   </transcoding>
  162. </config>