Você não está autenticado.

Anúncio

Arch Linux Brasil está precisando de sua colaboração para realizar o pagamento do domínio e do host, para colaborar, realizar doações via [email protected]

Para mais informações: [email protected]

#1 11/06/2018 21:53:30

fnd
Membro
De: São Paulo
Registrado: 09/06/2018
Mensagens: 13

mpd e ncmpcpp difuculdade em configurar[resolvido]

Olá estou com um problema em configurar o mpd e o ncmpcpp,segui a wiki do arch,o mpd inicia,está ativo mas quando executo o ncmpcpp fica assim;

quando executo o ncmpcpp fica assim

Onde estou errando?

Meu /home/tux/.ncmpcpp/ncmpcpp.conf

##############################################################################
## This is the example configuration file. Copy it to $HOME/.ncmpcpp/config ##
## or $XDG_CONFIG_HOME/ncmpcpp/config and set up your preferences.          ##
##############################################################################
visualizer_fifo_path = "/tmp/mpd.fifo"
visualizer_output_name = "my_fifo"
#visualizer_sync_interval = "1" 
visualizer_in_stereo = "no"
visualizer_type = "spectrum" (spectrum/wave)
#visualizer_look = "∙▋"
#visualizer_look = "●│"
visualizer_look = "◈▉"
#visualizer_look = "◈◈"
#visualizer_look = "∙│"
#visualizer_color = "white"
main_window_highlight_color = "white"
#
progressbar_look = "─╼─"
#progressbar_look = "▀▀ "
#progressbar_look = "▉▉▉"
#progressbar_look = "▗▗▗"
progressbar_color = "white"
progressbar_elapsed_color = "green"
#
song_list_format = " $1%a $5//$8 %t"
#song_list_format = "$1• $8%t $1by $2%a$2 $R$1%l"
#song_list_format = "$8 %t $R$8"
song_status_format = " $2%a $4⟫$3⟫ $8%t $4⟫$3⟫ $5%b "
#
#now_playing_prefix = "$b$8»$2»$4»$3» "
now_playing_prefix = "$b$2⟩$3⟩ "
now_playing_suffix = "$8$/b"
#
song_columns_list_format = "(5)[]{} (30)[red]{a} (32)[white]{t|f} (50)[yellow]{b} (4)[red]{l}"
#
color1 = "white"
color2 = "black"
#
mouse_support = "yes"
header_visibility = "no"
statusbar_visibility = "yes"
playlist_display_mode = "columns" (classic/columns)
autocenter_mode = "yes"
titles_visibility = "no"
enable_window_title = "no"

Meu /home/tux/.config/mpd/mpd.conf
################################################################################
music_directory	"/media/hd/Mp3"
#
playlist_directory "/home/tux/.mpd/playlists"
#
db_file	"/home/tux/.mpd/db"
# 
log_file "/home/tux/.mpd/mpd.log"
#
pid_file "/home/tux/.mpd/pid"
#
state_file "/home/tux/.mpd/mpdstate"
###############################################################################
user "tux"
#
#group "tux"
#
bind_to_address	"/home/tux/.config/mpd/socket"
#
bind_to_address	"localhost"
#
port	"6600"
#
#log_level "default"
#
#gapless_mp3_playback	"yes"
#
#restore_paused "no"
#
save_absolute_paths_in_playlists "yes"
#
auto_update	"yes"
mixer_type     "software"
replaygain     "track"
gapless_mp3_playback    "yes"
#auto_update_depth "3"
audio_output {
    type                    "fifo"
    name                    "my_fifo"
    path                    "/tmp/mpd.fifo"
    format                  "44100:16:1"
    }   
###############################################################################
#follow_outside_symlinks	"yes"
#follow_inside_symlinks		"yes"
###############################################################################
#zeroconf_enabled		"yes"
#zeroconf_name			"Music Player"
###############################################################################
# Permissions #################################################################
#
# If this setting is set, MPD will require password authorization. The password
# setting can be specified multiple times for different password profiles.
#
#password                        "[email protected],add,control,admin"
#
# This setting specifies the permissions a user has who has not yet logged in. 
#
#default_permissions             "read,add,control,admin"
#
###############################################################################
# Database #######################################################################
#
#database {
#       plugin "proxy"
#       host "other.mpd.host"
#       port "6600"
#}
# Input #######################################################################
#
#input {
#        plugin "curl"
#       proxy "proxy.isp.com:8080"
#       proxy_user "user"
#       proxy_password "password"
#}
###############################################################################
# Audio Output ################################################################
#
# MPD supports various audio output types, as well as playing through multiple 
# audio outputs at the same time, through multiple audio_output settings 
# blocks. Setting this block is optional, though the server will only attempt
# autodetection for one sound card.
#
# An example of an ALSA output:
#
audio_output {
	type		"alsa"
	name		"ALSA sound card"
##	device		"hw:0,0"	# optional
##	mixer_type      "hardware"	# optional
##	mixer_device	"default"	# optional
##	mixer_control	"PCM"		# optional
##	mixer_index	"0"		# optional
}
#
# An example of an OSS output:
#
#audio_output {
#	type		"oss"
#	name		"My OSS Device"
##	device		"/dev/dsp"	# optional
##	mixer_type      "hardware"	# optional
##	mixer_device	"/dev/mixer"	# optional
##	mixer_control	"PCM"		# optional
#}
#
# An example of a shout output (for streaming to Icecast):
#
#audio_output {
#	type		"shout"
#	encoder		"vorbis"		# optional
#	name		"My Shout Stream"
#	host		"localhost"
#	port		"8000"
#	mount		"/mpd.ogg"
#	password	"hackme"
#	quality		"5.0"
#	bitrate		"128"
#	format		"44100:16:1"
##	protocol	"icecast2"		# optional
##	user		"source"		# optional
##	description	"My Stream Description"	# optional
##	url		"[url]http://example.com[/url]"	# optional
##	genre		"jazz"			# optional
##	public		"no"			# optional
##	timeout		"2"			# optional
##	mixer_type      "software"		# optional
#}
#
# An example of a recorder output:
#
#audio_output {
#	type		"recorder"
#	name		"My recorder"
#	encoder		"vorbis"		# optional, vorbis or lame
#	path		"/var/lib/mpd/recorder/mpd.ogg"
##	quality		"5.0"			# do not define if bitrate is defined
#	bitrate		"128"			# do not define if quality is defined
#	format		"44100:16:1"
#}
#
# An example of a httpd output (built-in HTTP streaming server):
#
#audio_output {
#	type		"httpd"
#	name		"My HTTP Stream"
#	encoder		"vorbis"		# optional, vorbis or lame
#	port		"8000"
#	bind_to_address	"0.0.0.0"		# optional, IPv4 or IPv6
##	quality		"5.0"			# do not define if bitrate is defined
#	bitrate		"128"			# do not define if quality is defined
#	format		"44100:16:1"
#	max_clients	"0"			# optional 0=no limit
#}
#
# An example of a pulseaudio output (streaming to a remote pulseaudio server)
#
#audio_output {
#	type		"pulse"
#	name		"My Pulse Output"
##	server		"remote_server"		# optional
##	sink		"remote_server_sink"	# optional
#}
#
# An example of a winmm output (Windows multimedia API).
#
#audio_output {
#	type		"winmm"
#	name		"My WinMM output"
##	device		"Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
#		or
##	device		"0"		# optional
##	mixer_type	"hardware"	# optional
#}
#
# An example of an openal output.
#
#audio_output {
#	type		"openal"
#	name		"My OpenAL output"
##	device		"Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
#}
#
# An example of an sndio output.
#
#audio_output {
#	type		"sndio"
#	name		"sndio output"
#	mixer_type	"software"
#}
#
# An example of an OS X output:
#
#audio_output {
#	type		"osx"
#	name		"My OS X Device"
##	device		"Built-in Output"	# optional
##	channel_map      "-1,-1,0,1"	# optional
#}
#
## Example "pipe" output:
#
#audio_output {
#	type		"pipe"
#	name		"my pipe"
#	command		"aplay -f cd 2>/dev/null"
## Or if you're want to use AudioCompress
#	command		"AudioCompress -m | aplay -f cd 2>/dev/null"
## Or to send raw PCM stream through PCM:
#	command		"nc example.org 8765"
#	format		"44100:16:2"
#}
#
## An example of a null output (for no audio output):
#
#audio_output {
#	type		"null"
#	name		"My Null Output"
#	mixer_type      "none"			# optional
#}
#
###############################################################################
##replaygain			"album"
#replaygain_preamp		"0"
#replaygain_missing_preamp	"0"
#replaygain_limit		"yes"
#volume_normalization		"no"
###############################################################################
#filesystem_charset		"UTF-8"
###############################################################################

Última edição por fnd (13/06/2018 09:53:28)


Linux User # 480186 | ArchLinux i3wm |

Offline

#2 11/06/2018 23:10:45

swatquest
Moderador
Registrado: 05/10/2010
Mensagens: 1.811

Re: mpd e ncmpcpp difuculdade em configurar[resolvido]

Offline

#3 11/06/2018 23:49:19

fnd
Membro
De: São Paulo
Registrado: 09/06/2018
Mensagens: 13

Re: mpd e ncmpcpp difuculdade em configurar[resolvido]

Vi sim,segui a wiki mais não funciona,vc viu a print?fica assim,e o mpd está conectado e ativo,o que pode ser?


Linux User # 480186 | ArchLinux i3wm |

Offline

#4 12/06/2018 09:41:58

fnd
Membro
De: São Paulo
Registrado: 09/06/2018
Mensagens: 13

Re: mpd e ncmpcpp difuculdade em configurar[resolvido]

Agora só não aparece as musicas porque ?


Linux User # 480186 | ArchLinux i3wm |

Offline

#5 12/06/2018 22:20:30

swatquest
Moderador
Registrado: 05/10/2010
Mensagens: 1.811

Re: mpd e ncmpcpp difuculdade em configurar[resolvido]

qual a saída do comandos

ls /home/tux/.mpd/

e


cat /home/swatquest/.mpd/log

coloque a saida dentro do code

[code]saida do comando[/code]

você iniciou o mpd pelo systemctl ou pelo comando mpd

pelo systemctl enable mpd pode dar erro

o correto é iniciar pelo comando
mpd

se funcionar coloque o comando mpd para iniciar com a sessão

nonalmente fica em .config/autostart

Offline

#6 12/06/2018 22:55:01

fnd
Membro
De: São Paulo
Registrado: 09/06/2018
Mensagens: 13

Re: mpd e ncmpcpp difuculdade em configurar[resolvido]

Funcionou agora só não tem som,aperto a seta do teclado pro lado esquerdo e aparece no mixer o que faço?

No comando cat /home/tux/.config/mpd/mpd.log não aparece nada.

Iniciei pelo comando systemctl enable mpd.service


Linux User # 480186 | ArchLinux i3wm |

Offline

#7 12/06/2018 23:00:53

swatquest
Moderador
Registrado: 05/10/2010
Mensagens: 1.811

Re: mpd e ncmpcpp difuculdade em configurar[resolvido]

aqui inicio pelo comando

mpd

ele cria todos os arquivos ..

o comando
systemctl enable mpd.service

não faz isso

sobre o audio
se for alsa
~.mpd/mpd.conf

audio_output {
        type          "alsa"
        name          "ALSA sound card"
        # Optional
        #device        "iec958:CARD=Intel,DEV=0"
        #mixer_control "PCM"
}

se for pulseaudio
~.mpd/mpd.conf

audio_output {
        type            "pulse"
        name            "pulse audio"
}

Offline

#8 12/06/2018 23:17:16

fnd
Membro
De: São Paulo
Registrado: 09/06/2018
Mensagens: 13

Re: mpd e ncmpcpp difuculdade em configurar[resolvido]

Consegui resolver,só removi em /etc/mpd.conf

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

E funcionou obrigado pela ajuda.


Linux User # 480186 | ArchLinux i3wm |

Offline

#9 12/06/2018 23:27:19

swatquest
Moderador
Registrado: 05/10/2010
Mensagens: 1.811

Re: mpd e ncmpcpp difuculdade em configurar[resolvido]

quando puder coloque a tag [resolvido] no título do tópico

Offline

Rodapé do site