Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(OS X) does not output anything onto screen, just a blank terminal #41

Closed
wahidrahim opened this issue Jan 26, 2017 · 6 comments
Closed

Comments

@wahidrahim
Copy link

I followed the instructions from this issue as well: #24
Still no output.

Here is my config:

##Refresh rate of the visualizers. A really high refresh rate may cause screen tearing. Default is 20.
#visualizer.fps=20

##Sets the audio sources to use. Currently available ones are "mpd" and "alsa"Sets the audio sources to use.
##Currently available ones are "mpd", "pulse" and "alsa". Defaults to "mpd".
audio.sources=mpd

##vis tries to find the correct pulseaudio sink, however this will not work on all systems.
##If pulse audio is not working with vis try switching the audio source. A list can be found by running the
##command pacmd list-sinks  | grep -e 'name:'  -e 'index'
#audio.pulse.source=0

##Defaults to "/tmp/mpd.fifo"
mpd.fifo.path=/tmp/mpd.fifo

##If set to false the visualizers will use mono mode instead of stereo. Some visualizers will
##behave differently when mono is enabled. For example, spectrum show two sets of bars.
#audio.stereo.enabled=false

##Specifies how often the visualizer will change in seconds. 0 means do not rotate. Default is 0.
#visualizer.rotation.secs=10

##Configures the samples rate and the cutoff frequencies.
#audio.sampling.frequency=44100
#audio.low.cutoff.frequency=22050
#audio.high.cutoff.frequency=30


##Configures the visualizers and the order they are in. Available visualizers are spectrum,lorenz,ellipse.
##Defaults to spectrum,ellipse,lorenz
#visualizers=spectrum,ellipse,lorenz


##Configures what character the spectrum visualizer will use. Specifying a space (e.g " ") means the
##background will be colored instead of the character. Defaults to " ".
#visualizer.spectrum.character=#

##Spectrum bar width. Defaults to 2.
#visualizer.spectrum.bar.width=2

##The amount of space between each bar in the spectrum visualizer. Defaults to 1. It's possible to set this to
##zero to have no space between bars
#visualizer.spectrum.bar.spacing=1

##Available smoothing options are monstercat, sgs, none.
#visualizer.spectrum.smoothing.mode=monstercat

##This configures the falloff effect on the spectrum visualizer. Available falloff options are fill,top,none.
##Defaults to "fill"
#visualizer.spectrum.falloff.mode=fill

##Configures how fast the falloff character falls. This is an exponential falloff so values usually look
##best 0.9+ and small changes in this value can have a large effect. Defaults to 0.95
#visualizer.spectrum.falloff.weight=0.95

##Margins in percent of total screen for spectrum visualizer. All margins default to 0
#visualizer.spectrum.top.margin=0.30
#visualizer.spectrum.bottom.margin=0.10
#visualizer.spectrum.right.margin=0.10
#visualizer.spectrum.left.margin=0.10

##Reverses the direction of the spectrum so that high freqs are first and low freqs last. Defaults to false.
#visualizer.spectrum.reversed=false

##This configures the sgs smoothing effect on the spectrum visualizer. More points spreads out the smoothing
##effect and increasing passes runs the smoother multiple times on reach run. Defaults are points=3 and passes=1
#visualizer.sgs.smoothing.points=3
#visualizer.sgs.smoothing.passes=1


##Configures what character the ellipse visualizer will use. Specifying a space (e.g " ") means the
##background will be colored instead of the character. Defaults to "█".
#visualizer.ellipse.character=#

##The radius of each color ring in the ellipse visualizer. Defaults to 2.
#visualizer.ellipse.radius=2


##Configures what character the lorenz visualizer will use. Specifying a space (e.g " ") means the
##background will be colored instead of the character. Defaults to "█".
#visualizer.lorenz.character=#

##Specifies the color scheme. The color scheme must be in ~/.config/vis/colors/ directory. The default scheme is "colors".
#colors.scheme=rainbow
@dpayne
Copy link
Owner

dpayne commented Jan 26, 2017

What does your mpd config look like?

@wahidrahim
Copy link
Author

~/.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"

@brettinternet
Copy link

brettinternet commented Mar 6, 2017

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.

@be-ez
Copy link

be-ez commented Jun 5, 2017

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

@drselump14
Copy link

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

@brettinternet
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants