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

my_mediatomb_cfg_from_etc

By: mfdc on Mar 21st, 2011  |  syntax: XML  |  size: 6.29 KB  |  views: 276  |  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/1 http://mediatomb.cc/config/1.xsd">
  3.   <!--
  4.     Read /usr/share/doc/mediatomb-common/README.gz section 6 for more
  5.     information on creating and using config.xml configration files.
  6.    -->
  7.   <server>
  8.     <ui enabled="yes" show-tooltips="yes">
  9.       <accounts enabled="no" session-timeout="30">
  10.         <account user="mediatomb" password="mediatomb"/>
  11.       </accounts>
  12.     </ui>
  13.     <name>MediaTomb</name>
  14.     <port>49152</port>
  15.     <udn>uuid:b4b208e6-def9-4250-8c06-b36d839dff7a</udn>
  16.     <home>/home/michael/.mediatomb</home>
  17.     <webroot>/usr/share/mediatomb/web</webroot>
  18.     <storage>
  19.       <sqlite3 enabled="yes">
  20.         <database-file>mediatomb.db</database-file>
  21.       </sqlite3>
  22.       <mysql enabled="no">
  23.         <host>localhost</host>
  24.         <username>mediatomb</username>
  25.         <database>mediatomb</database>
  26.       </mysql>
  27.     </storage>
  28.     <protocolInfo extend="yes"/><!-- For PS3 support change to "yes" -->
  29.     <!--
  30.       Uncomment the lines below to get rid of jerky avi playback on the
  31.       DSM320 or to enable subtitles support on the DSM units
  32.    -->
  33.         <custom-http-headers>
  34.         <add header="transferMode.dlna.org: Streaming" />
  35.         <add header="contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000" />
  36.     <!-- Uncomment the line below if you have a Telegent TG100 -->
  37.     <upnp-string-limit>101</upnp-string-limit>
  38.     <extended-runtime-options>
  39.       <ffmpegthumbnailer enabled="no">
  40.         <thumbnail-size>128</thumbnail-size>
  41.         <seek-percentage>5</seek-percentage>
  42.         <filmstrip-overlay>yes</filmstrip-overlay>
  43.         <workaround-bugs>no</workaround-bugs>
  44.       </ffmpegthumbnailer>
  45.       <mark-played-items enabled="no" suppress-cds-updates="yes">
  46.         <string mode="prepend">*</string>
  47.       </mark-played-items>
  48.     </extended-runtime-options>
  49.   </server>
  50.   <import hidden-files="no">
  51.     <scripting script-charset="UTF-8">
  52.       <virtual-layout type="builtin"/>
  53.     </scripting>
  54.     <mappings>
  55.       <extension-mimetype ignore-unknown="no">
  56.         <map from="avi" to="video/mpeg"/>
  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/x-matroska"/>
  72.         <map from="avi" to="video/divx"/>
  73.         <map from="avi" to="video/avi"/>
  74.       </extension-mimetype>
  75.       <mimetype-upnpclass>
  76.         <map from="audio/*" to="object.item.audioItem.musicTrack"/>
  77.         <map from="video/*" to="object.item.videoItem"/>
  78.         <map from="image/*" to="object.item.imageItem"/>
  79.         <map from="application/ogg" to="object.item.audioItem.musicTrack"/>
  80.       </mimetype-upnpclass>
  81.       <mimetype-contenttype>
  82.         <treat mimetype="audio/mpeg" as="mp3"/>
  83.         <treat mimetype="application/ogg" as="ogg"/>
  84.         <treat mimetype="audio/x-flac" as="flac"/>
  85.         <treat mimetype="image/jpeg" as="jpg"/>
  86.         <treat mimetype="audio/x-mpegurl" as="playlist"/>
  87.         <treat mimetype="audio/x-scpls" as="playlist"/>
  88.         <treat mimetype="audio/x-wav" as="pcm"/>
  89.         <treat mimetype="audio/L16" as="pcm"/>
  90.         <treat mimetype="video/x-msvideo" as="avi"/>
  91.         <treat mimetype="video/mp4" as="mp4"/>
  92.         <treat mimetype="audio/mp4" as="mp4"/>
  93.         <treat mimetype="application/x-iso9660" as="dvd"/>
  94.         <treat mimetype="application/x-iso9660-image" as="dvd"/>
  95.         <treat mimetype="video/x-matroska" as="mkv"/>
  96.         <treat mimetype="audio/x-matroska" as="mka"/>
  97.       </mimetype-contenttype>
  98.     </mappings>
  99.     <online-content>
  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="no" 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>
clone this paste RAW Paste Data