<?xml version="1.0" encoding="UTF-8"?>
<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">
<server>
<ui enabled="yes">
<accounts enabled="no" session-timeout="30">
<account user="mediatomb" password="mediatomb"/>
</accounts>
</ui>
<name>MediaTomb</name>
<udn>uuid:71d928af-e06c-410b-9c4b-7d63a8ead3cc</udn>
<home>/home/greg/.mediatomb</home>
<webroot>/usr/local/share/mediatomb/web</webroot>
<storage>
<!-- <storage caching="no"> -->
<sqlite3 enabled="yes">
<database-file>mediatomb.db</database-file>
</sqlite3>
<mysql enabled="no">
<host>localhost</host>
<username>mediatomb</username>
<database>mediatomb</database>
</mysql>
</storage>
<protocolInfo extend="yes"/><!-- For PS3 support change to "yes" -->
<!--
Uncomment the lines below to get rid of jerky avi playback on the
DSM320 or to enable subtitles support on the DSM units
-->
<!--
<custom-http-headers>
<add header="X-User-Agent: redsonic"/>
</custom-http-headers>
<manufacturerURL>redsonic.com</manufacturerURL>
<modelNumber>105</modelNumber>
-->
<!-- Uncomment the line below if you have a Telegent TG100 -->
<!--
<upnp-string-limit>101</upnp-string-limit>
-->
</server>
<import hidden-files="no">
<scripting script-charset="UTF-8">
<common-script>/usr/local/share/mediatomb/js/common.js</common-script>
<playlist-script>/usr/local/share/mediatomb/js/playlists.js</playlist-script>
<!-- <virtual-layout type="builtin"> -->
<virtual-layout type="js">
<import-script>/usr/local/share/mediatomb/js/import.js</import-script>
</virtual-layout>
</scripting>
<mappings>
<extension-mimetype ignore-unknown="no">
<map from="mp3" to="audio/mpeg"/>
<map from="ogg" to="application/ogg"/>
<map from="asf" to="video/x-ms-asf"/>
<map from="asx" to="video/x-ms-asf"/>
<map from="wma" to="audio/x-ms-wma"/>
<map from="wax" to="audio/x-ms-wax"/>
<map from="wmv" to="video/x-ms-wmv"/>
<map from="wvx" to="video/x-ms-wvx"/>
<map from="wm" to="video/x-ms-wm"/>
<map from="wmx" to="video/x-ms-wmx"/>
<map from="m3u" to="audio/x-mpegurl"/>
<map from="pls" to="audio/x-scpls"/>
<map from="flv" to="video/x-flv"/>
<!-- the line below from tensuns (gl) -->
<map from="pcm" to="audio/L16"/>
<map from="lpcm" to="audio/L16"/>
<!-- 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"/> -->
<map from="ts" to="video/mpeg"/>
<map from="vob" to="video/mpeg"/>
<map from="wav" to="audio/wav"/>
<map from="mpg" to="video/mpeg"/>
<map from="aac" to="audio/x-aac"/>
<map from="m4a" to="audio/mp4"/>
<map from="mkv" to="video/x-matroska"/>
<map from="mov" to="video/x-quicktime"/>
</extension-mimetype>
<mimetype-upnpclass>
<map from="audio/*" to="object.item.audioItem.musicTrack"/>
<map from="video/*" to="object.item.videoItem"/>
<map from="image/*" to="object.item.imageItem"/>
</mimetype-upnpclass>
<mimetype-contenttype>
<treat mimetype="audio/mpeg" as="mp3"/>
<treat mimetype="application/ogg" as="ogg"/>
<treat mimetype="audio/x-flac" as="flac"/>
<treat mimetype="audio/wav" as="wav"/>
<treat mimetype="image/jpeg" as="jpg"/>
<treat mimetype="audio/x-mpegurl" as="playlist"/>
<treat mimetype="audio/x-scpls" as="playlist"/>
<treat mimetype="audio/x-wav" as="pcm"/>
<treat mimetype="audio/L16" as="pcm"/>
<treat mimetype="video/x-msvideo" as="avi"/>
<treat mimetype="video/mp4" as="mp4"/>
<treat mimetype="video/x-quicktime" as="mov"/>
<treat mimetype="audio/mp4" as="mp4"/>
<treat mimetype="audio/x-ms-wma" as="wma"/>
<treat mimetype="audio/x-ms-asf" as="asf"/>
<treat mimetype="audio/x-aac" as="aac"/>
<treat mimetype="video/x-ms-wmv" as="wmv"/>
<treat mimetype="video/x-matroska" as="mkv"/>
</mimetype-contenttype>
</mappings>
<!-- <filesystem-charset> -->
<!-- <metadata-charset> -->
<!-- <playlist-charset> -->
<!-- <autoscan> -->
<!-- <library options> -->
<library-options>
<libexif>
<auxdata>
<add-data tag="EXIF_TAG_MODEL"/>
</auxdata>
</libexif>
<id3>
<auxdata>
<add-data tag="TENC"/>
<!-- TALB, TBPM, TCOM, TCON, TCOP, TDAT, TDLY, TENC, TEXT, TFLT, TIME,
TIT1, TIT2, TIT3, TKEY, TLAN, TLEN, TMED, TOAL, TOFN, TOLY, TOPE, TORY, TOWN, TPE1, TPE2, TPE3, TPE4,
TPOS, TPUB, TRCK, TRDA, TRSN, TRSO, TSIZ, TSRC, TSSE, TYER, TXXX -->
</auxdata>
</id3>
</library-options>
<!-- <magic-file> -->
<online-content fetch-buffer-size="262144" fetch-buffer-fill-size="0">
<YouTube enabled="yes" refresh="28800" update-at-start="yes" purge-after="604800" racy-content="include">
<favorites user="mediatomb"/>
<standardfeed feed="most_viewed" region-id="us" time-range="today"/>
<playlists user="mediatomb"/>
<uploads user="mediatomb"/>
<standardfeed feed="recently_featured" region-id="us" time-range="today"/>
</YouTube>
</online-content>
</import>
<transcoding enabled="yes">
<mimetype-profile-mappings>
<!-- <transcode mimetype="audio/mpeg" using="vlcwav"/> -->
<!-- <transcode mimetype="audio/mpeg" using="ffmpegwav"/> -->
<transcode mimetype="video/x-flv" using="ffyoutube"/>
<transcode mimetype="video/mp4" using="transvideo"/>
<transcode mimetype="video/x-quicktime" using="transvideo"/>
<transcode mimetype="application/ogg" using="vlcwav"/>
<transcode mimetype="audio/x-ms-wma" using="vlcwav"/>
<transcode mimetype="audio/x-ms-asf" using="vlcwav"/>
<transcode mimetype="audio/x-flac" using="ffmpegwav"/>
<!-- <transcode mimetype="audio/mp4" using="ffmpegwav"/> -->
<transcode mimetype="audio/mp4" using="vlcwav"/>
<transcode mimetype="audio/x-aac" using="vlcwav"/>
<transcode mimetype="video/x-msvideo" using="transvideo"/>
<transcode mimetype="video/x-ms-wmv" using="transvideo"/>
<transcode mimetype="video/mpeg" using="mpeg2trans"/>
<transcode mimetype="video/x-matroska" using="transvideo"/>
<transcode mimetype="image/jpeg" using="rescalejpeg"/>
</mimetype-profile-mappings>
<profiles>
<profile name="transvideo" enabled="yes" type="external">
<mimetype>video/mpeg</mimetype>
<accept-url>yes</accept-url>
<first-resource>yes</first-resource>
<agent command="ffmpegvideo" arguments="%in %out 5900k 256k"/>
<buffer size="57600000" chunk-size="128000" fill-size="10000000"/>
</profile>
<profile name="mpeg2trans" enabled="yes" type="external">
<mimetype>video/mpeg</mimetype>
<accept-url>yes</accept-url>
<first-resource>yes</first-resource>
<hide-original-resource>yes</hide-original-resource>
<agent command="ffmpegvideo" arguments="%in %out 6000k 256k"/>
<buffer size="28800000" chunk-size="512000" fill-size="120000"/>
</profile>
<profile name="ffmpegwav" enabled="yes" type="external">
<use-chunked-encoding>no</use-chunked-encoding>
<mimetype>audio/wav</mimetype>
<accept-url>yes</accept-url>
<first-resource>yes</first-resource>
<agent command="ffmpegaudio" arguments="%in %out"/>
<buffer size="1048576" chunk-size="131072" fill-size="262144"/>
</profile>
<profile name="vlcwav" enabled="yes" type="external">
<use-chunked-encoding>no</use-chunked-encoding>
<mimetype>audio/wav</mimetype>
<accept-url>yes</accept-url>
<first-resource>yes</first-resource>
<agent command="vlcaudio" arguments="%in %out"/>
<buffer size="300000" chunk-size="10000" fill-size="32000"/>
</profile>
<profile name="ffyoutube" enabled="yes" type="external">
<mimetype>video/mpeg</mimetype>
<accept-url>no</accept-url>
<first-resource>yes</first-resource>
<accept-ogg-theora>yes</accept-ogg-theora>
<agent command="ffmpegyoutube" arguments="%in %out"/>
<buffer size="14400000" chunk-size="256000" fill-size="80000"/>
</profile>
<!--
<profile name="vlcyoutube" enabled="yes" type="external">
<mimetype>video/mpeg</mimetype>
<accept-url>yes</accept-url>
<first-resource>yes</first-resource>
<accept-ogg-theora>yes</accept-ogg-theora>
<agent command="vlcyoutube" arguments="%in %out"/>
<buffer size="14400000" chunk-size="256000" fill-size="80000"/>
</profile>
-->
<profile name="rescalejpeg" enabled="yes" type="external">
<mimetype>image/jpeg</mimetype>
<accept-url>no</accept-url>
<first-resource>yes</first-resource>
<accept-ogg-theora>no</accept-ogg-theora>
<!--
<agent command="convert" arguments="-size 1440x720 %in -auto-orient
-resize 112.5%x100% +profile '*' %out"/>
-->
<agent command="transjpeg" arguments="%in %out"/>
<buffer size="50000" chunk-size="100" fill-size="100"/>
</profile>
</profiles>
</transcoding>
</config>