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

MediaTomb config.xml

By: a guest on Sep 27th, 2013  |  syntax: XML  |  size: 7.46 KB  |  views: 78  |  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="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.       <accounts enabled="no" session-timeout="30">
  9.         <account user="mediatomb" password="mediatomb"/>
  10.       </accounts>
  11.     </ui>
  12.     <name>MediaTomb</name>
  13.     <udn>uuid:b758e839-3bee-40fc-8060-4738a6732761</udn>
  14.     <home>/var/lib/mediatomb</home>
  15.                              <port>50000</port>
  16.     <webroot>/usr/share/mediatomb/web</webroot>
  17.     <storage caching="yes">
  18.       <sqlite3 enabled="no">
  19.         <database-file>mediatomb.db</database-file>
  20.       </sqlite3>
  21.       <mysql enabled="yes">
  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="yes">
  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.     <scripting script-charset="UTF-8">
  54.       <common-script>/usr/share/mediatomb/js/common.js</common-script>
  55.       <playlist-script>/usr/share/mediatomb/js/playlists.js</playlist-script>
  56.       <virtual-layout type="builtin">
  57.         <import-script>/usr/share/mediatomb/js/import.js</import-script>
  58.         <dvd-script>/usr/share/mediatomb/js/import-dvd.js</dvd-script>
  59.       </virtual-layout>
  60.     </scripting>
  61.     <mappings>
  62.       <extension-mimetype ignore-unknown="no">
  63.         <map from="mp3" to="audio/mpeg"/>
  64.         <map from="ogg" to="application/ogg"/>
  65.         <map from="asf" to="video/x-ms-asf"/>
  66.         <map from="asx" to="video/x-ms-asf"/>
  67.         <map from="wma" to="audio/x-ms-wma"/>
  68.         <map from="wax" to="audio/x-ms-wax"/>
  69.         <map from="wmv" to="video/x-ms-wmv"/>
  70.         <map from="wvx" to="video/x-ms-wvx"/>
  71.         <map from="wm" to="video/x-ms-wm"/>
  72.         <map from="wmx" to="video/x-ms-wmx"/>
  73.         <map from="m3u" to="audio/x-mpegurl"/>
  74.         <map from="pls" to="audio/x-scpls"/>
  75.         <map from="flv" to="video/x-flv"/>
  76.         <map from="mkv" to="video/x-matroska"/>
  77.         <map from="mka" to="audio/x-matroska"/>
  78.         <map from="iso" to="video/dvd-iso"/>
  79. <!-- 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"/> -->
  80.       </extension-mimetype>
  81.       <mimetype-upnpclass>
  82.         <map from="audio/*" to="object.item.audioItem.musicTrack"/>
  83.         <map from="video/*" to="object.item.videoItem"/>
  84.         <map from="image/*" to="object.item.imageItem"/>
  85.         <map from="application/ogg" to="object.item.audioItem.musicTrack"/>
  86.       </mimetype-upnpclass>
  87.       <mimetype-contenttype>
  88.         <treat mimetype="audio/mpeg" as="mp3"/>
  89.         <treat mimetype="application/ogg" as="ogg"/>
  90.         <treat mimetype="audio/x-flac" as="flac"/>
  91.         <treat mimetype="image/jpeg" as="jpg"/>
  92.         <treat mimetype="audio/x-mpegurl" as="playlist"/>
  93.         <treat mimetype="audio/x-scpls" as="playlist"/>
  94.         <treat mimetype="audio/x-wav" as="pcm"/>
  95.         <treat mimetype="audio/L16" as="pcm"/>
  96.         <treat mimetype="video/x-msvideo" as="avi"/>
  97.         <treat mimetype="video/mp4" as="mp4"/>
  98.         <treat mimetype="audio/mp4" as="mp4"/>
  99.         <treat mimetype="application/x-iso9660" as="dvd"/>
  100.         <treat mimetype="application/x-iso9660-image" as="dvd"/>
  101.         <treat mimetype="video/x-matroska" as="mkv"/>
  102.         <treat mimetype="audio/x-matroska" as="mka"/>
  103.       </mimetype-contenttype>
  104.     </mappings>
  105.     <online-content><!-- Make sure to setup a transcoding profile for flv -->
  106.       <YouTube enabled="no" refresh="28800" update-at-start="no" purge-after="604800" racy-content="exclude" format="flv" hd="no">
  107.         <favorites user="mediatomb"/>
  108.         <standardfeed feed="most_viewed" time-range="today"/>
  109.         <playlists user="mediatomb"/>
  110.         <uploads user="mediatomb"/>
  111.         <standardfeed feed="recently_featured" time-range="today"/>
  112.       </YouTube>
  113.       <Weborama enabled="no" refresh="28800" update-at-start="no">
  114.         <playlist name="Active" type="playlist" mood="active"/>
  115.         <playlist name="Metal" type="playlist">
  116.           <filter>
  117.             <genres>metal</genres>
  118.           </filter>
  119.         </playlist>
  120.       </Weborama>
  121.       <AppleTrailers enabled="no" refresh="43200" update-at-start="no" resolution="640"/>
  122.     </online-content>
  123.   </import>
  124.   <transcoding enabled="no">
  125.     <mimetype-profile-mappings>
  126.       <transcode mimetype="video/x-flv" using="vlcmpeg"/>
  127.       <transcode mimetype="video/dvd-iso" using="vlcimage"/>
  128.       <transcode mimetype="application/ogg" using="vlcmpeg"/>
  129.       <transcode mimetype="application/ogg" using="oggflac2raw"/>
  130.       <transcode mimetype="audio/x-flac" using="oggflac2raw"/>
  131.     </mimetype-profile-mappings>
  132.     <profiles>
  133.       <profile name="oggflac2raw" enabled="no" type="external">
  134.         <mimetype>audio/L16</mimetype>
  135.         <accept-url>no</accept-url>
  136.         <first-resource>yes</first-resource>
  137.         <accept-ogg-theora>no</accept-ogg-theora>
  138.         <agent command="ogg123" arguments="-d raw -o byteorder:big -f %out %in"/>
  139.         <buffer size="1048576" chunk-size="131072" fill-size="262144"/>
  140.       </profile>
  141.       <profile name="vlcmpeg" enabled="yes" type="external">
  142.         <mimetype>video/mpeg</mimetype>
  143.         <accept-url>yes</accept-url>
  144.         <first-resource>yes</first-resource>
  145.         <accept-ogg-theora>yes</accept-ogg-theora>
  146.         <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"/>
  147.         <buffer size="14400000" chunk-size="512000" fill-size="120000"/>
  148.       </profile>
  149.       <profile name="vlcimage" enabled="yes" type="external">
  150.         <mimetype>video/mpeg</mimetype>
  151.         <accept-url>no</accept-url>
  152.         <first-resource>yes</first-resource>
  153.         <accept-ogg-theora>no</accept-ogg-theora>
  154.         <agent command="vlc" arguments="-I dummy dvdsimple://%in :sout=#duplicate{dst=std{access=file,mux=ps,dst=%out}}} vlc:quit"/>
  155.         <buffer size="14400000" chunk-size="512000" fill-size="120000"/>
  156.       </profile>
  157.     </profiles>
  158.   </transcoding>
  159. </config>