summaryrefslogtreecommitdiff
path: root/doc/man/rygel.conf.xml
blob: b306529bc1a5060112ea07a9ba8db443f3316bf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
<?xml version='1.0' encoding='UTF-8'?>
<!-- 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" [

<!--

`xsltproc -''-nonet \
          -''-param man.charmap.use.subset "0" \
          -''-param make.year.ranges "1" \
          -''-param make.single.year.ranges "1" \
          /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl \
          manpage.xml'

A manual page <package>.<section> will be generated. You may view the
manual page with: nroff -man <package>.<section> | less'. A typical entry
in a Makefile or Makefile.am is:

DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
XP     = xsltproc -''-nonet -''-param man.charmap.use.subset "0"

manpage.1: manpage.xml
        $(XP) $(DB2MAN) $<

The xsltproc binary is found in the xsltproc package. The XSL files are in
docbook-xsl. A description of the parameters you can use can be found in the
docbook-xsl-doc-* packages. Please remember that if you create the nroff
version in one of the debian/rules file targets (such as build), you will need
to include xsltproc and docbook-xsl in your Build-Depends control field.
Alternatively use the xmlto command/package. That will also automatically
pull in xsltproc and docbook-xsl.

Notes for using docbook2x: docbook2x-man does not automatically create the
AUTHOR(S) and COPYRIGHT sections. In this case, please add them manually as
<refsect1> ... </refsect1>.

To disable the automatic creation of the AUTHOR(S) and COPYRIGHT sections
read /usr/share/doc/docbook-xsl/doc/manpages/authors.html. This file can be
found in the docbook-xsl-doc-html package.

Validation can be done using: `xmllint -''-noout -''-valid manpage.xml`

General documentation about man-pages and man-page-formatting:
man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/

-->

  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
  <!ENTITY dhfirstname "Jens">
  <!ENTITY dhsurname   "Georg">
  <!-- dhusername could also be set to "&firstname; &surname;". -->
  <!ENTITY dhusername  "Jens Georg">
  <!ENTITY dhemail     "mail@jensge.org">
  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
       allowed: see man(7), man(1) and
       http://www.tldp.org/HOWTO/Man-Page/q2.html. -->
  <!ENTITY dhsection   "5">
  <!-- TITLE should be something like "User commands" or similar (see
       http://www.tldp.org/HOWTO/Man-Page/q2.html). -->
  <!ENTITY dhtitle     "Rygel User Manual">
  <!ENTITY dhucpackage "rygel.conf">
  <!ENTITY dhpackage   "rygel">
]>
<refentry>
  <refentryinfo>
    <title>&dhtitle;</title>
    <productname>&dhpackage;</productname>
    <authorgroup>
      <author>
        <firstname>&dhfirstname;</firstname>
        <surname>&dhsurname;</surname>
        <contrib>Wrote this manpage.</contrib>
        <address>
          <email>&dhemail;</email>
        </address>
      </author>
    </authorgroup>
  </refentryinfo>
  <refmeta>
    <refentrytitle>&dhucpackage;</refentrytitle>
    <manvolnum>&dhsection;</manvolnum>
  </refmeta>
  <refnamediv>
    <refname>&dhucpackage;</refname>
    <refpurpose>Rygel configuration file </refpurpose>
  </refnamediv>
  <refsynopsisdiv>
    <cmdsynopsis>
      <command>$XDG_CONFIG_DIR/rygel.conf</command>
    </cmdsynopsis>
    <cmdsynopsis>
      <command>/etc/rygel.conf</command>
    </cmdsynopsis>
  </refsynopsisdiv>
  <refsect1 id="description">
    <title>DESCRIPTION</title>
    <para><command>&dhpackage;</command> reads its configuration values from
        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
        <filename>/etc/rygel.conf</filename>.</para>
    <para>Most of the options may be overriden by commandline arguments or
        envronment variables. See <citerefentry>
        <refentrytitle>rygel</refentrytitle>
        <manvolnum>1</manvolnum>
      </citerefentry> for details on those.</para>
  </refsect1>
  <refsect1 id="options">
    <title>GENERAL DIRECTIVES</title>
    <para>Lists in the configuration files are separated by a semicolon
        (<userinput>;</userinput>). Boolean values may be either
        <userinput>true</userinput> or <userinput>false</userinput>.</para>
    <variablelist>
      <varlistentry>
        <term>
          <option>upnp-enabled</option>
        </term>
        <listitem>
          <para>Enable/disable UPnP sharing of the media files. If set to
            <userinput>false</userinput>, <application>&dhpackage;</application>  will
            still offer HTTP proxy URLs for its media files but not actively
            advertise them via UPnP.
          </para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>interface=<replaceable>INTERFACE</replaceable></option>
        </term>
        <listitem>
          <para>Set the network-interface <application>&dhpackage;</application> listens on.</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>port=<replaceable>PORT</replaceable></option>
        </term>
        <listitem>
          <para>Set the listen-port.</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>enable-transcoding</option>
        </term>
        <listitem>
          <para>Set to <userinput>true</userinput> to enable transcoding in
            general.
          </para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>enable-mp3-transcoder</option>
        </term>
        <listitem>
          <para>Set to <userinput>true</userinput> to enable transcoding to MP3.
          </para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>enable-mp2ts-transcoder</option>
        </term>
        <listitem>
          <para>
            Set to <userinput>true</userinput> to enable transcoding to MPEG2
            in TS container.
          </para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>enable-lpcm-transcoder</option>
        </term>
        <listitem>
          <para>
            Set to <userinput>true</userinput> to enable transcoding to Linear PCM.
          </para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>enable-wmv-transcoder</option>
        </term>
        <listitem>
          <para>
            Set to <userinput>true</userinput> to enable transcoding to WMV.
          </para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>enable-aac-transcoder</option>
        </term>
        <listitem>
          <para>
            Set to <userinput>true</userinput> to enable transcoding to AAC.
          </para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>enable-avc-transcoder</option>
        </term>
        <listitem>
          <para>
            Set to <userinput>true</userinput> to enable transcoding to AVC.
          </para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>log-level=<replaceable>DOMAIN</replaceable>:<replaceable>LEVEL</replaceable>[,<replaceable>DOMAIN</replaceable>:<replaceable>LEVEL</replaceable>,…]</option>
        </term>
        <listitem>
          <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,
            5=debug.
          </para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>plugin-path=<replaceable>PATH</replaceable></option>
        </term>
        <listitem>
          <para>Set the plugin search path.</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>allow-upload</option>
        </term>
        <listitem>
          <para>Allow uploading of media files via UPnP.</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>allow-deletion</option>
        </term>
        <listitem>
          <para>Allow remote media file deletion via UPnP.</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>video-upload-folder</option>
        </term>
        <listitem>
          <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>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>music-upload-folder</option>
        </term>
        <listitem>
          <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>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>picture-upload-folder</option>
        </term>
        <listitem>
          <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>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>force-downgrade-for</option>
        </term>
        <listitem>
          <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>
          <para><warning>
              <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>
            </warning></para>
        </listitem>
      </varlistentry>
    </variablelist>
    <para>Sections for plugins are denoted with <option>[PluginName]</option>
      and can contain options specific to a plugin (see below)  as well these common options:
    </para>
    <variablelist>
      <varlistentry>
        <term><option>title</option>=<replaceable>TITLE</replaceable></term>
        <listitem>
          <para>Title of the device implemented by this plugin. There are some
            variables which will be replaced by <application>&dhpackage;</application>.
            <replaceable>@REALNAME@</replaceable> will be subsituted by the
            user&apos;s real name, <replaceable>@USERNAME@</replaceable> by the
            user&apos;s login id and <replaceable>@HOSTNAME@</replaceable> by
            the name of the machine <application>&dhpackage;</application> runs on.</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>enabled</option>
        </term>
        <listitem>
          <para>
            You can individually enable or disable plugins by setting this
            to <userinput>true</userinput> or <userinput>false</userinput>.
          </para>
        </listitem>
      </varlistentry>
    </variablelist>
  </refsect1>
  <refsect1>
    <title>Tracker Plugin</title>
    <para>The tracker plugin uses the centralized database of meta information
      from the tracker project. See the
      <ulink url="http://projects.gnome.org/tracker/">tracker project website </ulink> for more information about tracker.
    </para>
    <variablelist>
      <varlistentry>
        <term>
          <option>share-pictures</option>
        </term>
        <listitem>
          <para>
            Enable or disable sharing of all pictures in the Tracker database.
          </para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>share-videos</option>
        </term>
        <listitem>
          <para>
            Enable or disable sharing of all videos in the Tracker database.
          </para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>share-music</option>
        </term>
        <listitem>
          <para>
            Enable or disable sharing of all music in the Tracker database.
          </para>
        </listitem>
      </varlistentry>
    </variablelist>
  </refsect1>
  <refsect1>
    <title>MediaExport Plugin</title>
    <para>The MediaExport plugin is an alternative to the tracker-backed media export.
      It extracts meta-data by itself and stores it in a <ulink url="http://sqlite.org">SQLite </ulink> database in
      <filename>$XDG_CACHE_DIR/&dhpackage;/media-export.db</filename>
      on UNIX platforms.
      <note>
        <para>If both plugins, Tracker as well as MediaExport are enabled,
          MediaExport will disable itself in favour of the Tracker plugin.
        </para>
      </note></para>
    <para>There are several options supported by this plugin:</para>
    <variablelist>
      <varlistentry>
        <term>
          <option>uris</option>
        </term>
        <listitem>
          <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>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>include-filter</option>
        </term>
        <listitem>
          <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>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>extract-metadata</option>
        </term>
        <listitem>
          <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>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>monitor-changes</option>
        </term>
        <listitem>
          <para>Set to <userinput>false</userinput> if you don&apos;t want to have new files picked up automatically by &dhpackage;.</para>
        </listitem>
      </varlistentry>
    </variablelist>
  </refsect1>
  <refsect1>
    <title>Playbin plugin</title>
    <para>The Playbin plugin implements a media renderer (Digtal Media Renderer, DMR in DLNA terms). This plugin was known as GstRenderer.</para>
    <para>This plugin has no special options.</para>
  </refsect1>
  <refsect1>
    <title>ZDFMediathek</title>
    <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>
    <variablelist>
      <varlistentry>
        <term>
          <option>rss</option>
        </term>
        <listitem>
          <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>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>update-interval</option>
        </term>
        <listitem>
          <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>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>video-format</option>
        </term>
        <listitem>
          <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>
          <note>
            <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>
          </note>
        </listitem>
      </varlistentry>
    </variablelist>
  </refsect1>
  <refsect1>
    <title>GstLaunch Plugin</title>
    <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>
    <variablelist>
      <varlistentry>
        <term>
          <option>launch-items</option>
        </term>
        <listitem>
          <para>A list of of identifiers for the pipelines to be exposed. </para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>identifier-title</option>
        </term>
        <listitem>
          <para>Title of the device represented by this pipeline. Identifier
              is the identifier as set in launch-items</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>identifier-mime</option>
        </term>
        <listitem>
          <para>Mime-type of the pipeline.</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>identifier-launch</option>
        </term>
        <listitem>
          <para>Definition of the pipeline in gst-launch syntax. For some examples on writing pipelines  see <citerefentry>
              <refentrytitle>gst-launch</refentrytitle>
              <manvolnum>1</manvolnum>
            </citerefentry>.</para>
        </listitem>
      </varlistentry>
    </variablelist>
    <para>An example configuration is available in the distributed configuration file <filename>/etc/&dhucpackage;</filename>.</para>
  </refsect1>
  <refsect1>
    <title>External</title>
    <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>
    <para>This plugin has no additional options.</para>
  </refsect1>
  <refsect1>
    <title>MPRIS</title>
    <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.
      </para>
    <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>
    <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>
      </para>
    <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>
    <para><programlisting>[org.mpris.MediaPlayer2.banshee]
title=@REALNAME@&apos;s Banshee on @HOSTNAME@</programlisting></para>
    <para>This plugin has no additional options.</para>
  </refsect1>
  <refsect1 id="see_also">
    <title>SEE ALSO</title>
<!-- In alpabetical order. -->    <para><citerefentry>
        <refentrytitle>rygel</refentrytitle>
        <manvolnum>1</manvolnum>
      </citerefentry>, <filename>README.Mediathek</filename>, <citerefentry>
        <refentrytitle>gst-launch</refentrytitle>
        <manvolnum>1</manvolnum>
      </citerefentry></para>
  </refsect1>
</refentry>