Mopidy Discourse

No visualization on ncmpcpp

successfully installed mopidy for local audio and spotify. But one thing that annoys me most is no visualization at all in ncmpcpp using stock default ncmpcpp config.
Besides, no error log available to check. Everything seems to work ok.

any hint?

here below mopidy config

# For further information about options in this file see:
#   https://docs.mopidy.com/
#
# The initial commented out values reflect the defaults as of:
#   Mopidy 3.0.1
#   Mopidy-File 3.0.1
#   Mopidy-HTTP 3.0.1
#   Mopidy-M3U 3.0.1
#   Mopidy-SoftwareMixer 3.0.1
#   Mopidy-Stream 3.0.1
#
# Available options and defaults might have changed since then,
# run `mopidy config` to see the current effective config and
# `mopidy --version` to check the current version.

[core]
#cache_dir = $XDG_CACHE_DIR/mopidy
#config_dir = $XDG_CONFIG_DIR/mopidy
#data_dir = $XDG_DATA_DIR/mopidy
#max_tracklist_length = 10000
#restore_state = false

[logging]
#verbosity = 0
#format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n  %(message)s
#color = true
#config_file =

[audio]
#mixer = software
#mixer_volume = 
#output = autoaudiosink
#buffer_time = 
#output = tee name=t t. ! queue ! autoaudiosink t. ! queue ! udpsink port=5555
output = tee name=t t. ! queue ! autoaudiosink t. ! queue ! audioresample ! audioconvert ! audio/x-raw,rate=44100,channels=2,format=S16LE ! $
#output = tee name=t t. ! queue ! autoaudiosink t. ! queue ! audioresample ! audioconvert ! audio/x-raw,rate=44100,channels=2,format=S16LE ! wavenc ! filesink location=/tmp/mpd.fifo

[proxy]
#scheme = 
#hostname = 
#port = 
#username = 
#password = 

[file]
enabled = true
media_dirs = ~/Música
#excluded_file_extensions = 
#  .directory
#  .html
#  .jpeg
#  .jpg
#  .log
#  .nfo
#  .pdf
#  .png
#  .txt
#  .zip
#show_dotfiles = false
follow_symlinks = true
#metadata_timeout = 1000

[http]
#enabled = true
#hostname = 127.0.0.1
#port = 6680
#zeroconf = Mopidy HTTP server on $hostname
#allowed_origins = 
#csrf_protection = true
#default_app = mopidy

[m3u]
#enabled = true
#base_dir = $XDG_MUSIC_DIR
#default_encoding = latin-1
#default_extension = .m3u8
#playlists_dir =

[softwaremixer]
#enabled = true

[stream]
#enabled = true
#protocols = 
#  http
#  https
#  mms
#  rtmp
#  rtmps
#  rtsp
#metadata_blacklist = 
#timeout = 5000

#[spotify-tunigo]
#enabled = true

[spotify]
enabled = true
username = **************************@gmail.com
password = *************************
client_id = ***************************
client_secret = ************************

[mpd]
enabled = true
hostname = 127.0.0.1
port = 6600
password = 
max_connections = 20
connection_timeout = 60
zeroconf = Mopidy MPD server on $hostname
command_blacklist = 
  listall
  listallinfo
default_playlist_scheme = m3u

[local]
scan_follow_symlinks = true
media_dir = ~/Música


```

here mopidy deps output:

mopidy deps      
Executable: /usr/bin/mopidy
Platform: Linux-5.12.7-arch1-1-x86_64-with-glibc2.33
Python: CPython 3.9.5 from /usr/lib/python3.9
Mopidy: 3.1.1 from /usr/lib/python3.9/site-packages
  Pykka: 3.0.1 from /usr/lib/python3.9/site-packages
  requests: 2.25.1 from /usr/lib/python3.9/site-packages
    chardet: 4.0.0 from /usr/lib/python3.9/site-packages
    idna: 3.1 from /usr/lib/python3.9/site-packages
    urllib3: 1.26.4 from /usr/lib/python3.9/site-packages
  setuptools: 56.2.0 from /usr/lib/python3.9/site-packages
  tornado: 6.1 from /usr/lib/python3.9/site-packages
Mopidy-Spotify: 4.1.1 from /usr/lib/python3.9/site-packages
  Mopidy: 3.1.1 from /usr/lib/python3.9/site-packages
  Pykka: 3.0.1 from /usr/lib/python3.9/site-packages
  pyspotify: 2.1.3 from /usr/lib/python3.9/site-packages
    cffi: 1.14.5 from /usr/lib/python3.9/site-packages
      pycparser: 2.20 from /usr/lib/python3.9/site-packages
    setuptools: 56.2.0 from /usr/lib/python3.9/site-packages
  requests: 2.25.1 from /usr/lib/python3.9/site-packages
    chardet: 4.0.0 from /usr/lib/python3.9/site-packages
    idna: 3.1 from /usr/lib/python3.9/site-packages
    urllib3: 1.26.4 from /usr/lib/python3.9/site-packages
  setuptools: 56.2.0 from /usr/lib/python3.9/site-packages
Mopidy-YouTube: 3.3 from /usr/lib/python3.9/site-packages
  beautifulsoup4: 4.9.3 from /usr/lib/python3.9/site-packages
    soupsieve: 2.2.1 from /usr/lib/python3.9/site-packages
  cachetools: 4.2.2 from /usr/lib/python3.9/site-packages
  Mopidy: 3.1.1 from /usr/lib/python3.9/site-packages
  Pykka: 3.0.1 from /usr/lib/python3.9/site-packages
  requests: 2.25.1 from /usr/lib/python3.9/site-packages
    chardet: 4.0.0 from /usr/lib/python3.9/site-packages
    idna: 3.1 from /usr/lib/python3.9/site-packages
    urllib3: 1.26.4 from /usr/lib/python3.9/site-packages
  setuptools: 56.2.0 from /usr/lib/python3.9/site-packages
  youtube-dl: 2021.5.16 from /usr/lib/python3.9/site-packages
  ytmusicapi: 0.17.3 from /usr/lib/python3.9/site-packages
    requests: 2.25.1 from /usr/lib/python3.9/site-packages
      chardet: 4.0.0 from /usr/lib/python3.9/site-packages
      idna: 3.1 from /usr/lib/python3.9/site-packages
      urllib3: 1.26.4 from /usr/lib/python3.9/site-packages
Mopidy-TuneIn: 1.1.0 from /usr/lib/python3.9/site-packages
  Mopidy: 3.1.1 from /usr/lib/python3.9/site-packages
  Pykka: 3.0.1 from /usr/lib/python3.9/site-packages
  requests: 2.25.1 from /usr/lib/python3.9/site-packages
    chardet: 4.0.0 from /usr/lib/python3.9/site-packages
    idna: 3.1 from /usr/lib/python3.9/site-packages
    urllib3: 1.26.4 from /usr/lib/python3.9/site-packages
  setuptools: 56.2.0 from /usr/lib/python3.9/site-packages
Mopidy-MPD: 3.1.0 from /usr/lib/python3.9/site-packages
  Mopidy: 3.1.1 from /usr/lib/python3.9/site-packages
  Pykka: 3.0.1 from /usr/lib/python3.9/site-packages
  setuptools: 56.2.0 from /usr/lib/python3.9/site-packages
Mopidy-Local: 3.2.1 from /usr/lib/python3.9/site-packages
  Mopidy: 3.1.1 from /usr/lib/python3.9/site-packages
  Pykka: 3.0.1 from /usr/lib/python3.9/site-packages
  setuptools: 56.2.0 from /usr/lib/python3.9/site-packages
  uritools: 3.0.2 from /usr/lib/python3.9/site-packages
GStreamer: 1.18.4.0 from /usr/lib/python3.9/site-packages/gi
  Detailed information: 
    Python wrapper: python-gi 3.40.1
    Relevant elements:
      Found:
        uridecodebin
        souphttpsrc
        appsrc
        alsasink
        osssink
        oss4sink
        pulsesink
        id3demux
        id3v2mux
        lamemp3enc
        mpegaudioparse
        mpg123audiodec
        vorbisdec
        vorbisenc
        vorbisparse
        oggdemux
        oggmux
        oggparse
        flacdec
        flacparse
        shout2send
      Not found:
        flump3dec
        mad

How do you envision the visualizer might work with the config you have?

Did you search? Did you see ANNOUNCEMENT: ncmpcpp 0.9 with improved Mopidy support released ?

Hi @kingosticks

ncmpcpp version is 0.9.2
fixed error on config file (pasted an older version) now is the real one.

notice some different audio config i have tried to no avail. Still no visualization.

any help would be much appreciated…

Your output line is wrong, there’s no way for the audio to get to the visualiser program. You need to use a fifo, or as in the link I provided, a udpsink. There’s a full example in their documentation at ncmpcpp/config at 35f9262a6e7c7321f6cfd9a55a1d7db920b81b22 · ncmpcpp/ncmpcpp · GitHub which I hope you’ve already read. What you have doesn’t even appear to be a valid pipeline, surely that errors.

And please use sudo mopidyctl config to provide your effective config.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.