daily pastebin goal
37%
SHARE
TWEET

working mediatomb config.xml

a guest Jun 18th, 2012 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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="yes" session-timeout="30">
  9.         <account user="usuario" password="password"/>
  10.       </accounts>
  11.     </ui>
  12.     <name>MediaTomb</name>
  13.     <udn>uuid:641230db-969f-420f-a654-3049c275d158</udn>
  14.     <home>/var/lib/mediatomb</home>
  15.     <webroot>/usr/share/mediatomb/web</webroot>
  16.     <port>6890</port>
  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.         <password>password</password>
  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.  
  34.     <custom-http-headers>
  35.         <add header="transferMode.dlna.org: Streaming"/>
  36.         <add header="contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=017000 00000000000000000000000000"/>
  37.     </custom-http-headers>
  38.  
  39.     <manufacturerURL>redsonic.com</manufacturerURL>
  40.     <modelNumber>105</modelNumber>
  41.  
  42.     <!-- Uncomment the line below if you have a Telegent TG100 -->
  43.     <!--
  44.       <upnp-string-limit>101</upnp-string-limit>
  45.    -->
  46.     <extended-runtime-options>
  47.       <ffmpegthumbnailer enabled="no">
  48.         <thumbnail-size>128</thumbnail-size>
  49.         <seek-percentage>5</seek-percentage>
  50.         <filmstrip-overlay>yes</filmstrip-overlay>
  51.         <workaround-bugs>no</workaround-bugs>
  52.         <image-quality>8</image-quality>
  53.       </ffmpegthumbnailer>
  54.       <mark-played-items enabled="no" suppress-cds-updates="yes">
  55.         <string mode="prepend">*</string>
  56.         <mark>
  57.           <content>video</content>
  58.         </mark>
  59.       </mark-played-items>
  60.       <lastfm enabled="no">
  61.         <username>lastfmuser</username>
  62.         <password>lastfmpass</password>
  63.       </lastfm>
  64.     </extended-runtime-options>
  65.   </server>
  66.   <import hidden-files="no">
  67.     <scripting script-charset="UTF-8">
  68.       <common-script>/usr/share/mediatomb/js/common.js</common-script>
  69.       <playlist-script>/usr/share/mediatomb/js/playlists.js</playlist-script>
  70.       <virtual-layout type="builtin">
  71.         <import-script>/usr/share/mediatomb/js/import.js</import-script>
  72.       </virtual-layout>
  73.     </scripting>
  74.     <mappings>
  75.       <extension-mimetype ignore-unknown="no">
  76.         <map from="mp3" to="audio/mpeg"/>
  77.         <map from="ogx" to="application/ogg"/>
  78.         <map from="ogv" to="video/ogg"/>
  79.         <map from="oga" to="audio/ogg"/>
  80.         <map from="ogg" to="audio/ogg"/>
  81.         <map from="ogm" to="video/ogg"/>
  82.         <map from="asf" to="video/x-ms-asf"/>
  83.         <map from="asx" to="video/x-ms-asf"/>
  84.         <map from="wma" to="audio/x-ms-wma"/>
  85.         <map from="wax" to="audio/x-ms-wax"/>
  86.         <map from="wmv" to="video/x-ms-wmv"/>
  87.         <map from="wvx" to="video/x-ms-wvx"/>
  88.         <map from="wm" to="video/x-ms-wm"/>
  89.         <map from="wmx" to="video/x-ms-wmx"/>
  90.         <map from="m3u" to="audio/x-mpegurl"/>
  91.         <map from="pls" to="audio/x-scpls"/>
  92.         <map from="flv" to="video/x-flv"/>
  93.         <map from="mkv" to="video/mpeg"/>
  94.         <map from="mka" to="audio/x-matroska"/>
  95.         <map from="avi" to="video/mpeg"/>
  96.         <!-- Uncomment the line below for PS3 divx support -->
  97.         <!-- <map from="avi" to="video/divx"/> -->
  98.         <!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 -->
  99.         <!-- <map from="avi" to="video/avi"/> -->
  100.       </extension-mimetype>
  101.       <mimetype-upnpclass>
  102.         <map from="audio/*" to="object.item.audioItem.musicTrack"/>
  103.         <map from="video/*" to="object.item.videoItem"/>
  104.         <map from="image/*" to="object.item.imageItem"/>
  105.       </mimetype-upnpclass>
  106.       <mimetype-contenttype>
  107.         <treat mimetype="audio/mpeg" as="mp3"/>
  108.         <treat mimetype="application/ogg" as="ogg"/>
  109.         <treat mimetype="audio/x-flac" as="flac"/>
  110.         <treat mimetype="image/jpeg" as="jpg"/>
  111.         <treat mimetype="audio/x-mpegurl" as="playlist"/>
  112.         <treat mimetype="audio/x-scpls" as="playlist"/>
  113.         <treat mimetype="audio/x-wav" as="pcm"/>
  114.         <treat mimetype="audio/L16" as="pcm"/>
  115.         <treat mimetype="video/x-msvideo" as="avi"/>
  116.         <treat mimetype="video/mp4" as="mp4"/>
  117.         <treat mimetype="audio/mp4" as="mp4"/>
  118.         <treat mimetype="application/x-iso9660" as="dvd"/>
  119.         <treat mimetype="application/x-iso9660-image" as="dvd"/>
  120.       </mimetype-contenttype>
  121.     </mappings>
  122.     <online-content>
  123.       <YouTube enabled="no" refresh="28800" update-at-start="no" purge-after="604800" racy-content="exclude" format="mp4" hd="no">
  124.         <favorites user="mediatomb"/>
  125.         <standardfeed feed="most_viewed" time-range="today"/>
  126.         <playlists user="mediatomb"/>
  127.         <uploads user="mediatomb"/>
  128.         <standardfeed feed="recently_featured" time-range="today"/>
  129.       </YouTube>
  130.     </online-content>
  131.   </import>
  132.   <transcoding enabled="no">
  133.     <mimetype-profile-mappings>
  134.       <transcode mimetype="video/x-flv" using="vlcmpeg"/>
  135.       <transcode mimetype="application/ogg" using="vlcmpeg"/>
  136.       <transcode mimetype="application/ogg" using="oggflac2raw"/>
  137.       <transcode mimetype="audio/x-flac" using="oggflac2raw"/>
  138.     </mimetype-profile-mappings>
  139.     <profiles>
  140.       <profile name="oggflac2raw" enabled="no" type="external">
  141.         <mimetype>audio/L16</mimetype>
  142.         <accept-url>no</accept-url>
  143.         <first-resource>yes</first-resource>
  144.         <accept-ogg-theora>no</accept-ogg-theora>
  145.         <agent command="ogg123" arguments="-d raw -o byteorder:big -f %out %in"/>
  146.         <buffer size="1048576" chunk-size="131072" fill-size="262144"/>
  147.       </profile>
  148.       <profile name="vlcmpeg" enabled="no" type="external">
  149.         <mimetype>video/mpeg</mimetype>
  150.         <accept-url>yes</accept-url>
  151.         <first-resource>yes</first-resource>
  152.         <accept-ogg-theora>yes</accept-ogg-theora>
  153.         <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"/>
  154.         <buffer size="14400000" chunk-size="512000" fill-size="120000"/>
  155.       </profile>
  156.     </profiles>
  157.   </transcoding>
  158. </config>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top