Advertisement
Guest User

mediatomb

a guest
May 11th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.85 KB | None | 0 0
  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="pi" password="15121991"/>
  10. </accounts>
  11. </ui>
  12. <name>Mediatomb</name>
  13. <udn>uuid:c502c761-4999-4cc3-91f1-457f78ba26ea</udn>
  14. <home>/var/lib/mediatomb</home>
  15. <webroot>/usr/share/mediatomb/web</webroot>
  16. <storage caching="yes">
  17. <sqlite3 enabled="yes">
  18. <database-file>mediatomb.db</database-file>
  19. </sqlite3>
  20. <mysql enabled="no">
  21. <host>localhost</host>
  22. <username>mediatomb</username>
  23. <database>mediatomb</database>
  24. </mysql>
  25. </storage>
  26. <protocolInfo extend="yes"/><!-- For PS3 support change to "yes" --><!--
  27. Uncomment the lines below to get rid of jerky avi playback on the
  28. DSM320 or to enable subtitles support on the DSM units
  29. --><!--
  30. <custom-http-headers>
  31. <add header="X-User-Agent: redsonic"/>
  32. </custom-http-headers>
  33.  
  34. <manufacturerURL>redsonic.com</manufacturerURL>
  35. <modelNumber>105</modelNumber>
  36. --><!-- Uncomment the line below if you have a Telegent TG100 --><!--
  37. <upnp-string-limit>101</upnp-string-limit>
  38. -->
  39. <extended-runtime-options>
  40. <ffmpegthumbnailer enabled="yes">
  41. <thumbnail-size>128</thumbnail-size>
  42. <seek-percentage>5</seek-percentage>
  43. <filmstrip-overlay>yes</filmstrip-overlay>
  44. <workaround-bugs>no</workaround-bugs>
  45. </ffmpegthumbnailer>
  46. <mark-played-items enabled="yes" suppress-cds-updates="yes">
  47. <string mode="prepend">*</string>
  48. </mark-played-items>
  49. </extended-runtime-options>
  50. </server>
  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. <dvd-script>/usr/share/mediatomb/js/import-dvd.js</dvd-script>
  58. </virtual-layout>
  59. </scripting>
  60. <mappings>
  61. <extension-mimetype ignore-unknown="no">
  62. <map from="mp3" to="audio/mpeg"/>
  63. <map from="ogg" to="application/ogg"/>
  64. <map from="asf" to="video/x-ms-asf"/>
  65. <map from="asx" to="video/x-ms-asf"/>
  66. <map from="wma" to="audio/x-ms-wma"/>
  67. <map from="wax" to="audio/x-ms-wax"/>
  68. <map from="wmv" to="video/x-ms-wmv"/>
  69. <map from="wvx" to="video/x-ms-wvx"/>
  70. <map from="wm" to="video/x-ms-wm"/>
  71. <map from="wmx" to="video/x-ms-wmx"/>
  72. <map from="m3u" to="audio/x-mpegurl"/>
  73. <map from="pls" to="audio/x-scpls"/>
  74. <map from="flv" to="video/x-flv"/>
  75. <map from="mkv" to="video/x-matroska"/>
  76. <map from="mka" to="audio/x-matroska"/><!-- 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"/> -->
  77. </extension-mimetype>
  78. <mimetype-upnpclass>
  79. <map from="audio/*" to="object.item.audioItem.musicTrack"/>
  80. <map from="video/*" to="object.item.videoItem"/>
  81. <map from="image/*" to="object.item.imageItem"/>
  82. <map from="application/ogg" to="object.item.audioItem.musicTrack"/>
  83. </mimetype-upnpclass>
  84. <mimetype-contenttype>
  85. <treat mimetype="audio/mpeg" as="mp3"/>
  86. <treat mimetype="application/ogg" as="ogg"/>
  87. <treat mimetype="audio/x-flac" as="flac"/>
  88. <treat mimetype="image/jpeg" as="jpg"/>
  89. <treat mimetype="audio/x-mpegurl" as="playlist"/>
  90. <treat mimetype="audio/x-scpls" as="playlist"/>
  91. <treat mimetype="audio/x-wav" as="pcm"/>
  92. <treat mimetype="audio/L16" as="pcm"/>
  93. <treat mimetype="video/x-msvideo" as="avi"/>
  94. <treat mimetype="video/mp4" as="mp4"/>
  95. <treat mimetype="audio/mp4" as="mp4"/>
  96. <treat mimetype="application/x-iso9660" as="dvd"/>
  97. <treat mimetype="application/x-iso9660-image" as="dvd"/>
  98. <treat mimetype="video/x-matroska" as="mkv"/>
  99. <treat mimetype="audio/x-matroska" as="mka"/>
  100. </mimetype-contenttype>
  101. </mappings>
  102. <online-content><!-- Make sure to setup a transcoding profile for flv -->
  103. <YouTube enabled="no" refresh="28800" update-at-start="no" purge-after="604800" racy-content="exclude" format="flv" hd="no">
  104. <favorites user="mediatomb"/>
  105. <standardfeed feed="most_viewed" time-range="today"/>
  106. <playlists user="mediatomb"/>
  107. <uploads user="mediatomb"/>
  108. <standardfeed feed="recently_featured" time-range="today"/>
  109. </YouTube>
  110. <Weborama enabled="no" refresh="28800" update-at-start="no">
  111. <playlist name="Active" type="playlist" mood="active"/>
  112. <playlist name="Metal" type="playlist">
  113. <filter>
  114. <genres>metal</genres>
  115. </filter>
  116. </playlist>
  117. </Weborama>
  118. <AppleTrailers enabled="no" refresh="43200" update-at-start="no" resolution="640"/>
  119. </online-content>
  120. </import>
  121. <transcoding enabled="yes">
  122. <mimetype-profile-mappings>
  123. <transcode mimetype="video/x-flv" using="vlcmpeg"/>
  124. <transcode mimetype="application/ogg" using="vlcmpeg"/>
  125. <transcode mimetype="application/ogg" using="oggflac2raw"/>
  126. <transcode mimetype="audio/x-flac" using="oggflac2raw"/>
  127. </mimetype-profile-mappings>
  128. <profiles>
  129. <profile name="oggflac2raw" enabled="no" type="external">
  130. <mimetype>audio/L16</mimetype>
  131. <accept-url>no</accept-url>
  132. <first-resource>yes</first-resource>
  133. <accept-ogg-theora>no</accept-ogg-theora>
  134. <agent command="ogg123" arguments="-d raw -o byteorder:big -f %out %in"/>
  135. <buffer size="1048576" chunk-size="131072" fill-size="262144"/>
  136. </profile>
  137. <profile name="vlcmpeg" enabled="yes" type="external">
  138. <mimetype>video/mpeg</mimetype>
  139. <accept-url>yes</accept-url>
  140. <first-resource>yes</first-resource>
  141. <accept-ogg-theora>yes</accept-ogg-theora>
  142. <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"/>
  143. <buffer size="14400000" chunk-size="512000" fill-size="120000"/>
  144. </profile>
  145. </profiles>
  146. </transcoding>
  147. </config>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement