Introduction to MPD and nmpc:
Why MPD + NMIS used?
In Linux, there are a lot of good music players, such as Amarok, simple, such as BMP, and I prefer PC (requires MPD installation). Simplicity is why I chose it. Every time you start the system, automatically open the daemon musicpd (MPD for short). This is like a potential karaoke device. With the terminal, you can choose to listen to your favorite songs without any interface, you do not have to open a single desktop for a music player.
The combination of MPC and conky allows you to make boot music. The combination of MPC and remind uses music to remind you of certain things. The daemon MPD is like a powerful karaoke device. You can easily select your favorite singers and albums, and it is not inferior to the GUI music player.
We can also use conky to display the MPD on the desktop, the song name, the singer name, And the playing process. design our own music player.
MPD
MPD (music player Daemon): It is very different from most common players. It is a C/S-structured music player. As a daemon program running on the background, MPD uses a variety of client software to control playing actions and playlists. It occupies a small amount of resources and I liked this method from the very beginning.
This is something that can play music in the background. It saves a lot of resources and has nothing to do with X. It can be played in the same way on the terminal. In addition, you can use a variety of DMPS for front-end control.
MPD has many advantages. It has simple configuration but rich functions. For example, you can select an audio device, a mixer device, and ID3 encoding. The biggest benefit is the separation of playing music and the management front-end. This allows you to use the most simple MPD client of the PC to control playing, or use a powerful MPD client such as GPC and qmpdclient to manage music.
MPC
A command line MPD client.
Software Installation
emerge mpd
MPD Configuration:
The MPD system-level configuration file is/etc/MPD. conf, and the user-level configuration file is ~. Mpdconf
cp /etc/mpd.conf .mpdconfnano -w .mpdconf
Edit MPD. conf:
The MPD settings are as follows:
1. the MPD music directory and process directory need to store some databases and other files;
2. Execution user of MPD;
3. MPD output and mixed speaker selection;
4. MPD ID3 encoding.
Music_directory # The music library directory
Playlist_directory # the location of the MPD configuration file
Db_file
LOG_FILE
Error_file
Pid_file
State_file
User ## other users who can control the MPD except the root user
Start the MPD daemon
/etc/init.d/mpd start
Start
rc-update add mpd default
emerge media-sound/mpc
Common Parameters of the MPC:
Add a song to the playlist by using the MPC add command.
Run the following command to add all the songs to the current playlist :!
You can list all the songs in the MPC listall interface.
View the current playlist
View the information of the currently played song by the MPC.
Play the program on the PC play.
Nmpause pause
Nmstop stop
Run the following command on the PC next.
The first one played by the PC Prev
Nmrepeat on enable Replay
Lmrandom on enables random playback
18th of the first playbacks In the MPC play 18 playlist
You can search by file name for the MPC search filename.
You can search by artist for the nmsearch artist.
You can search for the title of the machine learning platform by Song name.
Volume Adjustment:
Nmvolume + 20
Nmvolume-20
For more options, refer to the help documentation.
This article from the "blog: Gu zhuwang", please be sure to keep this source http://aceking.blog.51cto.com/3681913/1553150
Playing music with the MPC + MPD in Gentoo