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 <!-- 4 See http://gerbera.io or read the docs for more 5 information on creating and using config.xml configuration files. 6 --> 7 <server> 8 <ui enabled="yes" show-tooltips="yes"> 9 <accounts enabled="no" session-timeout="30"> 10 <account user="gerbera" password="gerbera" /> 11 </accounts> 12 </ui> 13 <name>Gerbera</name> 14 <udn>uuid:ac20d9b6-5c82-48e6-80de-436965fbe1d7</udn> 15 <home>/var/lib/gerbera</home> 16 <webroot>/usr/share/gerbera/web</webroot> 17 <!-- 18 How frequently (in seconds) to send ssdp:alive advertisements. 19 Minimum alive value accepted is: 62 20 21 The advertisement will be sent every (A/2)-30 seconds, 22 and will have a cache-control max-age of A where A is 23 the value configured here. Ex: A value of 62 will result 24 in an SSDP advertisement being sent every second. 25 --> 26 <alive>1800</alive> 27 <storage> 28 <sqlite3 enabled="yes"> 29 <database-file>gerbera.db</database-file> 30 </sqlite3> 31 </storage> 32 <extended-runtime-options> 33 <mark-played-items enabled="no" suppress-cds-updates="yes"> 34 <string mode="prepend">*</string> 35 <mark> 36 <content>video</content> 37 </mark> 38 </mark-played-items> 39 </extended-runtime-options> 40 </server> 41 <import hidden-files="no"> 42 <scripting> 43 <virtual-layout type="builtin" /> 44 </scripting> 45 <mappings> 46 <extension-mimetype ignore-unknown="no"> 47 <map from="asf" to="video/x-ms-asf" /> 48 <map from="asx" to="video/x-ms-asf" /> 49 <map from="dff" to="audio/x-dsd" /> 50 <map from="dsf" to="audio/x-dsd" /> 51 <map from="flv" to="video/x-flv" /> 52 <map from="m2ts" to="video/mp2t" /> 53 <map from="m3u" to="audio/x-mpegurl" /> 54 <map from="mka" to="audio/x-matroska" /> 55 <map from="mkv" to="video/x-matroska" /> 56 <map from="mp3" to="audio/mpeg" /> 57 <map from="mts" to="video/mp2t" /> 58 <map from="oga" to="audio/ogg" /> 59 <map from="ogg" to="audio/ogg" /> 60 <map from="ogm" to="video/ogg" /> 61 <map from="ogv" to="video/ogg" /> 62 <map from="ogx" to="application/ogg" /> 63 <map from="pls" to="audio/x-scpls" /> 64 <map from="ts" to="video/mp2t" /> 65 <map from="tsa" to="audio/mp2t" /> 66 <map from="tsv" to="video/mp2t" /> 67 <map from="wax" to="audio/x-ms-wax" /> 68 <map from="wm" to="video/x-ms-wm" /> 69 <map from="wma" to="audio/x-ms-wma" /> 70 <map from="wmv" to="video/x-ms-wmv" /> 71 <map from="wmx" to="video/x-ms-wmx" /> 72 <map from="wv" to="audio/x-wavpack" /> 73 <map from="wvx" to="video/x-ms-wvx" /> 74 <!-- Uncomment the line below for PS3 divx support --> 75 <!-- <map from="avi" to="video/divx" /> --> 76 <!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 --> 77 <!-- <map from="avi" to="video/avi" /> --> 78 </extension-mimetype> 79 <mimetype-upnpclass> 80 <map from="application/ogg" to="object.item.audioItem.musicTrack" /> 81 <map from="audio/*" to="object.item.audioItem.musicTrack" /> 82 <map from="image/*" to="object.item.imageItem" /> 83 <map from="video/*" to="object.item.videoItem" /> 84 </mimetype-upnpclass> 85 <mimetype-contenttype> 86 <treat mimetype="application/ogg" as="ogg" /> 87 <treat mimetype="audio/L16" as="pcm" /> 88 <treat mimetype="audio/flac" as="flac" /> 89 <treat mimetype="audio/mp4" as="mp4" /> 90 <treat mimetype="audio/mpeg" as="mp3" /> 91 <treat mimetype="audio/ogg" as="ogg" /> 92 <treat mimetype="audio/x-dsd" as="dsd" /> 93 <treat mimetype="audio/x-flac" as="flac" /> 94 <treat mimetype="audio/x-matroska" as="mka" /> 95 <treat mimetype="audio/x-mpegurl" as="playlist" /> 96 <treat mimetype="audio/x-ms-wma" as="wma" /> 97 <treat mimetype="audio/x-scpls" as="playlist" /> 98 <treat mimetype="audio/x-wav" as="pcm" /> 99 <treat mimetype="audio/x-wavpack" as="wv" /> 100 <treat mimetype="image/jpeg" as="jpg" /> 101 <treat mimetype="video/mp4" as="mp4" /> 102 <treat mimetype="video/x-matroska" as="mkv" /> 103 <treat mimetype="video/x-msvideo" as="avi" /> 104 </mimetype-contenttype> 105 </mappings> 106 <online-content> 107 <AppleTrailers enabled="no" refresh="43200" update-at-start="no" resolution="640" /> 108 </online-content> 109 </import> 110 <transcoding enabled="no"> 111 <mimetype-profile-mappings> 112 <transcode mimetype="application/ogg" using="vlcmpeg" /> 113 <transcode mimetype="audio/ogg" using="ogg2mp3" /> 114 <transcode mimetype="video/x-flv" using="vlcmpeg" /> 115 </mimetype-profile-mappings> 116 <profiles> 117 <profile name="ogg2mp3" enabled="no" type="external"> 118 <mimetype>audio/mpeg</mimetype> 119 <accept-url>no</accept-url> 120 <first-resource>yes</first-resource> 121 <accept-ogg-theora>no</accept-ogg-theora> 122 <agent command="ffmpeg" arguments="-y -i %in -f mp3 %out" /> 123 <buffer size="1048576" chunk-size="131072" fill-size="262144" /> 124 </profile> 125 <profile name="vlcmpeg" enabled="no" type="external"> 126 <mimetype>video/mpeg</mimetype> 127 <accept-url>yes</accept-url> 128 <first-resource>yes</first-resource> 129 <accept-ogg-theora>yes</accept-ogg-theora> 130 <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" /> 131 <buffer size="14400000" chunk-size="512000" fill-size="120000" /> 132 </profile> 133 </profiles> 134 </transcoding> 135</config> 136