config.xml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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. <server>
  4. <ui enabled="yes" show-tooltips="yes">
  5. <accounts enabled="no" session-timeout="30">
  6. <account user="mediatomb" password="mediatomb"/>
  7. </accounts>
  8. </ui>
  9. <name>MediaTomb</name>
  10. <home>/var/db/mediatomb</home>
  11. <webroot>${TRUEPREFIX}/share/mediatomb/web</webroot>
  12. <storage>
  13. <sqlite3 enabled="yes">
  14. <database-file>mediatomb.db</database-file>
  15. </sqlite3>
  16. </storage>
  17. <protocolInfo extend="no"/><!-- For PS3 support change to "yes" -->
  18. <!--
  19. Uncomment the lines below to get rid of jerky avi playback on the
  20. DSM320 or to enable subtitles support on the DSM units
  21. -->
  22. <!--
  23. <custom-http-headers>
  24. <add header="X-User-Agent: redsonic"/>
  25. </custom-http-headers>
  26. <manufacturerURL>redsonic.com</manufacturerURL>
  27. <modelNumber>105</modelNumber>
  28. -->
  29. <!-- Uncomment the line below if you have a Telegent TG100 -->
  30. <!--
  31. <upnp-string-limit>101</upnp-string-limit>
  32. -->
  33. <extended-runtime-options>
  34. <ffmpegthumbnailer enabled="no">
  35. <thumbnail-size>128</thumbnail-size>
  36. <seek-percentage>5</seek-percentage>
  37. <filmstrip-overlay>yes</filmstrip-overlay>
  38. <workaround-bugs>no</workaround-bugs>
  39. <image-quality>8</image-quality>
  40. </ffmpegthumbnailer>
  41. <mark-played-items enabled="no" suppress-cds-updates="yes">
  42. <string mode="prepend">*</string>
  43. <mark>
  44. <content>video</content>
  45. </mark>
  46. </mark-played-items>
  47. </extended-runtime-options>
  48. </server>
  49. <import hidden-files="no">
  50. <scripting script-charset="UTF-8">
  51. <common-script>${TRUEPREFIX}/share/mediatomb/js/common.js</common-script>
  52. <playlist-script>${TRUEPREFIX}/share/mediatomb/js/playlists.js</playlist-script>
  53. <virtual-layout type="builtin">
  54. <import-script>${TRUEPREFIX}/share/mediatomb/js/import.js</import-script>
  55. </virtual-layout>
  56. </scripting>
  57. <mappings>
  58. <extension-mimetype ignore-unknown="no">
  59. <map from="mp3" to="audio/mpeg"/>
  60. <map from="ogx" to="application/ogg"/>
  61. <map from="ogv" to="video/ogg"/>
  62. <map from="oga" to="audio/ogg"/>
  63. <map from="ogg" to="audio/ogg"/>
  64. <map from="ogm" to="video/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. <!-- Uncomment the line below for PS3 divx support -->
  79. <!-- <map from="avi" to="video/divx"/> -->
  80. <!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 -->
  81. <!-- <map from="avi" to="video/avi"/> -->
  82. </extension-mimetype>
  83. <mimetype-upnpclass>
  84. <map from="audio/*" to="object.item.audioItem.musicTrack"/>
  85. <map from="video/*" to="object.item.videoItem"/>
  86. <map from="image/*" to="object.item.imageItem"/>
  87. </mimetype-upnpclass>
  88. <mimetype-contenttype>
  89. <treat mimetype="audio/mpeg" as="mp3"/>
  90. <treat mimetype="application/ogg" as="ogg"/>
  91. <treat mimetype="audio/x-flac" as="flac"/>
  92. <treat mimetype="image/jpeg" as="jpg"/>
  93. <treat mimetype="audio/x-mpegurl" as="playlist"/>
  94. <treat mimetype="audio/x-scpls" as="playlist"/>
  95. <treat mimetype="audio/x-wav" as="pcm"/>
  96. <treat mimetype="audio/L16" as="pcm"/>
  97. <treat mimetype="video/x-msvideo" as="avi"/>
  98. <treat mimetype="video/mp4" as="mp4"/>
  99. <treat mimetype="audio/mp4" as="mp4"/>
  100. <treat mimetype="application/x-iso9660" as="dvd"/>
  101. <treat mimetype="application/x-iso9660-image" as="dvd"/>
  102. </mimetype-contenttype>
  103. </mappings>
  104. <online-content>
  105. <YouTube enabled="no" refresh="28800" update-at-start="no" purge-after="604800" racy-content="exclude" format="mp4" hd="no">
  106. <favorites user="mediatomb"/>
  107. <standardfeed feed="most_viewed" time-range="today"/>
  108. <playlists user="mediatomb"/>
  109. <uploads user="mediatomb"/>
  110. <standardfeed feed="recently_featured" time-range="today"/>
  111. </YouTube>
  112. </online-content>
  113. </import>
  114. <transcoding enabled="no">
  115. <mimetype-profile-mappings>
  116. <transcode mimetype="video/x-flv" using="vlcmpeg"/>
  117. <transcode mimetype="application/ogg" using="vlcmpeg"/>
  118. <transcode mimetype="application/ogg" using="oggflac2raw"/>
  119. <transcode mimetype="audio/x-flac" using="oggflac2raw"/>
  120. </mimetype-profile-mappings>
  121. <profiles>
  122. <profile name="oggflac2raw" enabled="no" type="external">
  123. <mimetype>audio/L16</mimetype>
  124. <accept-url>no</accept-url>
  125. <first-resource>yes</first-resource>
  126. <accept-ogg-theora>no</accept-ogg-theora>
  127. <agent command="ogg123" arguments="-d raw -o byteorder:big -f %out %in"/>
  128. <buffer size="1048576" chunk-size="131072" fill-size="262144"/>
  129. </profile>
  130. <profile name="vlcmpeg" enabled="no" type="external">
  131. <mimetype>video/mpeg</mimetype>
  132. <accept-url>yes</accept-url>
  133. <first-resource>yes</first-resource>
  134. <accept-ogg-theora>yes</accept-ogg-theora>
  135. <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"/>
  136. <buffer size="14400000" chunk-size="512000" fill-size="120000"/>
  137. </profile>
  138. </profiles>
  139. </transcoding>
  140. </config>