~ubuntu-branches/ubuntu/trusty/mpd/trusty

« back to all changes in this revision

Viewing changes to doc/user.xml

  • Committer: Bazaar Package Importer
  • Author(s): Angel Abad
  • Date: 2011-02-02 12:26:30 UTC
  • mfrom: (1.5.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20110202122630-bdyx8w4k94doz4fs
Tags: 0.16.1-1ubuntu1
* Merge from debian unstable. Remaining changes:
  - debian/control:
    + Don't build-depend on libmikmod2-dev (Debian bug #510675).
    + Move avahi-daemon from Suggests field to Recommends field.
  - debian/mpd.init.d:
    + Read mpd user from mpd.conf.
  - debian/control, debian/rules:
    + Add libmp3lame-dev to the build dependencies and enable lame.

Show diffs side-by-side

added added

removed removed

Lines of Context:
300
300
                <varname>format</varname>
301
301
              </entry>
302
302
              <entry>
303
 
                Always open the audio output with the specified audio
304
 
                format (samplerate:bits:channels), regardless of the
305
 
                format of the input file.  This is optional for most
306
 
                plugins.
 
303
                <para>
 
304
                  Always open the audio output with the specified audio
 
305
                  format (samplerate:bits:channels), regardless of the
 
306
                  format of the input file.  This is optional for most
 
307
                  plugins.
 
308
                </para>
 
309
                <para>
 
310
                  Any of the three attributes may be an asterisk to
 
311
                  specify that this attribute should not be enforced,
 
312
                  example: <parameter>48000:16:*</parameter>.
 
313
                  <parameter>*:*:*</parameter> is equal to not having
 
314
                  a <varname>format</varname> specification.
 
315
                </para>
 
316
                <para>
 
317
                  The following values are valid for
 
318
                  <varname>bits</varname>: <varname>8</varname>
 
319
                  (signed 8 bit integer samples),
 
320
                  <varname>16</varname>, <varname>24</varname> (signed
 
321
                  24 bit integer samples padded to 32 bit),
 
322
                  <varname>24_3</varname> (signed 24 bit integer
 
323
                  samples, no padding, 3 bytes per sample),
 
324
                  <varname>32</varname> (signed 32 bit integer
 
325
                  samples).
 
326
                </para>
307
327
              </entry>
308
328
            </row>
309
329
            <row>
319
339
            </row>
320
340
            <row>
321
341
              <entry>
322
 
                <varname>mixer_enabled</varname>
 
342
                <varname>always_on</varname>
 
343
                  <parameter>yes|no</parameter>
 
344
              </entry>
 
345
              <entry>
 
346
                If set to "yes", then MPD attempts to keep this audio
 
347
                output always open.  This may be useful for streaming
 
348
                servers, when you don't want to disconnect all
 
349
                listeners even when playback is accidently stopped.
 
350
              </entry>
 
351
            </row>
 
352
            <row>
 
353
              <entry>
 
354
                <varname>mixer_type</varname>
 
355
                <parameter>hardware|software|none</parameter>
 
356
              </entry>
 
357
              <entry>
 
358
                Specifies which mixer should be used for this audio
 
359
                output: the hardware mixer (available for ALSA, OSS
 
360
                and PulseAudio), the software mixer or no mixer
 
361
                ("none").  By default, the hardware mixer is used for
 
362
                devices which support it, and none for the others.
 
363
              </entry>
 
364
            </row>
 
365
            <row>
 
366
              <entry>
 
367
                <varname>replay_gain_handler</varname>
 
368
                <parameter>software|mixer|none</parameter>
 
369
              </entry>
 
370
              <entry>
 
371
                Specifies how replay gain is applied.  The default is
 
372
                "software", which uses an internal software volume
 
373
                control.  "mixer" uses the configured (hardware) mixer
 
374
                control.  "none" disables replay gain on this audio
 
375
                output.
 
376
              </entry>
 
377
            </row>
 
378
          </tbody>
 
379
        </tgroup>
 
380
      </informaltable>
 
381
    </section>
 
382
 
 
383
    <section>
 
384
      <title>Configuring filters</title>
 
385
 
 
386
      <para>
 
387
        Filters are plugins which modify an audio stream.
 
388
      </para>
 
389
 
 
390
      <para>
 
391
        To configure a filter, add a <varname>filter</varname> block
 
392
        to <filename>mpd.conf</filename>:
 
393
      </para>
 
394
 
 
395
      <programlisting>filter {
 
396
    plugin "volume"
 
397
    name "software volume"
 
398
}
 
399
      </programlisting>
 
400
 
 
401
      <para>
 
402
        The following table lists the <varname>filter</varname>
 
403
        options valid for all plugins:
 
404
      </para>
 
405
 
 
406
      <informaltable>
 
407
        <tgroup cols="2">
 
408
          <thead>
 
409
            <row>
 
410
              <entry>
 
411
                Name
 
412
              </entry>
 
413
              <entry>
 
414
                Description
 
415
              </entry>
 
416
            </row>
 
417
          </thead>
 
418
          <tbody>
 
419
            <row>
 
420
              <entry>
 
421
                <varname>plugin</varname>
 
422
              </entry>
 
423
              <entry>
 
424
                The name of the plugin.
 
425
              </entry>
 
426
            </row>
 
427
            <row>
 
428
              <entry>
 
429
                <varname>name</varname>
 
430
              </entry>
 
431
              <entry>
 
432
                The name of the filter.
 
433
              </entry>
 
434
            </row>
 
435
          </tbody>
 
436
        </tgroup>
 
437
      </informaltable>
 
438
    </section>
 
439
 
 
440
    <section>
 
441
      <title>Configuring playlist plugins</title>
 
442
 
 
443
      <para>
 
444
        Playlist plugins are used to load remote playlists.  This is
 
445
        not related to MPD's playlist directory.
 
446
      </para>
 
447
 
 
448
      <para>
 
449
        To configure a filter, add a
 
450
        <varname>playlist_plugin</varname> block to
 
451
        <filename>mpd.conf</filename>:
 
452
      </para>
 
453
 
 
454
      <programlisting>playlist_plugin {
 
455
    name "m3u"
 
456
    enabled "true"
 
457
}
 
458
      </programlisting>
 
459
 
 
460
      <para>
 
461
        The following table lists the
 
462
        <varname>playlist_plugin</varname> options valid for all
 
463
        plugins:
 
464
      </para>
 
465
 
 
466
      <informaltable>
 
467
        <tgroup cols="2">
 
468
          <thead>
 
469
            <row>
 
470
              <entry>
 
471
                Name
 
472
              </entry>
 
473
              <entry>
 
474
                Description
 
475
              </entry>
 
476
            </row>
 
477
          </thead>
 
478
          <tbody>
 
479
            <row>
 
480
              <entry>
 
481
                <varname>name</varname>
 
482
              </entry>
 
483
              <entry>
 
484
                The name of the plugin.
 
485
              </entry>
 
486
            </row>
 
487
            <row>
 
488
              <entry>
 
489
                <varname>enabled</varname>
323
490
                <parameter>yes|no</parameter>
324
491
              </entry>
325
492
              <entry>
326
 
                Specifies whether the hardware mixer of this audio
327
 
                output should be used.  By default, all hardware
328
 
                mixers are enabled if available.
 
493
                Allows you to disable a input plugin without
 
494
                recompiling.  By default, all plugins are enabled.
329
495
              </entry>
330
496
            </row>
331
497
          </tbody>
335
501
  </chapter>
336
502
 
337
503
  <chapter>
 
504
    <title>Using MPD</title>
 
505
 
 
506
    <section>
 
507
      <title>The client</title>
 
508
 
 
509
      <para>
 
510
        After you have installed, configured and started MPD, you
 
511
        choose a client to control the playback.
 
512
      </para>
 
513
 
 
514
      <para>
 
515
        The most basic client is <filename>mpc</filename>, which
 
516
        provides a command line interface.  It is useful in shell
 
517
        scripts.  Many people bind specific <filename>mpc</filename>
 
518
        commands to hotkeys.
 
519
      </para>
 
520
 
 
521
      <para>
 
522
        The <ulink url="http://mpd.wikia.com/wiki/Clients">MPD
 
523
        Wiki</ulink> contains an extensive list of clients to choose
 
524
        from.
 
525
      </para>
 
526
    </section>
 
527
 
 
528
    <section>
 
529
      <title>The music directory and the database</title>
 
530
 
 
531
      <para>
 
532
        The "music directory" is where you store your music files.
 
533
        MPD stores all relevant meta information about all songs in
 
534
        its "database".  Whenever you add, modify or remove songs in
 
535
        the music directory, you have to update the database, for
 
536
        example with <filename>mpc</filename>:
 
537
      </para>
 
538
 
 
539
      <programlisting>mpc update</programlisting>
 
540
 
 
541
      <para>
 
542
        Depending on the size of your music collection and the speed
 
543
        of the storage, this can take a while.
 
544
      </para>
 
545
 
 
546
      <para>
 
547
        To exclude a file from the update, create a file called
 
548
        <filename>.mpdignore</filename> in its parent directory.  Each
 
549
        line of that file may contain a list of shell wildcards.
 
550
      </para>
 
551
    </section>
 
552
 
 
553
    <section>
 
554
      <title>The queue</title>
 
555
 
 
556
      <para>
 
557
        The queue (sometimes called "current playlist") is a list of
 
558
        songs to be played by MPD.  To play a song, add it to the
 
559
        queue and start playback.  Most clients offer an interface to
 
560
        edit the queue.
 
561
      </para>
 
562
    </section>
 
563
  </chapter>
 
564
 
 
565
  <chapter>
338
566
    <title>Plugin reference</title>
339
567
 
340
568
    <section>
387
615
      </section>
388
616
 
389
617
      <section>
390
 
        <title><varname>lastfm</varname></title>
391
 
 
392
 
        <para>
393
 
          Plays last.fm radio.  This plugin is experimental, and will
394
 
          be superseded by a better solution in MPD 0.16.
395
 
        </para>
396
 
      </section>
397
 
 
398
 
      <section>
399
618
        <title><varname>mms</varname></title>
400
619
 
401
620
        <para>
405
624
    </section>
406
625
 
407
626
    <section>
 
627
      <title>Decoder plugins</title>
 
628
 
 
629
      <section>
 
630
        <title><varname>mikmod</varname></title>
 
631
 
 
632
        <para>
 
633
          Module player based on MikMod.
 
634
        </para>
 
635
 
 
636
        <informaltable>
 
637
          <tgroup cols="2">
 
638
            <thead>
 
639
              <row>
 
640
                <entry>Setting</entry>
 
641
                <entry>Description</entry>
 
642
              </row>
 
643
            </thead>
 
644
            <tbody>
 
645
              <row>
 
646
                <entry>
 
647
                  <varname>sample_rate</varname>
 
648
                </entry>
 
649
                <entry>
 
650
                  Sets the sample rate generated by
 
651
                  <filename>libmikmod</filename>.  Default is 44100.
 
652
                </entry>
 
653
              </row>
 
654
            </tbody>
 
655
          </tgroup>
 
656
        </informaltable>
 
657
      </section>
 
658
    </section>
 
659
 
 
660
    <section>
408
661
      <title>Output plugins</title>
409
662
 
410
663
      <section>
536
789
      </section>
537
790
 
538
791
      <section>
 
792
        <title><varname>ffado</varname></title>
 
793
 
 
794
        <para>
 
795
          The <varname>ffado</varname> plugin connects to FireWire
 
796
          audio devices via <filename>libffado</filename>.
 
797
        </para>
 
798
 
 
799
        <para>
 
800
          Warning: this plugin was not tested successfully.  I just
 
801
          couldn't keep libffado2 from crashing.  Use at your own
 
802
          risk.
 
803
        </para>
 
804
 
 
805
        <informaltable>
 
806
          <tgroup cols="2">
 
807
            <thead>
 
808
              <row>
 
809
                <entry>Setting</entry>
 
810
                <entry>Description</entry>
 
811
              </row>
 
812
            </thead>
 
813
            <tbody>
 
814
              <row>
 
815
                <entry>
 
816
                  <varname>device</varname>
 
817
                  <parameter>NAME</parameter>
 
818
                </entry>
 
819
                <entry>
 
820
                  Sets the device which should be used, e.g. "hw:0".
 
821
                </entry>
 
822
              </row>
 
823
            </tbody>
 
824
          </tgroup>
 
825
        </informaltable>
 
826
      </section>
 
827
 
 
828
      <section>
539
829
        <title><varname>jack</varname></title>
540
830
 
541
831
        <para>
542
832
          The <varname>jack</varname> plugin connects to a JACK
543
833
          server.
544
834
        </para>
 
835
 
 
836
        <informaltable>
 
837
          <tgroup cols="2">
 
838
            <thead>
 
839
              <row>
 
840
                <entry>Setting</entry>
 
841
                <entry>Description</entry>
 
842
              </row>
 
843
            </thead>
 
844
            <tbody>
 
845
              <row>
 
846
                <entry>
 
847
                  <varname>client_name</varname>
 
848
                  <parameter>NAME</parameter>
 
849
                </entry>
 
850
                <entry>
 
851
                  The name of the JACK client.  Defaults to "Music
 
852
                  Player Daemon".
 
853
                </entry>
 
854
              </row>
 
855
              <row>
 
856
                <entry>
 
857
                  <varname>server_name</varname>
 
858
                  <parameter>NAME</parameter>
 
859
                </entry>
 
860
                <entry>
 
861
                  Optional name of the JACK server.
 
862
                </entry>
 
863
              </row>
 
864
              <row>
 
865
                <entry>
 
866
                  <varname>autostart</varname>
 
867
                  <parameter>yes|no</parameter>
 
868
                </entry>
 
869
                <entry>
 
870
                  If set to <parameter>yes</parameter>, then
 
871
                  <filename>libjack</filename> will automatically
 
872
                  launch the JACK daemon.  Disabled by default.
 
873
                </entry>
 
874
              </row>
 
875
              <row>
 
876
                <entry>
 
877
                  <varname>source_ports</varname>
 
878
                  <parameter>A,B</parameter>
 
879
                </entry>
 
880
                <entry>
 
881
                  The names of the JACK source ports to be created.
 
882
                  By default, the ports "left" and "right" are
 
883
                  created.  To use more ports, you have to tweak this
 
884
                  option.
 
885
                </entry>
 
886
              </row>
 
887
              <row>
 
888
                <entry>
 
889
                  <varname>destination_ports</varname>
 
890
                  <parameter>A,B</parameter>
 
891
                </entry>
 
892
                <entry>
 
893
                  The names of the JACK destination ports to connect to.
 
894
                </entry>
 
895
              </row>
 
896
              <row>
 
897
                <entry>
 
898
                  <varname>ringbuffer_size</varname>
 
899
                  <parameter>NBYTES</parameter>
 
900
                </entry>
 
901
                <entry>
 
902
                  Sets the size of the ring buffer for each channel.
 
903
                  Do not configure this value unless you know what
 
904
                  you're doing.
 
905
                </entry>
 
906
              </row>
 
907
            </tbody>
 
908
          </tgroup>
 
909
        </informaltable>
545
910
      </section>
546
911
 
547
912
      <section>
586
951
                  <parameter>P</parameter>
587
952
                </entry>
588
953
                <entry>
589
 
                  Binds the HTTP server to the specified port (on all
590
 
                  interfaces).
 
954
                  Binds the HTTP server to the specified port.
 
955
                </entry>
 
956
              </row>
 
957
              <row>
 
958
                <entry>
 
959
                  <varname>bind_to_address</varname>
 
960
                  <parameter>ADDR</parameter>
 
961
                </entry>
 
962
                <entry>
 
963
                  Binds the HTTP server to the specified address (IPv4 or
 
964
                  IPv6). Multiple addresses in parallel are not supported.
591
965
                </entry>
592
966
              </row>
593
967
              <row>
620
994
                  second.
621
995
                </entry>
622
996
              </row>
 
997
              <row>
 
998
                <entry>
 
999
                  <varname>max_clients</varname>
 
1000
                  <parameter>MC</parameter>
 
1001
                </entry>
 
1002
                <entry>
 
1003
                  Sets a limit, number of concurrent clients. When set
 
1004
                  to 0 no limit will apply.
 
1005
                </entry>
 
1006
              </row>
623
1007
            </tbody>
624
1008
          </tgroup>
625
1009
        </informaltable>
694
1078
      </section>
695
1079
 
696
1080
      <section>
 
1081
        <title><varname>openal</varname></title>
 
1082
 
 
1083
        <para>
 
1084
          The "OpenAL" plugin uses <filename>libopenal</filename>.
 
1085
          It is supported on many platforms.
 
1086
        </para>
 
1087
 
 
1088
        <informaltable>
 
1089
          <tgroup cols="2">
 
1090
            <thead>
 
1091
              <row>
 
1092
                <entry>Setting</entry>
 
1093
                <entry>Description</entry>
 
1094
              </row>
 
1095
            </thead>
 
1096
            <tbody>
 
1097
              <row>
 
1098
                <entry>
 
1099
                  <varname>device</varname>
 
1100
                  <parameter>NAME</parameter>
 
1101
                </entry>
 
1102
                <entry>
 
1103
                  Sets the device which should be used.  This can be
 
1104
                  any valid OpenAL device name. If not specified, then
 
1105
                  <filename>libopenal</filename> will choose a default device.
 
1106
                </entry>
 
1107
              </row>
 
1108
            </tbody>
 
1109
          </tgroup>
 
1110
        </informaltable>
 
1111
      </section>
 
1112
 
 
1113
      <section>
697
1114
        <title><varname>osx</varname></title>
698
1115
 
699
1116
        <para>
776
1193
      </section>
777
1194
 
778
1195
      <section>
 
1196
        <title><varname>recorder</varname></title>
 
1197
 
 
1198
        <para>
 
1199
          The <varname>recorder</varname> plugin writes the audio
 
1200
          played by MPD to a file.  This may be useful for recording
 
1201
          radio streams.
 
1202
        </para>
 
1203
 
 
1204
        <para>
 
1205
          You must configure either <varname>quality</varname> or
 
1206
          <varname>bitrate</varname>.
 
1207
        </para>
 
1208
 
 
1209
        <informaltable>
 
1210
          <tgroup cols="2">
 
1211
            <thead>
 
1212
              <row>
 
1213
                <entry>Setting</entry>
 
1214
                <entry>Description</entry>
 
1215
              </row>
 
1216
            </thead>
 
1217
            <tbody>
 
1218
              <row>
 
1219
                <entry>
 
1220
                  <varname>path</varname>
 
1221
                  <parameter>P</parameter>
 
1222
                </entry>
 
1223
                <entry>
 
1224
                  Write to this file.
 
1225
                </entry>
 
1226
              </row>
 
1227
              <row>
 
1228
                <entry>
 
1229
                  <varname>encoder</varname>
 
1230
                  <parameter>NAME</parameter>
 
1231
                </entry>
 
1232
                <entry>
 
1233
                  Chooses an encoder plugin,
 
1234
                  e.g. <parameter>vorbis</parameter>.
 
1235
                </entry>
 
1236
              </row>
 
1237
              <row>
 
1238
                <entry>
 
1239
                  <varname>quality</varname>
 
1240
                  <parameter>Q</parameter>
 
1241
                </entry>
 
1242
                <entry>
 
1243
                  Configures the encoder quality (for VBR) in the
 
1244
                  range -1 .. 10.
 
1245
                </entry>
 
1246
              </row>
 
1247
              <row>
 
1248
                <entry>
 
1249
                  <varname>bitrate</varname>
 
1250
                  <parameter>BR</parameter>
 
1251
                </entry>
 
1252
                <entry>
 
1253
                  Sets a constant encoder bit rate, in kilobit per
 
1254
                  second.
 
1255
                </entry>
 
1256
              </row>
 
1257
            </tbody>
 
1258
          </tgroup>
 
1259
        </informaltable>
 
1260
      </section>
 
1261
 
 
1262
      <section>
779
1263
        <title><varname>shout</varname></title>
780
1264
 
781
1265
        <para>
939
1423
        </informaltable>
940
1424
      </section>
941
1425
    </section>
 
1426
 
 
1427
    <section>
 
1428
      <title>Playlist plugins</title>
 
1429
 
 
1430
      <section>
 
1431
        <title><varname>lastfm</varname></title>
 
1432
 
 
1433
        <para>
 
1434
          Plays last.fm radio.
 
1435
        </para>
 
1436
 
 
1437
        <informaltable>
 
1438
          <tgroup cols="2">
 
1439
            <thead>
 
1440
              <row>
 
1441
                <entry>Setting</entry>
 
1442
                <entry>Description</entry>
 
1443
              </row>
 
1444
            </thead>
 
1445
            <tbody>
 
1446
              <row>
 
1447
                <entry>
 
1448
                  <varname>user</varname>
 
1449
                  <parameter>USERNAME</parameter>
 
1450
                </entry>
 
1451
                <entry>
 
1452
                  The last.fm user name.
 
1453
                </entry>
 
1454
              </row>
 
1455
              <row>
 
1456
                <entry>
 
1457
                  <varname>password</varname>
 
1458
                  <parameter>PWD</parameter>
 
1459
                </entry>
 
1460
                <entry>
 
1461
                  The last.fm password.
 
1462
                </entry>
 
1463
              </row>
 
1464
            </tbody>
 
1465
          </tgroup>
 
1466
        </informaltable>
 
1467
      </section>
 
1468
 
 
1469
      <section>
 
1470
        <title><varname>m3u</varname></title>
 
1471
 
 
1472
        <para>
 
1473
          Reads <filename>.m3u</filename> playlist files.
 
1474
        </para>
 
1475
      </section>
 
1476
 
 
1477
      <section>
 
1478
        <title><varname>extm3u</varname></title>
 
1479
 
 
1480
        <para>
 
1481
          Reads extended <filename>.m3u</filename> playlist files.
 
1482
        </para>
 
1483
      </section>
 
1484
 
 
1485
      <section>
 
1486
        <title><varname>pls</varname></title>
 
1487
 
 
1488
        <para>
 
1489
          Reads <filename>.pls</filename> playlist files.
 
1490
        </para>
 
1491
      </section>
 
1492
 
 
1493
      <section>
 
1494
        <title><varname>xspf</varname></title>
 
1495
 
 
1496
        <para>
 
1497
          Reads <ulink url="http://www.xspf.org/">XSPF</ulink>
 
1498
          playlist files.
 
1499
        </para>
 
1500
      </section>
 
1501
    </section>
942
1502
  </chapter>
943
1503
</book>