Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

config.xml

By: a guest on Feb 23rd, 2011  |  syntax: XML  |  size: 6.40 KB  |  views: 631  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.         <string mode="prepend">*</string>
  43.       </mark-played-items>
  44.     </extended-runtime-options>
  45.   </server>
  46.   <import hidden-files="no">
  47.     <scripting script-charset="UTF-8">
  48.       <common-script>/usr/share/mediatomb/js/common.js</common-script>
  49.       <playlist-script>/usr/share/mediatomb/js/playlists.js</playlist-script>
  50.       <virtual-layout type="builtin">
  51.         <import-script>/usr/share/mediatomb/js/import.js</import-script>
  52.         <dvd-script>/usr/share/mediatomb/js/import-dvd.js</dvd-script>
  53.       </virtual-layout>
  54.     </scripting>
  55.     <mappings>
  56.       <extension-mimetype ignore-unknown="no">
  57.         <map from="mp3" to="audio/mpeg"/>
  58.         <map from="ogg" to="application/ogg"/>
  59.         <map from="asf" to="video/x-ms-asf"/>
  60.         <map from="asx" to="video/x-ms-asf"/>
  61.         <map from="wma" to="audio/x-ms-wma"/>
  62.         <map from="wax" to="audio/x-ms-wax"/>
  63.         <map from="wmv" to="video/x-ms-wmv"/>
  64.         <map from="wvx" to="video/x-ms-wvx"/>
  65.         <map from="wm" to="video/x-ms-wm"/>
  66.         <map from="wmx" to="video/x-ms-wmx"/>
  67.         <map from="m3u" to="audio/x-mpegurl"/>
  68.         <map from="pls" to="audio/x-scpls"/>
  69.         <map from="flv" to="video/x-flv"/>
  70.         <map from="mkv" to="video/mpeg"/>
  71.         <map from="mka" to="audio/mpeg"/>
  72.         <map from="avi" to="video/mpeg"/>
  73.       </extension-mimetype>
  74.       <mimetype-upnpclass>
  75.         <map from="audio/*" to="object.item.audioItem.musicTrack"/>
  76.         <map from="video/*" to="object.item.videoItem"/>
  77.         <map from="image/*" to="object.item.imageItem"/>
  78.       </mimetype-upnpclass>
  79.       <mimetype-contenttype>
  80.         <treat mimetype="audio/mpeg" as="mp3"/>
  81.         <treat mimetype="application/ogg" as="ogg"/>
  82.         <treat mimetype="audio/x-flac" as="flac"/>
  83.         <treat mimetype="image/jpeg" as="jpg"/>
  84.         <treat mimetype="audio/x-mpegurl" as="playlist"/>
  85.         <treat mimetype="audio/x-scpls" as="playlist"/>
  86.         <treat mimetype="audio/x-wav" as="pcm"/>
  87.         <treat mimetype="audio/L16" as="pcm"/>
  88.         <treat mimetype="video/x-msvideo" as="avi"/>
  89.         <treat mimetype="video/mp4" as="mp4"/>
  90.         <treat mimetype="video/x-mkv" as="mkv"/>
  91.         <treat mimetype="audio/mp4" as="mp4"/>
  92.         <treat mimetype="application/x-iso9660" as="dvd"/>
  93.         <treat mimetype="application/x-iso9660-image" as="dvd"/>
  94.       </mimetype-contenttype>
  95.     </mappings>
  96.     <online-content><!-- Make sure to setup a transcoding profile for flv -->
  97.       <YouTube enabled="no" refresh="28800" update-at-start="no" purge-after="604800" racy-content="exclude" format="flv" hd="no">
  98.         <favorites user="mediatomb"/>
  99.         <standardfeed feed="most_viewed" time-range="today"/>
  100.         <playlists user="mediatomb"/>
  101.         <uploads user="mediatomb"/>
  102.         <standardfeed feed="recently_featured" time-range="today"/>
  103.       </YouTube>
  104.       <Weborama enabled="no" refresh="28800" update-at-start="no">
  105.         <playlist name="Active" type="playlist" mood="active"/>
  106.         <playlist name="Metal" type="playlist">
  107.           <filter>
  108.             <genres>metal</genres>
  109.           </filter>
  110.         </playlist>
  111.       </Weborama>
  112.       <AppleTrailers enabled="no" refresh="43200" update-at-start="yes" resolution="640"/>
  113.     </online-content>
  114.   </import>
  115.   <transcoding enabled="no">
  116.     <mimetype-profile-mappings>
  117.       <transcode mimetype="video/x-flv" using="vlcmpeg"/>
  118.       <transcode mimetype="application/ogg" using="vlcmpeg"/>
  119.       <transcode mimetype="application/ogg" using="oggflac2raw"/>
  120.       <transcode mimetype="audio/x-flac" using="oggflac2raw"/>
  121.     </mimetype-profile-mappings>
  122.     <profiles>
  123.       <profile name="oggflac2raw" enabled="no" type="external">
  124.         <mimetype>audio/L16</mimetype>
  125.         <accept-url>no</accept-url>
  126.         <first-resource>yes</first-resource>
  127.         <accept-ogg-theora>no</accept-ogg-theora>
  128.         <agent command="ogg123" arguments="-d raw -o byteorder:big -f %out %in"/>
  129.         <buffer size="1048576" chunk-size="131072" fill-size="262144"/>
  130.       </profile>
  131.       <profile name="vlcmpeg" enabled="no" type="external">
  132.         <mimetype>video/mpeg</mimetype>
  133.         <accept-url>yes</accept-url>
  134.         <first-resource>yes</first-resource>
  135.         <accept-ogg-theora>yes</accept-ogg-theora>
  136.         <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"/>
  137.         <buffer size="14400000" chunk-size="512000" fill-size="120000"/>
  138.       </profile>
  139.     </profiles>
  140.   </transcoding>
  141. </config>