config.xml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <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">
  2. <!--
  3. See http://gerbera.io or read the docs 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="no" session-timeout="30">
  9. <account user="gerbera" password="gerbera"/>
  10. </accounts>
  11. </ui>
  12. <name>Gerbera</name>
  13. <udn>uuid:ac20d9b6-5c82-48e6-80de-436965fbe1d7</udn>
  14. <home>/var/lib/gerbera</home>
  15. <webroot>/usr/share/gerbera/web</webroot>
  16. <!--
  17. How frequently (in seconds) to send ssdp:alive advertisements.
  18. Minimum alive value accepted is: 62
  19. The advertisement will be sent every (A/2)-30 seconds,
  20. and will have a cache-control max-age of A where A is
  21. the value configured here. Ex: A value of 62 will result
  22. in an SSDP advertisement being sent every second.
  23. -->
  24. <alive>1800</alive>
  25. <storage>
  26. <sqlite3 enabled="yes">
  27. <database-file>gerbera.db</database-file>
  28. </sqlite3>
  29. </storage>
  30. <protocolInfo extend="no"/><!-- For PS3 support change to "yes" -->
  31. <!--
  32. Uncomment the lines below to get rid of jerky avi playback on the
  33. DSM320 or to enable subtitles support on the DSM units
  34. -->
  35. <!--
  36. <custom-http-headers>
  37. <add header="X-User-Agent: redsonic"/>
  38. </custom-http-headers>
  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. <mark-played-items enabled="no" suppress-cds-updates="yes">
  48. <string mode="prepend">*</string>
  49. <mark>
  50. <content>video</content>
  51. </mark>
  52. </mark-played-items>
  53. </extended-runtime-options>
  54. </server>
  55. <import hidden-files="no">
  56. <scripting script-charset="UTF-8">
  57. <virtual-layout type="builtin"/>
  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="flv" to="video/x-flv"/>
  78. <map from="mkv" to="video/x-matroska"/>
  79. <map from="mka" to="audio/x-matroska"/>
  80. <map from="dsf" to="audio/x-dsd"/>
  81. <map from="dff" to="audio/x-dsd"/>
  82. <map from="wv" to="audio/x-wavpack"/>
  83. <!-- Uncomment the line below for PS3 divx support -->
  84. <!-- <map from="avi" to="video/divx"/> -->
  85. <!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 -->
  86. <!-- <map from="avi" to="video/avi"/> -->
  87. </extension-mimetype>
  88. <mimetype-upnpclass>
  89. <map from="audio/*" to="object.item.audioItem.musicTrack"/>
  90. <map from="video/*" to="object.item.videoItem"/>
  91. <map from="image/*" to="object.item.imageItem"/>
  92. <map from="application/ogg" to="object.item.audioItem.musicTrack"/>
  93. </mimetype-upnpclass>
  94. <mimetype-contenttype>
  95. <treat mimetype="audio/mpeg" as="mp3"/>
  96. <treat mimetype="application/ogg" as="ogg"/>
  97. <treat mimetype="audio/ogg" as="ogg"/>
  98. <treat mimetype="audio/x-flac" as="flac"/>
  99. <treat mimetype="audio/x-ms-wma" as="wma"/>
  100. <treat mimetype="audio/x-wavpack" as="wv"/>
  101. <treat mimetype="image/jpeg" as="jpg"/>
  102. <treat mimetype="audio/x-mpegurl" as="playlist"/>
  103. <treat mimetype="audio/x-scpls" as="playlist"/>
  104. <treat mimetype="audio/x-wav" as="pcm"/>
  105. <treat mimetype="audio/L16" as="pcm"/>
  106. <treat mimetype="video/x-msvideo" as="avi"/>
  107. <treat mimetype="video/mp4" as="mp4"/>
  108. <treat mimetype="audio/mp4" as="mp4"/>
  109. <treat mimetype="video/x-matroska" as="mkv"/>
  110. <treat mimetype="audio/x-matroska" as="mka"/>
  111. <treat mimetype="audio/x-dsd" as="dsd"/>
  112. </mimetype-contenttype>
  113. </mappings>
  114. </import>
  115. <transcoding enabled="no">
  116. <mimetype-profile-mappings>
  117. <transcode mimetype="video/x-flv" using="vlcmpeg"/>
  118. <transcode mimetype="application/ogg" using="vlcmpeg"/>
  119. <transcode mimetype="application/ogg" using="oggflac2raw"/>
  120. <transcode mimetype="audio/x-flac" using="oggflac2raw"/>
  121. </mimetype-profile-mappings>
  122. <profiles>
  123. <profile name="oggflac2raw" enabled="no" type="external">
  124. <mimetype>audio/L16</mimetype>
  125. <accept-url>no</accept-url>
  126. <first-resource>yes</first-resource>
  127. <accept-ogg-theora>no</accept-ogg-theora>
  128. <agent command="ogg123" arguments="-d raw -o byteorder:big -f %out %in"/>
  129. <buffer size="1048576" chunk-size="131072" fill-size="262144"/>
  130. </profile>
  131. <profile name="vlcmpeg" enabled="no" type="external">
  132. <mimetype>video/mpeg</mimetype>
  133. <accept-url>yes</accept-url>
  134. <first-resource>yes</first-resource>
  135. <accept-ogg-theora>yes</accept-ogg-theora>
  136. <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"/>
  137. <buffer size="14400000" chunk-size="512000" fill-size="120000"/>
  138. </profile>
  139. </profiles>
  140. </transcoding>
  141. </config>