GithubHelp home page GithubHelp logo

Comments (6)

be-ez avatar be-ez commented on July 30, 2024 1

For those who are interested in getting this working in OSX with Mopidy and Spotify. I added an output to the Mopidy config so a /tmp/mpd.fifo file is created.

I added this to my Mopidy.conf file.

[audio]
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

Edit: Some references.
Discussion Board I got the idea from
mopidy advanced audio docs

from cli-visualizer.

drselump14 avatar drselump14 commented on July 30, 2024 1

wow ... thanks @be-ez ... it works ...

from cli-visualizer.

dpayne avatar dpayne commented on July 30, 2024

What does your mpd config look like?

from cli-visualizer.

wahidrahim avatar wahidrahim commented on July 30, 2024

~/.mpd/mpd.conf

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"
auto_update             "yes"
auto_update_depth       "2"
follow_outside_symlinks "yes"
follow_inside_symlinks  "yes"

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

bind_to_address         "127.0.0.1"
port                    "6600"

user                    "wrahim"

from cli-visualizer.

brettinternet avatar brettinternet commented on July 30, 2024

I have the same issue.

There's nothing in the vis.log. Also, which vis gives me the correct /usr/local/bin/vis.

my config:

audio.sources=mpd
mpd.fifo.path=/tmp/mpd.fifo

mpd.conf:

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"
    auto_update             "yes"
    auto_update_depth       "2"
    follow_outside_symlinks "yes"
    follow_inside_symlinks  "yes"

    audio_output {
      type                  "osx"
      name                  "CoreAudio"
      mixer_type            "software"
    }

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

    decoder {
      plugin                "mp4ff"
      enabled               "no"
    }

    bind_to_address     "127.0.0.1"
    port                        "6600"

    user                       "my uname"

I also verified that /tmp/mpd.fifo was created.

EDIT: my bad, I did get it to work now with ncmpcpp. Just not with Mopidy + Spotify - but that's probably out the scope of this issue.

from cli-visualizer.

brettinternet avatar brettinternet commented on July 30, 2024

@be-ez thanks for sharing that link, I meant to follow up. For anyone else finding this you can see my mopidy.conf here.

To document some of my other findings: When I initially set up mine on macOS, I had a python error about a missing libspotify framework in /Library/Frameworks. If you get this error, simply run brew info libspotify to see where homebrew has installed your libspotify package. Create a folder in /Library/Frameworks called libspotify.framework, then create a symlink in /Library/Frameworks/libspotify.framework with something like:

ln -s /usr/local/Cellar/libspotify/12.1.51/lib/libspotify

After that brew services start mopidy should run without error.

from cli-visualizer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.