美文网首页
MPD用户手册

MPD用户手册

作者: 苍蝇的梦 | 来源:发表于2022-09-14 11:18 被阅读0次

2019-10-12 遇到的一点小问题

最近项目需要使用MPD做为播放器,这里记录一下MPD用户手册的链接。

[root@wannoo ~]# pacman -Sy mpd
[root@wannoo ~]# systemctl status mpd
[root@wannoo ~]# systemctl status mpd.socket

Music Player Daemon 在ArchLinux的wiki

MPD用户手册

2019-10-21

MPC是MPD的命令行控制端

[root@wannoo ~]# pacman -Sy mpc
[root@alarmpi ~]# mpc help  
Usage: mpc [options] <command> [<arguments>]
mpc version: 0.32

Options:
  -v, --verbose                   Give verbose output 
            #输出详细信息
  -q, --quiet                     Suppress status message
  -q, --no-status                 synonym for --quiet
            #阻止在某些命令完成时打印当前歌曲状态。
  -h, --host=<host>               Connect to server on <host>
  -P, --password=<password>       Connect to server using password <password>
  -p, --port=<port>               Connect to server port <port>
  -f, --format=<format>           Print status with format <format>
  -w, --wait                      Wait for operation to finish (e.g. database update)
            #等待操作完成(如数据库更新)
  -r, --range=[<start>]:[<end>]   Operate on a range (e.g. when loading a playlist)
            #在一定范围内操作(例如,在加载播放列表时)。 START是该范围的第一个索引,END是该范围之后的第一个索引(即不包括在内)。 可以省略START和END,从而使范围到结束。 索引从零开始。

Commands:
  mpc                                                   Display status
  mpc add <uri>                                         Add a song to the queue
  mpc crop                                              Remove all but the currently playing song
  mpc current                                           Show the currently playing song
  mpc del <position>                                    Remove a song from the queue
  mpc play [<position>]                                 Start playing at <position>
            #播放
  mpc next                                              Play the next song in the queue
  mpc prev                                              Play the previous song in the queue
  mpc pause                                             Pauses the currently playing song
            #暂停
  mpc pause-if-playing                                  Pauses the currently playing song; exits with failure if not playing
  mpc toggle                                            Toggles Play/Pause, plays if stopped
  mpc cdprev                                            Compact disk player-like previous command
  mpc stop                                              Stop playback
  mpc seek [+-][HH:MM:SS]|<0-100>%                      Seeks to the specified position
  mpc seekthrough [+-][HH:MM:SS]                        Seeks by an amount of time within the song and playlist
  mpc clear                                             Clear the queue
  mpc outputs                                           Show the current outputs
  mpc enable [only] <output # or name> [...]            Enable output(s)
  mpc disable [only] <output # or name> [...]           Disable output(s)
  mpc toggleoutput <output # or name> [...]             Toggle output(s)
  mpc outputset <output # or name> <name>=<value>       Set output attributes
  mpc queued                                            Show the next queued song
  mpc shuffle                                           Shuffle the queue
  mpc move <from> <to>                                  Move song in queue
  mpc playlist [<playlist>]                             Print <playlist>
  mpc listall [<file>]                                  List all songs in the music dir
  mpc ls [<directory>]                                  List the contents of <directory>
  mpc lsplaylists                                       List currently available playlists
  mpc load <file>                                       Load <file> into the queue
  mpc insert <uri>                                      Insert a song to the queue after the current track
  mpc prio <prio> <position/range> ...                  Change song priorities in the queue
  mpc save <file>                                       Save a queue as <file>
  mpc rm <file>                                         Remove a playlist
  mpc volume [+-]<num>                                  Set volume to <num> or adjusts by [+-]<num>
  mpc repeat <on|off>                                   Toggle repeat mode, or specify state
  mpc random <on|off>                                   Toggle random mode, or specify state
  mpc single <on|off>                                   Toggle single mode, or specify state
  mpc consume <on|off>                                  Toggle consume mode, or specify state
  mpc search <type> <query>                             Search for a song
  mpc searchadd <type> <query>                          Search songs and add them to the queue
  mpc find <type> <query>                               Find a song (exact match)
  mpc findadd <type> <query>                            Find songs and add them to the queue
  mpc searchplay <pattern>                              Find and play a song in the queue
  mpc list <type> [<type> <query>]                      Show all tags of <type>
  mpc crossfade [<seconds>]                             Set and display crossfade settings
  mpc clearerror                                        Clear the current error
  mpc mixrampdb [<dB>]                                  Set and display mixrampdb settings
  mpc mixrampdelay [<seconds>]                          Set and display mixrampdelay settings
  mpc update [<path>]                                   Scan music directory for updates
  mpc rescan [<path>]                                   Rescan music directory (including unchanged files)
  mpc sticker <uri> <get|set|list|delete|find> [args..] Sticker management
  mpc stats                                             Display statistics about MPD
  mpc version                                           Report version of MPD
  mpc idle [events]                                     Idle until an event occurs
  mpc idleloop [events]                                 Continuously idle until an event occurs
  mpc replaygain [off|track|album]                      Set or display the replay gain mode
  mpc channels                                          List the channels that other clients have subscribed to.
  mpc sendmessage <channel> <message>                   Send a message to the specified channel.
  mpc waitmessage <channel>                             Wait for at least one message on the specified channel.
  mpc subscribe <channel>                               Subscribe to the specified channel and continuously receive messages.
  mpc listneighbors                                     List neighbors.
  mpc mount [<uri> <storage>]                           List mounts or add a new mount.
  mpc unmount <uri>                                     Remove a mount.

See man 1 mpc for more information about mpc commands and options

相关文章

网友评论

      本文标题:MPD用户手册

      本文链接:https://www.haomeiwen.com/subject/wqwtvctx.html