core,doc,tracker: Add option for upload folders
[profile/ivi/rygel.git] / doc / man / rygel.conf.xml
1 <?xml version='1.0' encoding='UTF-8'?>
2 <!-- This document was created with Syntext Serna Free. --><!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
3
4 <!--
5
6 `xsltproc -''-nonet \
7           -''-param man.charmap.use.subset "0" \
8           -''-param make.year.ranges "1" \
9           -''-param make.single.year.ranges "1" \
10           /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl \
11           manpage.xml'
12
13 A manual page <package>.<section> will be generated. You may view the
14 manual page with: nroff -man <package>.<section> | less'. A typical entry
15 in a Makefile or Makefile.am is:
16
17 DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
18 XP     = xsltproc -''-nonet -''-param man.charmap.use.subset "0"
19
20 manpage.1: manpage.xml
21         $(XP) $(DB2MAN) $<
22
23 The xsltproc binary is found in the xsltproc package. The XSL files are in
24 docbook-xsl. A description of the parameters you can use can be found in the
25 docbook-xsl-doc-* packages. Please remember that if you create the nroff
26 version in one of the debian/rules file targets (such as build), you will need
27 to include xsltproc and docbook-xsl in your Build-Depends control field.
28 Alternatively use the xmlto command/package. That will also automatically
29 pull in xsltproc and docbook-xsl.
30
31 Notes for using docbook2x: docbook2x-man does not automatically create the
32 AUTHOR(S) and COPYRIGHT sections. In this case, please add them manually as
33 <refsect1> ... </refsect1>.
34
35 To disable the automatic creation of the AUTHOR(S) and COPYRIGHT sections
36 read /usr/share/doc/docbook-xsl/doc/manpages/authors.html. This file can be
37 found in the docbook-xsl-doc-html package.
38
39 Validation can be done using: `xmllint -''-noout -''-valid manpage.xml`
40
41 General documentation about man-pages and man-page-formatting:
42 man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
43
44 -->
45
46   <!-- Fill in your name for FIRSTNAME and SURNAME. -->
47   <!ENTITY dhfirstname "Jens">
48   <!ENTITY dhsurname   "Georg">
49   <!-- dhusername could also be set to "&firstname; &surname;". -->
50   <!ENTITY dhusername  "Jens Georg">
51   <!ENTITY dhemail     "mail@jensge.org">
52   <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
53        allowed: see man(7), man(1) and
54        http://www.tldp.org/HOWTO/Man-Page/q2.html. -->
55   <!ENTITY dhsection   "5">
56   <!-- TITLE should be something like "User commands" or similar (see
57        http://www.tldp.org/HOWTO/Man-Page/q2.html). -->
58   <!ENTITY dhtitle     "Rygel User Manual">
59   <!ENTITY dhucpackage "rygel.conf">
60   <!ENTITY dhpackage   "rygel">
61 ]>
62 <refentry>
63   <refentryinfo>
64     <title>&dhtitle;</title>
65     <productname>&dhpackage;</productname>
66     <authorgroup>
67       <author>
68         <firstname>&dhfirstname;</firstname>
69         <surname>&dhsurname;</surname>
70         <contrib>Wrote this manpage.</contrib>
71         <address>
72           <email>&dhemail;</email>
73         </address>
74       </author>
75     </authorgroup>
76   </refentryinfo>
77   <refmeta>
78     <refentrytitle>&dhucpackage;</refentrytitle>
79     <manvolnum>&dhsection;</manvolnum>
80   </refmeta>
81   <refnamediv>
82     <refname>&dhucpackage;</refname>
83     <refpurpose>Rygel configuration file </refpurpose>
84   </refnamediv>
85   <refsynopsisdiv>
86     <cmdsynopsis>
87       <command>$XDG_CONFIG_DIR/rygel.conf</command>
88     </cmdsynopsis>
89     <cmdsynopsis>
90       <command>/etc/rygel.conf</command>
91     </cmdsynopsis>
92   </refsynopsisdiv>
93   <refsect1 id="description">
94     <title>DESCRIPTION</title>
95     <para><command>&dhpackage;</command> reads its configuration values from
96         the file <filename>$XDG_CONFIG_DIR/rygel.conf</filename> or a file given on command line with the <userinput>--config</userinput> option. If that file does not exist it uses the file
97         <filename>/etc/rygel.conf</filename>.</para>
98     <para>Most of the options may be overriden by commandline arguments or
99         envronment variables. See <citerefentry>
100         <refentrytitle>rygel</refentrytitle>
101         <manvolnum>1</manvolnum>
102       </citerefentry> for details on those.</para>
103   </refsect1>
104   <refsect1 id="options">
105     <title>GENERAL DIRECTIVES</title>
106     <para>Lists in the configuration files are separated by a semicolon
107         (<userinput>;</userinput>). Boolean values may be either
108         <userinput>true</userinput> or <userinput>false</userinput>.</para>
109     <variablelist>
110       <varlistentry>
111         <term>
112           <option>upnp-enabled</option>
113         </term>
114         <listitem>
115           <para>Enable/disable UPnP sharing of the media files. If set to
116             <userinput>false</userinput>, <application>&dhpackage;</application>  will
117             still offer HTTP proxy URLs for its media files but not actively
118             advertise them via UPnP.
119           </para>
120         </listitem>
121       </varlistentry>
122       <varlistentry>
123         <term>
124           <option>interface=<replaceable>INTERFACE</replaceable></option>
125         </term>
126         <listitem>
127           <para>Set the network-interface <application>&dhpackage;</application> listens on.</para>
128         </listitem>
129       </varlistentry>
130       <varlistentry>
131         <term>
132           <option>port=<replaceable>PORT</replaceable></option>
133         </term>
134         <listitem>
135           <para>Set the listen-port.</para>
136         </listitem>
137       </varlistentry>
138       <varlistentry>
139         <term>
140           <option>enable-transcoding</option>
141         </term>
142         <listitem>
143           <para>Set to <userinput>true</userinput> to enable transcoding in
144             general.
145           </para>
146         </listitem>
147       </varlistentry>
148       <varlistentry>
149         <term>
150           <option>enable-mp3-transcoder</option>
151         </term>
152         <listitem>
153           <para>Set to <userinput>true</userinput> to enable transcoding to MP3.
154           </para>
155         </listitem>
156       </varlistentry>
157       <varlistentry>
158         <term>
159           <option>enable-mp2ts-transcoder</option>
160         </term>
161         <listitem>
162           <para>
163             Set to <userinput>true</userinput> to enable transcoding to MPEG2
164             in TS container.
165           </para>
166         </listitem>
167       </varlistentry>
168       <varlistentry>
169         <term>
170           <option>enable-lpcm-transcoder</option>
171         </term>
172         <listitem>
173           <para>
174             Set to <userinput>true</userinput> to enable transcoding to Linear PCM.
175           </para>
176         </listitem>
177       </varlistentry>
178       <varlistentry>
179         <term>
180           <option>enable-wmv-transcoder</option>
181         </term>
182         <listitem>
183           <para>
184             Set to <userinput>true</userinput> to enable transcoding to WMV.
185           </para>
186         </listitem>
187       </varlistentry>
188       <varlistentry>
189         <term>
190           <option>log-level=<replaceable>DOMAIN</replaceable>:<replaceable>LEVEL</replaceable>[,<replaceable>DOMAIN</replaceable>:<replaceable>LEVEL</replaceable>,…]</option>
191         </term>
192         <listitem>
193           <para>Comma-separated list of <replaceable>DOMAIN</replaceable>:<replaceable>LEVEL</replaceable> pairs, allowing to set the log level individually for each domain, where <replaceable>DOMAIN</replaceable> is eiher <userinput>&quot;*&quot;</userinput>, &quot;<userinput>rygel</userinput>&quot; or the name of a plugin. Allowed log levels are 1=critical, 2=error, 3=warning, 4=message/info,
194             5=debug.
195           </para>
196         </listitem>
197       </varlistentry>
198       <varlistentry>
199         <term>
200           <option>plugin-path=<replaceable>PATH</replaceable></option>
201         </term>
202         <listitem>
203           <para>Set the plugin search path.</para>
204         </listitem>
205       </varlistentry>
206       <varlistentry>
207         <term>
208           <option>allow-upload</option>
209         </term>
210         <listitem>
211           <para>Allow uploading of media files via UPnP.</para>
212         </listitem>
213       </varlistentry>
214       <varlistentry>
215         <term>
216           <option>allow-deletion</option>
217         </term>
218         <listitem>
219           <para>Allow remote media file deletion via UPnP.</para>
220         </listitem>
221       </varlistentry>
222       <varlistentry>
223         <term>
224           <option>video-upload-folder</option>
225         </term>
226         <listitem>
227           <para>If <option>allow-upload</option> is <userinput>true</userinput>, use this folder to store uploaded videos. It defaults to <userinput>@VIDEOS@</userinput> which expands to the default directory for video files (usually <filename><envar>$HOME</envar>/Videos</filename>).</para>
228         </listitem>
229       </varlistentry>
230       <varlistentry>
231         <term>
232           <option>music-upload-folder</option>
233         </term>
234         <listitem>
235           <para>If <option>allow-upload</option> is <userinput>true</userinput>, use this folder to store uploaded music files. It defaults to <userinput>@MUSIC@</userinput> which expands to the default directory for music files (usually <filename><envar>$HOME</envar>/Music</filename>).</para>
236         </listitem>
237       </varlistentry>
238       <varlistentry>
239         <term>
240           <option>picture-upload-folder</option>
241         </term>
242         <listitem>
243           <para>If <option>allow-upload</option> is <userinput>true</userinput>, use this folder to store uploaded pictures. It defaults to <userinput>@PICTURES@</userinput> which expands to the default directory for picture files (usually <filename><envar>$HOME</envar>/Pictures</filename>).</para>
244         </listitem>
245       </varlistentry>
246     </variablelist>
247     <para>Sections for plugins are denoted with <option>[PluginName]</option>
248       and can contain options specific to a plugin (see below)  as well these common options:
249     </para>
250     <variablelist>
251       <varlistentry>
252         <term><option>title</option>=<replaceable>TITLE</replaceable></term>
253         <listitem>
254           <para>Title of the device implemented by this plugin. There are some
255             variables which will be replaced by <application>&dhpackage;</application>.
256             <replaceable>@REALNAME@</replaceable> will be subsituted by the
257             user&apos;s real name, <replaceable>@USERNAME@</replaceable> by the
258             user&apos;s login id and <replaceable>@HOSTNAME@</replaceable> by
259             the name of the machine <application>&dhpackage;</application> runs on.</para>
260         </listitem>
261       </varlistentry>
262       <varlistentry>
263         <term>
264           <option>enabled</option>
265         </term>
266         <listitem>
267           <para>
268             You can individually enable or disable plugins by setting this
269             to <userinput>true</userinput> or <userinput>false</userinput>.
270           </para>
271         </listitem>
272       </varlistentry>
273     </variablelist>
274   </refsect1>
275   <refsect1>
276     <title>Tracker Plugin</title>
277     <para>The tracker plugin uses the centralized database of meta information
278       from the tracker project. See the
279       <ulink url="http://www.tracker-project.org">tracker project website </ulink> for more information about tracker.
280     </para>
281     <variablelist>
282       <varlistentry>
283         <term>
284           <option>share-pictures</option>
285         </term>
286         <listitem>
287           <para>
288             Enable or disable sharing of all pictures in the Tracker database.
289           </para>
290         </listitem>
291       </varlistentry>
292       <varlistentry>
293         <term>
294           <option>share-videos</option>
295         </term>
296         <listitem>
297           <para>
298             Enable or disable sharing of all videos in the Tracker database.
299           </para>
300         </listitem>
301       </varlistentry>
302       <varlistentry>
303         <term>
304           <option>share-music</option>
305         </term>
306         <listitem>
307           <para>
308             Enable or disable sharing of all music in the Tracker database.
309           </para>
310         </listitem>
311       </varlistentry>
312     </variablelist>
313   </refsect1>
314   <refsect1>
315     <title>MediaExport Plugin</title>
316     <para>The MediaExport plugin is an alternative to the tracker-backed media export.
317       It extracts meta-data by itself and stores it in a <ulink url="http://sqlite.org">SQLite </ulink> database in
318       <filename>$XDG_CACHE_DIR/&dhpackage;/media-export.db</filename>
319       on UNIX platforms.
320       <note>
321         <para>If both plugins, Tracker as well as MediaExport are enabled,
322           MediaExport will disable itself in favour of the Tracker plugin.
323         </para>
324       </note></para>
325     <para>There are several options supported by this plugin:</para>
326     <variablelist>
327       <varlistentry>
328         <term>
329           <option>uris</option>
330         </term>
331         <listitem>
332           <para>A list of uris to expose via UPnP. May be files, folders or anything supported by gvfs. If left emtpy it defaults to export the user&apos;s music, video and picture folders as defined per XDG special user directories spec.</para>
333         </listitem>
334       </varlistentry>
335       <varlistentry>
336         <term>
337           <option>include-filter</option>
338         </term>
339         <listitem>
340           <para>A list of filename extensions. If this option is omitted or empty, every file will be analyzed for meta-data. The extensions are case-insensitive.</para>
341         </listitem>
342       </varlistentry>
343       <varlistentry>
344         <term>
345           <option>extract-metadata</option>
346         </term>
347         <listitem>
348           <para>Set to <userinput>false</userinput> if you do not care about duration or any other meta-data like artist. This speeds up the initial crawl of the media a lot. Use it to quickly share some files via UPnP. Make sure to define an <option>include-filter</option>, otherwise you will end up with a lot of files exposed which the client cannot display anyway.</para>
349         </listitem>
350       </varlistentry>
351       <varlistentry>
352         <term>
353           <option>monitor-changes</option>
354         </term>
355         <listitem>
356           <para>Set to <userinput>false</userinput> if you don&apos;t want to have new files picked up automatically by &dhpackage;.</para>
357         </listitem>
358       </varlistentry>
359     </variablelist>
360   </refsect1>
361   <refsect1>
362     <title>Playbin plugin</title>
363     <para>The Playbin plugin implements a media renderer (Digtal Media Renderer, DMR in DLNA terms). This plugin was known as GstRenderer.</para>
364     <para>This plugin has no special options.</para>
365   </refsect1>
366   <refsect1>
367     <title>ZDFMediathek</title>
368     <para>The  <ulink url="http://www.zdf.de/ZDFmediathek">ZDF Mediathek</ulink> is an online archive of broadcasts from the second german television. This plugin can be used to subscribes to the RSS feeds of this service and expose the broadcasts via UPnP.</para>
369     <variablelist>
370       <varlistentry>
371         <term>
372           <option>rss</option>
373         </term>
374         <listitem>
375           <para>A list of broadcast ids. How to get the broadcast ids from the web site is described in the file <filename>README.Mediathek</filename> (in german only).</para>
376         </listitem>
377       </varlistentry>
378       <varlistentry>
379         <term>
380           <option>update-interval</option>
381         </term>
382         <listitem>
383           <para>Time in seconds after which the plugin checks for new content. The default interval is 1800 seconds (30 minutes), the minimum interval 10 minutes.</para>
384         </listitem>
385       </varlistentry>
386       <varlistentry>
387         <term>
388           <option>video-format</option>
389         </term>
390         <listitem>
391           <para>The mediathek usually offers the videos in two formats, WMV and H.264. Possible values here are wmv and mp4. The default video format is wmv.</para>
392           <note>
393             <para>Proxying of general RTSP in <application>&dhpackage;</application> as used by the H.264 streams is currently not working very well. Please enable mp4 only if your renderer can handle RTSP by itself.</para>
394           </note>
395         </listitem>
396       </varlistentry>
397     </variablelist>
398   </refsect1>
399   <refsect1>
400     <title>GstLaunch Plugin</title>
401     <para>The GstLaunch plugin allows to expose GStreamer pipelines using the same syntax as the gst-launch utilty. You can configure several items in this plugins.</para>
402     <variablelist>
403       <varlistentry>
404         <term>
405           <option>launch-items</option>
406         </term>
407         <listitem>
408           <para>A list of of identifiers for the pipelines to be exposed. </para>
409         </listitem>
410       </varlistentry>
411       <varlistentry>
412         <term>
413           <option>identifier-title</option>
414         </term>
415         <listitem>
416           <para>Title of the device represented by this pipeline. Identifier
417               is the identifier as set in launch-items</para>
418         </listitem>
419       </varlistentry>
420       <varlistentry>
421         <term>
422           <option>identifier-mime</option>
423         </term>
424         <listitem>
425           <para>Mime-type of the pipeline.</para>
426         </listitem>
427       </varlistentry>
428       <varlistentry>
429         <term>
430           <option>identifier-launch</option>
431         </term>
432         <listitem>
433           <para>Definition of the pipeline in gst-launch syntax. For some examples on writing pipelines  see <citerefentry>
434               <refentrytitle>gst-launch</refentrytitle>
435               <manvolnum>1</manvolnum>
436             </citerefentry>.</para>
437         </listitem>
438       </varlistentry>
439     </variablelist>
440     <para>An example configuration is available in the distributed configuration file <filename>/etc/&dhucpackage;</filename>.</para>
441   </refsect1>
442   <refsect1>
443     <title>External</title>
444     <para>The External plugin is an consumer of the <ulink url="http://live.gnome.org/Rygel/MediaServer2Spec">MediaServer2 DBus interface specification</ulink>. This allows external programs to share their data via UPnP by implementing this DBus specification. The plugin picks up any implementation of this interface on the session bus and exposes the presented media via UPnP. Known implementors of this spec are  <ulink url="http://live.gnome.org/DVBDaemon">gnome-dvb-daemon</ulink> and <ulink url="http://live.gnome.org/Grilo">Grilo </ulink> via the grilo-rygel project.</para>
445     <para>This plugin has no additional options.</para>
446   </refsect1>
447   <refsect1>
448     <title>MPRIS</title>
449     <para>The MPRIS plugin is a consumer of the  <ulink url="http://www.mpris.org">MPRIS2 DBus interface specification</ulink>. The implementation conforms to version 2.0 of the standard.
450       </para>
451     <para><application>&dhpackage;</application> exposes media players that implement the provider side of this DBus specification as DLNA Digital Media Renderers (DMR) similar to the Playbin plugin. This means that you can easily turn your media player into a DMR by implementing this DBus specification.</para>
452     <para>Players that implement this spec and are known to work with <application>&dhpackage;</application> are  <ulink url="http://banshee.fm">Banshee</ulink> and  <ulink url="http://www.rhythmbox.org">Rhythmbox</ulink>.
453       </para>
454     <para>The configuration of this plugin is special. Plugin configuration is not done on the plugin but rather per peer that is found providing the MPRIS2 interface. See the following example to set the title for Banshee on MPRIS:</para>
455     <para><programlisting>[org.mpris.MediaPlayer2.banshee]
456 title=@REALNAME@&apos;s Banshee on @HOSTNAME@</programlisting></para>
457     <para>This plugin has no additional options.</para>
458   </refsect1>
459   <refsect1 id="see_also">
460     <title>SEE ALSO</title>
461 <!-- In alpabetical order. -->    <para><citerefentry>
462         <refentrytitle>rygel</refentrytitle>
463         <manvolnum>1</manvolnum>
464       </citerefentry>, <filename>README.Mediathek</filename>, <citerefentry>
465         <refentrytitle>gst-launch</refentrytitle>
466         <manvolnum>1</manvolnum>
467       </citerefentry></para>
468   </refsect1>
469 </refentry>