mpris: Allow to disable the whole module
[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>enable-aac-transcoder</option>
191         </term>
192         <listitem>
193           <para>
194             Set to <userinput>true</userinput> to enable transcoding to AAC.
195           </para>
196         </listitem>
197       </varlistentry>
198       <varlistentry>
199         <term>
200           <option>enable-avc-transcoder</option>
201         </term>
202         <listitem>
203           <para>
204             Set to <userinput>true</userinput> to enable transcoding to AVC.
205           </para>
206         </listitem>
207       </varlistentry>
208       <varlistentry>
209         <term>
210           <option>log-level=<replaceable>DOMAIN</replaceable>:<replaceable>LEVEL</replaceable>[,<replaceable>DOMAIN</replaceable>:<replaceable>LEVEL</replaceable>,…]</option>
211         </term>
212         <listitem>
213           <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,
214             5=debug.
215           </para>
216         </listitem>
217       </varlistentry>
218       <varlistentry>
219         <term>
220           <option>plugin-path=<replaceable>PATH</replaceable></option>
221         </term>
222         <listitem>
223           <para>Set the plugin search path.</para>
224         </listitem>
225       </varlistentry>
226       <varlistentry>
227         <term>
228           <option>allow-upload</option>
229         </term>
230         <listitem>
231           <para>Allow uploading of media files via UPnP.</para>
232         </listitem>
233       </varlistentry>
234       <varlistentry>
235         <term>
236           <option>allow-deletion</option>
237         </term>
238         <listitem>
239           <para>Allow remote media file deletion via UPnP.</para>
240         </listitem>
241       </varlistentry>
242       <varlistentry>
243         <term>
244           <option>video-upload-folder</option>
245         </term>
246         <listitem>
247           <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>
248         </listitem>
249       </varlistentry>
250       <varlistentry>
251         <term>
252           <option>music-upload-folder</option>
253         </term>
254         <listitem>
255           <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>
256         </listitem>
257       </varlistentry>
258       <varlistentry>
259         <term>
260           <option>picture-upload-folder</option>
261         </term>
262         <listitem>
263           <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>
264         </listitem>
265       </varlistentry>
266       <varlistentry>
267         <term>
268           <option>force-downgrade-for</option>
269         </term>
270         <listitem>
271           <para>Semicolon-separated list of device user-agents (or parts thereof) which need a forced downgrade to <userinput>MediaServer:1</userinput> and/or <userinput>ContentDirectory:1</userinput>.</para>
272           <para><warning>
273               <para>Only use this parameter if you know what your&apos;re doing or are being told to do so; overriding the default value might cause incompatibilites. If you find that adding your device here enables its usage with Rygel, please  <ulink url="https://bugzilla.gnome.org/enter_bug.cgi?product=Rygel&amp;component=IOP">file an IOP bug</ulink> so we can include it into the default configuration.</para>
274             </warning></para>
275         </listitem>
276       </varlistentry>
277     </variablelist>
278     <para>Sections for plugins are denoted with <option>[PluginName]</option>
279       and can contain options specific to a plugin (see below)  as well these common options:
280     </para>
281     <variablelist>
282       <varlistentry>
283         <term><option>title</option>=<replaceable>TITLE</replaceable></term>
284         <listitem>
285           <para>Title of the device implemented by this plugin. There are some
286             variables which will be replaced by <application>&dhpackage;</application>.
287             <replaceable>@REALNAME@</replaceable> will be subsituted by the
288             user&apos;s real name, <replaceable>@USERNAME@</replaceable> by the
289             user&apos;s login id and <replaceable>@HOSTNAME@</replaceable> by
290             the name of the machine <application>&dhpackage;</application> runs on.</para>
291         </listitem>
292       </varlistentry>
293       <varlistentry>
294         <term>
295           <option>enabled</option>
296         </term>
297         <listitem>
298           <para>
299             You can individually enable or disable plugins by setting this
300             to <userinput>true</userinput> or <userinput>false</userinput>.
301           </para>
302         </listitem>
303       </varlistentry>
304     </variablelist>
305   </refsect1>
306   <refsect1>
307     <title>Tracker Plugin</title>
308     <para>The tracker plugin uses the centralized database of meta information
309       from the tracker project. See the
310       <ulink url="http://projects.gnome.org/tracker/">tracker project website </ulink> for more information about tracker.
311     </para>
312     <variablelist>
313       <varlistentry>
314         <term>
315           <option>share-pictures</option>
316         </term>
317         <listitem>
318           <para>
319             Enable or disable sharing of all pictures in the Tracker database.
320           </para>
321         </listitem>
322       </varlistentry>
323       <varlistentry>
324         <term>
325           <option>share-videos</option>
326         </term>
327         <listitem>
328           <para>
329             Enable or disable sharing of all videos in the Tracker database.
330           </para>
331         </listitem>
332       </varlistentry>
333       <varlistentry>
334         <term>
335           <option>share-music</option>
336         </term>
337         <listitem>
338           <para>
339             Enable or disable sharing of all music in the Tracker database.
340           </para>
341         </listitem>
342       </varlistentry>
343     </variablelist>
344   </refsect1>
345   <refsect1>
346     <title>MediaExport Plugin</title>
347     <para>The MediaExport plugin is an alternative to the tracker-backed media export.
348       It extracts meta-data by itself and stores it in a <ulink url="http://sqlite.org">SQLite </ulink> database in
349       <filename>$XDG_CACHE_DIR/&dhpackage;/media-export.db</filename>
350       on UNIX platforms.
351       <note>
352         <para>If both plugins, Tracker as well as MediaExport are enabled,
353           MediaExport will disable itself in favour of the Tracker plugin.
354         </para>
355       </note></para>
356     <para>There are several options supported by this plugin:</para>
357     <variablelist>
358       <varlistentry>
359         <term>
360           <option>uris</option>
361         </term>
362         <listitem>
363           <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. These default folders can be referenced by <userinput>@MUSIC@</userinput>, <userinput>@PICTURES@</userinput> and <userinput>@VIDEOS@</userinput>. Locations can be entered as either fully escaped URIS or normal paths.</para>
364           <para><note>
365               <para>If you enter a normal path that contains whitespace there is no need to escape them with either a backslash or putting the string in quotes.</para>
366             </note></para>
367           <example>
368             <title>Possible values for <userinput>uris</userinput></title>
369             <para/>
370             <para><userinput>uris=@MUSIC@;/home/user/My Pictures;file:///home/user/My%20Videos</userinput></para>
371           </example>
372         </listitem>
373       </varlistentry>
374       <varlistentry>
375         <term>
376           <option>include-filter</option>
377         </term>
378         <listitem>
379           <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>
380         </listitem>
381       </varlistentry>
382       <varlistentry>
383         <term>
384           <option>extract-metadata</option>
385         </term>
386         <listitem>
387           <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>
388         </listitem>
389       </varlistentry>
390       <varlistentry>
391         <term>
392           <option>monitor-changes</option>
393         </term>
394         <listitem>
395           <para>Set to <userinput>false</userinput> if you don&apos;t want to have new files picked up automatically by &dhpackage;.</para>
396         </listitem>
397       </varlistentry>
398     </variablelist>
399   </refsect1>
400   <refsect1>
401     <title>Playbin plugin</title>
402     <para>The Playbin plugin implements a media renderer (Digtal Media Renderer, DMR in DLNA terms). This plugin was known as GstRenderer.</para>
403     <para>This plugin has no special options.</para>
404   </refsect1>
405   <refsect1>
406     <title>ZDFMediathek</title>
407     <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>
408     <variablelist>
409       <varlistentry>
410         <term>
411           <option>rss</option>
412         </term>
413         <listitem>
414           <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>
415         </listitem>
416       </varlistentry>
417       <varlistentry>
418         <term>
419           <option>update-interval</option>
420         </term>
421         <listitem>
422           <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>
423         </listitem>
424       </varlistentry>
425       <varlistentry>
426         <term>
427           <option>video-format</option>
428         </term>
429         <listitem>
430           <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>
431           <note>
432             <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>
433           </note>
434         </listitem>
435       </varlistentry>
436     </variablelist>
437   </refsect1>
438   <refsect1>
439     <title>GstLaunch Plugin</title>
440     <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>
441     <variablelist>
442       <varlistentry>
443         <term>
444           <option>launch-items</option>
445         </term>
446         <listitem>
447           <para>A list of of identifiers for the pipelines to be exposed. </para>
448         </listitem>
449       </varlistentry>
450       <varlistentry>
451         <term>
452           <option>identifier-title</option>
453         </term>
454         <listitem>
455           <para>Title of the device represented by this pipeline. Identifier
456               is the identifier as set in launch-items</para>
457         </listitem>
458       </varlistentry>
459       <varlistentry>
460         <term>
461           <option>identifier-mime</option>
462         </term>
463         <listitem>
464           <para>Mime-type of the pipeline.</para>
465         </listitem>
466       </varlistentry>
467       <varlistentry>
468         <term>
469           <option>identifier-launch</option>
470         </term>
471         <listitem>
472           <para>Definition of the pipeline in gst-launch syntax. For some examples on writing pipelines  see <citerefentry>
473               <refentrytitle>gst-launch</refentrytitle>
474               <manvolnum>1</manvolnum>
475             </citerefentry>.</para>
476         </listitem>
477       </varlistentry>
478     </variablelist>
479     <para>An example configuration is available in the distributed configuration file <filename>/etc/&dhucpackage;</filename>.</para>
480   </refsect1>
481   <refsect1>
482     <title>External</title>
483     <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>, <ulink url="http://www.rhythmbox.org">Rhythmbox</ulink> and <ulink url="http://live.gnome.org/Grilo">Grilo </ulink> via the grilo-ms2 project.</para>
484     <para>You can disable the whole functionality by setting <userinput>enabled=false</userinput> in the <userinput>[External]</userinput> section of the configuration file.</para>
485     <para>Individual peers may be enabled or disabled by creating sections corresponding to the D-Bus names of the peer:</para>
486     <programlisting>[org.gnome.UPnP.MediaServer2.Rhythmbox]
487 enabled=false</programlisting>
488     <para>This plugin has no additional options.</para>
489   </refsect1>
490   <refsect1>
491     <title>MPRIS</title>
492     <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.
493       </para>
494     <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>
495     <para>Players that implement this spec and are known to work with <application>&dhpackage;</application> are  <ulink url="http://banshee.fm">Banshee</ulink>, <ulink url="http://www.rhythmbox.org">Rhythmbox</ulink> and <ulink url="http://live.gnome.org/Totem">Totem</ulink>
496       </para>
497     <para>You can disable the whole functionality by setting <userinput>enabled=false</userinput> in the <userinput>[MRPIS]</userinput> section of the configuration file.</para>
498     <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>
499     <para><programlisting>[org.mpris.MediaPlayer2.banshee]
500 title=@REALNAME@&apos;s Banshee on @HOSTNAME@</programlisting></para>
501     <para>This plugin has no additional options.</para>
502   </refsect1>
503   <refsect1 id="see_also">
504     <title>SEE ALSO</title>
505 <!-- In alpabetical order. -->    <para><citerefentry>
506         <refentrytitle>rygel</refentrytitle>
507         <manvolnum>1</manvolnum>
508       </citerefentry>, <filename>README.Mediathek</filename>, <citerefentry>
509         <refentrytitle>gst-launch</refentrytitle>
510         <manvolnum>1</manvolnum>
511       </citerefentry></para>
512   </refsect1>
513 </refentry>