dpayne / cli-visualizer

CLI based audio visualizer
MIT License
2.08k stars 121 forks source link

[MacOS] No output #135

Open ExperiBass opened 4 years ago

ExperiBass commented 4 years ago

Hello!

I built vis using GCC (from Homebrew) and enabled pulseaudio support, but theres no output. heres my config file:

##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=pulse

##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=2

##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

##Applies scaling factor to both lorenz and ellipse visualizers. This is useful when the system audio is set
#to a low volume.
visualizer.scaling.multiplier=1.0

##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=sgs

##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=#

##Turns off overriding the user's terminal colors. This is true by default.
#colors.override.terminal=false

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

ive tried all 3 sources on my system, none work.

EDIT: found the log file, heres what its full of: css W: [] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because PulseAudio was built without capabilities support. /Users/gingkathfox/cli-visualizer/src/Source/PulseAudioSource.cpp:189 ERROR Could not open pulseaudio source 2: Connection refused

is this a problem on my end? heres the full log: vis.log

Pulseaudio version 12.2

dpayne commented 4 years ago

I'm not sure, it seems like an issue with pulse audio. I have never run pulse audio on mac so I am unfamiliar with it but it looks like cannot open the connection to pulse audio. Do any other apps work with pulseaudio for you?

ExperiBass commented 4 years ago

i think my installation of LMMS uses PA, and it works just fine when i build and compile it. maybe vis cant find it? i installed it using homebrew.

ExperiBass commented 4 years ago

tried mpd, still no output, i dunno if i need to set anything up though.

dpayne commented 4 years ago

mpd should work with the fifo queue https://github.com/dpayne/cli-visualizer#mpd-setup

ExperiBass commented 4 years ago
gingkathfox$ mpd /Users/gingkathfox/.config/mpd/mpd.conf 
exception: bind to '0.0.0.0:6600' failed (continuing anyway, because binding to '[::]:6600' succeeded): Failed to bind socket: Address already in use

config:

audio_output {
    type                    "fifo"
    name                    "my_fifo"
    path                    "/tmp/mpd.fifo"
    format                  "44100:16:2"
}
dpayne commented 4 years ago

What happens when you run ls -altr /tmp/mpd.fifo?

ExperiBass commented 4 years ago

no such file or directory

ExperiBass commented 4 years ago

alright, set up the fifo, and all i get when i run vis is this:

gingkathfox$ vis -c /Users/gingkathfox/.config/vis/config 
-c
/Users/gingkathfox/.config/vis/config

and then it hangs.

ExperiBass commented 4 years ago

Tried this: https://www.reddit.com/r/unixporn/comments/cns0tf/aqua_perfect_blending_of_my_terminal_widgets_with/ewelsjt/?context=3

How it works, but only with my microphone. theres 3 sinks, the last 2 just make vis have no output (but pressing "q" still works).

dpayne commented 4 years ago

@GingkathFox is this fixed with mac os brew fix?

ExperiBass commented 4 years ago

138? yes

dpayne commented 4 years ago

yeah

ExperiBass commented 4 years ago

cool, tho theres a new issue where itll only detect mic input. i have software to get internal audio, but pulseaudio refuses to use it (iShowU Audio Capture)

plushugh commented 4 years ago

Still dosen't work for mpd though, just hangs and not giving sny output.

xslendix commented 2 months ago

Hello, any progress on this?