daily pastebin goal
30%
SHARE
TWEET

MediaTomb config.xml

a guest Nov 21st, 2017 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # cat /etc/mediatomb/config.xml
  2. <?xml version="1.0" encoding="UTF-8"?>
  3. <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">
  4.   <server>
  5.     <port>49152</port>
  6.     <ui enabled="yes" show-tooltips="yes">
  7.       <accounts enabled="no" session-timeout="30">
  8.         <account user="mediaplayers" password="users"/>
  9.       </accounts>
  10.     </ui>
  11.     <name>jazz_bass-dlna</name>
  12.     <udn>uuid:58779856-ae07-40f7-8e26-de21977c9791</udn>
  13.     <home>/var/lib/mediatomb</home>
  14.     <webroot>/usr/share/mediatomb/web</webroot>
  15.     <storage>
  16.       <sqlite3 enabled="no">
  17.         <database-file>mediatomb.db</database-file>
  18.       </sqlite3>
  19.       <mysql enabled="yes">
  20.         <host>localhost</host>
  21.         <database>mediatomb</database>
  22.         <username>mediatomb</username>
  23.         <password>********</password>
  24.       </mysql>
  25.     </storage>
  26.     <protocolInfo extend="yes"/>
  27.     <pc-directory upnp-hide="no"/>
  28.     <extended-runtime-options>
  29.       <ffmpegthumbnailer enabled="no">
  30.         <thumbnail-size>160</thumbnail-size>
  31.         <seek-percentage>10</seek-percentage>
  32.         <filmstrip-overlay>no</filmstrip-overlay>
  33.         <workaround-bugs>no</workaround-bugs>
  34.         <image-quality>8</image-quality>
  35.       </ffmpegthumbnailer>
  36.       <mark-played-items enabled="no" suppress-cds-updates="yes">
  37.         <string mode="prepend">*</string>
  38.         <mark>
  39.           <content>video</content>
  40.         </mark>
  41.       </mark-played-items>
  42.       <lastfm enabled="no">
  43.         <username>username</username>
  44.         <password>password</password>
  45.       </lastfm>
  46.     </extended-runtime-options>
  47.   </server>
  48.   <filesystem-charset>UTF-8</filesystem-charset>
  49.   <metadata-charset>UTF-8</metadata-charset>
  50.   <playlist-charset>UTF-8</playlist-charset>
  51.   <import hidden-files="no">
  52.     <scripting script-charset="UTF-8">
  53.       <common-script>/usr/share/mediatomb/js/common.js</common-script>
  54.       <playlist-script>/usr/share/mediatomb/js/playlists.js</playlist-script>
  55.       <virtual-layout type="builtin">
  56.         <import-script>/usr/share/mediatomb/js/import.js</import-script>
  57.       </virtual-layout>
  58.     </scripting>
  59.     <mappings>
  60.       <extension-mimetype ignore-unknown="no">
  61.         <map from="mp3" to="audio/mpeg"/>
  62.         <map from="ogx" to="application/ogg"/>
  63.         <map from="ogv" to="video/ogg"/>
  64.         <map from="oga" to="audio/ogg"/>
  65.         <map from="ogg" to="audio/ogg"/>
  66.         <map from="ogm" to="video/ogg"/>
  67.         <map from="asf" to="video/x-ms-asf"/>
  68.         <map from="asx" to="video/x-ms-asf"/>
  69.         <map from="wma" to="audio/x-ms-wma"/>
  70.         <map from="wax" to="audio/x-ms-wax"/>
  71.         <map from="wmv" to="video/x-ms-wmv"/>
  72.         <map from="wvx" to="video/x-ms-wvx"/>
  73.         <map from="wm" to="video/x-ms-wm"/>
  74.         <map from="wmx" to="video/x-ms-wmx"/>
  75.         <map from="m3u" to="audio/x-mpegurl"/>
  76.         <map from="pls" to="audio/x-scpls"/>
  77.         <map from="ts" to="video/mpeg"/>
  78.         <map from="vob" to="video/mpeg"/>
  79.         <map from="wav" to="audio/wav"/>
  80.         <map from="mpg" to="video/mpeg"/>
  81.         <map from="aac" to="audio/x-aac"/>
  82.         <map from="m4a" to="audio/mp4"/>
  83.         <map from="flv" to="video/x-flv"/>
  84.         <map from="mkv" to="video/x-matroska"/>
  85.         <map from="mov" to="video/x-quicktime"/>
  86.         <map from="divx" to="video/divx"/>
  87.         <map from="mka" to="audio/x-matroska"/>
  88.         <map from="avi" to="video/x-msvideo"/>
  89.         <map from="m2ts" to="video/avc"/>
  90.         <map from="cr2" to="image/raw"/>
  91.         <map from="nef" to="image/raw"/>
  92.       </extension-mimetype>
  93.       <mimetype-upnpclass>
  94.         <map from="audio/*" to="object.item.audioItem.musicTrack"/>
  95.         <map from="video/*" to="object.item.videoItem"/>
  96.         <map from="image/*" to="object.item.imageItem"/>
  97.       </mimetype-upnpclass>
  98.       <mimetype-contenttype>
  99.         <treat mimetype="audio/mpeg" as="mp3"/>
  100.         <treat mimetype="application/ogg" as="ogg"/>
  101.         <treat mimetype="video/ogg" as="ogg"/>
  102.         <treat mimetype="audio/ogg" as="ogg"/>
  103.         <treat mimetype="audio/x-flac" as="flac"/>
  104.         <treat mimetype="image/jpeg" as="jpg"/>
  105.         <treat mimetype="audio/x-mpegurl" as="playlist"/>
  106.         <treat mimetype="audio/x-scpls" as="playlist"/>
  107.         <treat mimetype="audio/x-wav" as="pcm"/>
  108.         <treat mimetype="audio/L16" as="pcm"/>
  109.         <treat mimetype="video/x-msvideo" as="avi"/>
  110.         <treat mimetype="video/mp4" as="mp4"/>
  111.         <treat mimetype="audio/mp4" as="mp4"/>
  112.         <treat mimetype="video/divx" as="avi"/>
  113.       </mimetype-contenttype>
  114.     </mappings>
  115.     <online-content>
  116.       <YouTube enabled="no" refresh="28800" update-at-start="yes" purge-after="604800" racy-content="exclude" format="mp4" hd="no">
  117.         <favorites user="NationalGeographic"/>
  118.         <playlists user="PlayStation"/>
  119.         <uploads user="Google"/>
  120.         <standardfeed feed="most_viewed" time-range="today"/>
  121.         <standardfeed feed="recently_featured" time-range="today"/>
  122.       </YouTube>
  123.     </online-content>
  124.   </import>
  125.   <transcoding enabled="no">
  126.     <mimetype-profile-mappings>
  127.       <transcode mimetype="audio/ogg" using="audio2pcm"/>
  128.       <transcode mimetype="audio/x-flac" using="audio2pcm"/>
  129.       <transcode mimetype="video/ogg" using="video2mpeg"/>
  130.       <transcode mimetype="video/x-flv" using="video2mpeg"/>
  131.     </mimetype-profile-mappings>
  132.     <profiles>
  133.       <profile name="audio2pcm" enabled="yes" type="external">
  134.         <mimetype>audio/L16</mimetype>
  135.         <accept-url>no</accept-url>
  136.         <first-resource>yes</first-resource>
  137.         <hide-original-resource>yes</hide-original-resource>
  138.         <accept-ogg-theora>no</accept-ogg-theora>
  139.         <sample-frequency>44100</sample-frequency>
  140.         <audio-channels>2</audio-channels>
  141.         <agent command="ffmpeg" arguments="-i %in -acodec pcm_s16be -ab 192k -ar 44100 -ac 2 -f s16be -y %out"/>
  142.         <buffer size="1048576" chunk-size="131072" fill-size="262144"/>
  143.       </profile>
  144.       <profile name="video2mpeg" enabled="yes" type="external">
  145.         <mimetype>video/mpeg</mimetype>
  146.         <accept-url>no</accept-url>
  147.         <first-resource>yes</first-resource>
  148.         <hide-original-resource>yes</hide-original-resource>
  149.         <accept-ogg-theora>yes</accept-ogg-theora>
  150.         <sample-frequency>48000</sample-frequency>
  151.         <audio-channels>2</audio-channels>
  152.         <agent command="ffmpeg" arguments="-i %in -vcodec mpeg2video -b 4096k -r 25 -acodec mp2 -ab 192k -ar 48000 -ac 2 -async 1 -f dvd -threads 2 -y %out"/>
  153.         <buffer size="10485760" chunk-size="262144" fill-size="524288"/>
  154.       </profile>
  155.     </profiles>
  156.   </transcoding>
  157. </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