You are not logged in.

#1 2014-08-15 11:58:48

tabularaza
Member
From: Germany
Registered: 2014-05-20
Posts: 5

[SOLVED] MPD doesn't play high quality flac files

Hey guys,
I've got a problem concerning MPD and playing ~2800kbps; 96kHz; 24Bit flac files.
When I play them there whole thing stays silent.

Set-UP:
MPD with ncmpcpp
ALSA

Now the strange thing: It works just fine, when I use Deadbeef or VLC.
So that leads me to the prediction that the issue is MPD related.
I already had a good look around the internet and checked my mpd.conf but
I couldn't figure out where the problem is.

Does anyone have the same issue and knows a fix?

Btw: My system is up to date

Last edited by tabularaza (2014-08-15 13:34:37)

Offline

#2 2014-08-15 12:30:53

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SOLVED] MPD doesn't play high quality flac files

Run 'mpd --version' and 'grep -v \# your_mpd_conf'. Do you force any particular format either within mpd or alsa? Is the file actually read and played back or does it stop immediately after playback? Have you tried decoding 'flac -d file' to wav and reencoding the files in question? Any unique, custom tags? How have you encoded the files?

Last edited by emeres (2014-08-15 12:36:01)

Offline

#3 2014-08-15 12:44:47

tabularaza
Member
From: Germany
Registered: 2014-05-20
Posts: 5

Re: [SOLVED] MPD doesn't play high quality flac files

Here you are:

mpd --version

Music Player Daemon 0.18.12

Copyright (C) 2003-2007 Warren Dukes <warren.dukes@gmail.com>
Copyright (C) 2008-2013 Max Kellermann <max@duempel.org>
This is free software; see the source for copying conditions.  There is NO
warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Decoders plugins:
 [mad] mp3 mp2
 [vorbis] ogg oga
 [oggflac] ogg oga
 [flac] flac
 [opus] opus ogg oga
 [sndfile] wav aiff aif au snd paf iff svx sf voc w64 pvf xi htk caf sd2
 [audiofile] wav au aiff aif
 [dsdiff] dff
 [dsf] dsf
 [faad] aac
 [wavpack] wv
 [modplug] 669 amf ams dbm dfm dsm far it med mdl mod mtm mt2 okt s3m stm ult umx xm
 [ffmpeg] 16sv 3g2 3gp 4xm 8svx aa3 aac ac3 afc aif aifc aiff al alaw amr anim apc ape asf atrac au aud avi avm2 avs bap bfi c93 cak cin cmv cpk daud dct divx dts dv dvd dxa eac3 film flac flc fli fll flx flv g726 gsm gxf iss m1v m2v m2t m2ts m4a m4b m4v mad mj2 mjpeg mjpg mka mkv mlp mm mmf mov mp+ mp1 mp2 mp3 mp4 mpc mpeg mpg mpga mpp mpu mve mvi mxf nc nsv nut nuv oga ogm ogv ogx oma ogg omg psp pva qcp qt r3d ra ram rl2 rm rmvb roq rpl rvc shn smk snd sol son spx str swf tgi tgq tgv thp ts tsp tta xa xvid uv uv2 vb vid vob voc vp6 vmd wav webm wma wmv wsaud wsvga wv wve
 [pcm]

Output plugins:
 shout null fifo pipe alsa ao oss pulse jack httpd recorder

Encoder plugins:
 null vorbis opus lame wave flac

Archive plugins:
 [bz2] bz2

Input plugins:
 file archive curl ffmpeg mms

Playlist plugins:
 extm3u m3u xspf pls asx rss soundcloud cue cue

Protocols:
 file:// http:// https:// mms:// mmsh:// mmst:// mmsu:// gopher:// rtp:// rtsp:// rtmp:// rtmpt:// rtmps://

grep -v \# ~/.config/mpd/mpd.conf

music_directory		"/home/lafriedrichsen/Musik/"
playlist_directory		"~/.config/mpd/playlists"
db_file			"~/.config/mpd/database"
log_file			"~/.config/mpd/log"
pid_file			"~/.config/mpd/pid"
state_file			"~/.config/mpd/state"
sticker_file			"~/.config/mpd/sticker.sql"

bind_to_address		"127.0.0.1"
bind_to_address		"~/.config/mpd/socket"
port				"6600"
gapless_mp3_playback			"yes"
auto_update	"yes"

input {
        plugin "curl"
}

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

Btw: All my other flacs just work fine. They are ~1000kbkps; 44.1kHz; 16Bit.
The problem just occurs with higher quality files.

Edit: The files play but there is no sound.

Last edited by tabularaza (2014-08-15 12:50:38)

Offline

#4 2014-08-15 13:09:44

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SOLVED] MPD doesn't play high quality flac files

I would still reencode one file, it will not hurt and after updating the music database, you will be certain if some aspects of the file are not compatible with your current mpd setup. Since you probably use the mpd from extra repository, what optional dependencies do you have installed? Are those surround sound files? Provide more information through 'mediainfo file' or 'ffmpeg -i file'.

You could also try another mpd output:

audio_output {
	type "alsa"
	name "test"
        format "44100:16:2"
#or
        format "*:16:*"
}

What is your default alsa output device 'aplay -l'? Any ~/.asoundrc or global configuration?

Edit: Obviously you should also check mpds and ncmpcpps [error] logs.

Last edited by emeres (2014-08-15 13:11:59)

Offline

#5 2014-08-15 13:30:15

tabularaza
Member
From: Germany
Registered: 2014-05-20
Posts: 5

Re: [SOLVED] MPD doesn't play high quality flac files

Thank you very much!

You literally saved my day, sir. smile

Offline

#6 2014-08-15 13:38:03

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SOLVED] MPD doesn't play high quality flac files

You are welcome, but what worked out in the end? Others would benefit from the information.

Offline

#7 2014-08-15 13:43:26

tabularaza
Member
From: Germany
Registered: 2014-05-20
Posts: 5

Re: [SOLVED] MPD doesn't play high quality flac files

It was just this line I added:

format "44100:16:2"

Just as shown in your example above.

Last edited by tabularaza (2014-08-15 13:46:11)

Offline

Board footer

Powered by FluxBB