You are not logged in.

#1 2021-07-22 14:39:43

peanutstick
Member
Registered: 2021-07-04
Posts: 39

[Solved]No music is showed in ncmpcpp.

I set up mpd and ncmpcpp but my musics is not showed.
It's the first time I install this.

~/.mpd/mpd.conf

 bind_to_address "127.0.0.1"
 #bind_to_address "~/.mpd/socket"
 music_directory "~/Music"
 playlist_directory "~/.mpd/playlists"   
 db_file      "~/.mpd/mpd.db"  
 log_file      "~/.mpd/mpd.log"  
 pid_file      "~/.mpd/mpd.pid"  
 state_file     "~/.mpd/mpdstate"  
 audio_output {  

     type  "pulse"  
     name  "pulse audio"
     device         "pulse" 
     mixer_type      "hardware" 
 }  

audio_output {
    type                    "fifo"
    name                    "my_fifo"
    path                    "/tmp/mpd.fifo"
    format                  "44100:16:2"
}

~/.ncmpcpp/config

##
# Files
 mpd_music_dir = "~/Music"  
 lyrics_directory  = ~/.ncmpcpp/lyrics
 ncmpcpp_directory  = ~/.ncmpcpp
 mpd_host = "localhost"
 mpd_port = "6600"  
 mpd_connection_timeout = "5"  
 mpd_crossfade_time = "5"  

 # Playlist
 playlist_disable_highlight_delay = "0"  
 playlist_display_mode = "columns"  
 playlist_show_remaining_time = "yes"

 browser_display_mode = "columns"  
 autocenter_mode = "yes"  
 fancy_scrolling = "yes"  
 follow_now_playing_lyrics = "yes"  
 display_screens_numbers_on_start = "yes"  
 ignore_leading_the = "yes"  
 lyrics_database = "1"  
 song_columns_list_format = "(10)[blue]{l} (30)[green]{a} (30)[magenta]{b} (50)[yellow]{t}"  
 colors_enabled = "yes"  
 main_window_color = "white"  
 main_window_highlight_color =  "blue"
 header_window_color = "cyan"  
 volume_color = "red"  
 progressbar_color = "cyan"  
 statusbar_color = "white"  
 active_column_color = "cyan"  
 active_window_border = "blue"

alternative_header_first_line_format = "$0$aqqu$/a {$7%a - $9}{$5%t$9}|{$8%f$9} $0$atqq$/a$9"
alternative_header_second_line_format = "{{$6%b$9}{ [$6%y$9]}}|{%D}"
song_list_format = "{$3%n │ $9}{$7%a - $9}{$5%t$9}|{$8%f$9}$R{$6 │ %b$9}{$3 │ %l$9}"
user_interface = "alternative"
#user_interface =                    "classic"
default_place_to_search_in = "database"


# visualizer
visualizer_fifo_path = "/tmp/mpd.fifo"
visualizer_output_name = "my_fifo"
visualizer_sync_interval = "12"
#visualizer_type = "wave" (spectrum/wave)
visualizer_type = "spectrum" (spectrum/wave)
visualizer_in_stereo = "yes"
visualizer_look = "+|"


## Navigation ##
cyclic_scrolling = "yes"
header_text_scrolling = "yes"
jump_to_now_playing_song_at_start = "yes"
lines_scrolled = "2"

## Other ##
system_encoding = "utf-8"
regular_expressions = "extended"



## Selected tracks ##
selected_item_prefix = "* "
discard_colors_if_item_is_selected = "no"

## Seeking ##
incremental_seeking = "yes"
seek_time = "1"

## Visivility ##
header_visibility = "yes"
statusbar_visibility = "yes"
titles_visibility = "yes"


progressbar_look =  "=>-"
progressbar_boldness = "yes"
progressbar_elapsed_color = "white"

now_playing_prefix = "> "
song_status_format = " $2%a $4⟫$3⟫ $8%t $4⟫$3⟫ $5%b "
autocenter_mode = "yes"
centered_cursor = "yes"

# Misc
display_bitrate = "yes"
# enable_window_title = "no"
follow_now_playing_lyrics = "yes"
ignore_leading_the = "yes"
empty_tag_marker = ""

mpd --no-daemon --verbose

config_file: loading file /home/peanutstick/.mpd/mpd.conf
Jul 22 16:34 : libsamplerate: libsamplerate converter 'Fastest Sinc Interpolator'
Jul 22 16:34 : vorbis: Xiph.Org libVorbis 1.3.7
Jul 22 16:34 : opus: libopus 1.3.1
Jul 22 16:34 : sndfile: libsndfile-1.0.31
Jul 22 16:34 : hybrid_dsd: The Hybrid DSD decoder is disabled because it was not explicitly enabled
Jul 22 16:34 : exception: Decoder plugin 'wildmidi' is unavailable: configuration file does not exist: /etc/timidity/timidity.cfg
Jul 22 16:34 : simple_db: reading DB
Jul 22 16:34 : exception: Input plugin 'tidal' is not configured: No Tidal application token configured
Jul 22 16:34 : exception: Input plugin 'qobuz' is not configured: No Qobuz app_id configured
Jul 22 16:34 : curl: version 7.78.0
Jul 22 16:34 : curl: with OpenSSL/1.1.1k

I have 3 exceptions but I don't think that's the problem.
With ncmpcpp I'm connected to mpd, I also pressed 'u' to update the database.

Last edited by peanutstick (2021-07-22 18:30:46)

Offline

#2 2021-07-22 15:19:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,431

Re: [Solved]No music is showed in ncmpcpp.

mpc stats

Offline

#3 2021-07-22 16:35:23

christophergray
Member
Registered: 2021-05-28
Posts: 12

Re: [Solved]No music is showed in ncmpcpp.

If seth's suggestion shows that you have songs, then it occurs to me that since ncmpcpp starts up with an empty playlist (screen 1) by default,  you may have installed everything correctly and then got confused by the interface.  Did you try pressing '2' to go to the file browser screen?

Offline

#4 2021-07-22 17:21:00

peanutstick
Member
Registered: 2021-07-04
Posts: 39

Re: [Solved]No music is showed in ncmpcpp.

mpc stats

Artists:      0
Albums:       0
Songs:        0

Play Time:    0 days, 0:00:00
Uptime:       0 days, 0:00:01
DB Updated:   Wed Jul 21 09:57:42 2021
DB Play Time: 0 days, 0:00:00

If I press 2 on ncmpcpp:

For browsing local  filesystem connection to MPD via UNIX Socket is required

In ~/Music I have my musics, in FLAC and MP3 format.

Offline

#5 2021-07-22 18:32:01

peanutstick
Member
Registered: 2021-07-04
Posts: 39

Re: [Solved]No music is showed in ncmpcpp.

My conf file was not correct, thank for the help

Offline

#6 2021-07-22 18:41:29

christophergray
Member
Registered: 2021-05-28
Posts: 12

Re: [Solved]No music is showed in ncmpcpp.

mpc update

If that works (i.e. mpc stats then shows songs,) then mpd is okay, and it is ncmpcpp that is misconfigured.

Offline

Board footer

Powered by FluxBB