Hello,
I try to read flac file with my raspbery (raspbian wheezy, mpd, hifiberry DAC).
Thé playback is well, but with flac files over 88 khz, the playback from song is accelerated.
I have test the Volumio image, flac playback as well over 88 khz... but I want to use raspbian.
Tanks in advance for you help.
Lampchris
Date
Votes
5 comments
-
HiFiBerry team Hi Chris,
I guess, there is a problem with your mpd configuration. Can you playback the file from command line with "mplayer"?
Best regards
Daniel -
Christophe Lampert Hello Daniel,
yes, i kann playback in 192Khz with mplayer:
--> mplayer -ao alsa:device=hw=1,0 1-Hotel\ California.flac
Terminal screen:
----------------------------
192khz/The Eagles - Hotel California 24bit 192khz $ mplayer -ao alsa:device=hw=1,
0 2-New\ Kid\ In\ Town.flac
MPlayer svn r34540 (Debian), built with gcc-4.6 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing 2-New Kid In Town.flac.
libavformat version 53.21.1 (external)
Mismatching header version 53.19.0
Audio only file format detected.
Load subtitles in ./
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 53.35.0 (external)
Mismatching header version 53.32.2
AUDIO: 192000 Hz, 2 ch, s32le, 5236.2 kbit/42.61% (ratio: 654524->1536000)
Selected audio codec: [ffflac] afm: ffmpeg (FFmpeg FLAC audio)
==========================================================================
AO: [alsa] 192000Hz 2ch s32le (4 bytes per sample)
Video: no video
Starting playback...
A: 26.9 (26.9) of 304.0 (05:04.0) 16.0%
---------------------------
Wenn i use the command tvservice -a the 192Khz is not supported:
PCM supported: Max channels: 2, Max samplerate: 96kHz, Max samplesize 24 bits.
AC3 supported: Max channels: 6, Max samplerate: 48kHz, Max rate 640 kb/s.
my MPD.conf:
-------------------
music_directory "/media"
playlist_directory "/var/lib/mpd/playlists"
db_file "/var/lib/mpd/mpd.db"
log_file "/var/log/mpd/mpd.log"
pid_file "/var/run/mpd/pid"
state_file "/var/lib/mpd/state"
sticker_file "/var/lib/mpd/sticker.sql"
user "mpd"
#user "root"
bind_to_address "192.168.0.22"
port "6600"
#log_level "default"
#log_level "verbose"
zeroconf_enabled "yes"
zeroconf_name "Music Player Deamon"
input {
plugin "curl"
# proxy "proxy.isp.com:8080"
# proxy_user "user"
# proxy_password "password"
}
audio_output {
type "alsa"
name "My ALSA Device"
device "hw:1,0" # optional
#format "44100:16:2" # optional------> It's working with this parameters, ok but isn't the goal :-)
mixer_device "hw:1,0" # optional
mixer_control "PCM" # optional
#mixer_index "0" # optional
dsd_usb "yes"
}
#mixer_type "hardware"
#mixer_type "software"
mixer_type "disabled"
filesystem_charset "UTF-8"
id3v1_encoding "UTF-8"
decoder {
plugin "ffmpeg"
enabled "yes"
}
-------------------
Thank you for you help
Have a nice end of day
Christophe -
HiFiBerry team Dear Christophe,
if I understand it correctly, it works well with mplayer, but not with mpd - right? Unfortunately I don't have experience with MPD. Any MPD cracks here in the forum?
What happens when you resample everything to 192kHz/32bit?
Best regards
Daniel -
bartkl Hello Daniel,
I'm experiencing the same problem, and have tried your suggestion of resampling everything to 192/32, as well as some other settings. Using alsa as output driver, this is the piece of configuration responsible:audio_output {
type "alsa"
name "My ALSA Device"
format "44100:16:2"
device "hw:0,0"
}
So, I can useformat
to resample if desired.
The results:- no
format
option specified (no resampling): same symptoms as with 32/192 (seems to default to it) -
format "44100:16:2"
: sounds fine -
format "96000:16:2"
: sounds fine -
format "192000:16:2"
: horrible loud static, inaudbile music - `format "44100:32:2": sounds fine</li>
<li>`format "96000:32:2": sounds weirdly fastforwarded and stuttering (probably what TS means) - `format "192000:32:2": no sound at all, possible one loud glitch</li>
</ul>
<ul>
Playback of 24/96 FLAC.
<li>noformat
option specified (no resampling): same symptoms as with 32/96 (see below). It probably (correctly?) defaults to it.</li>
<li>format "44100:16:2"
: sounds fine</li>
<li>format "96000:16:2"
: sounds fine</li>
<li>format "192000:16:2"
: horrible loud static, inaudbile music <strong>and stuttering as opposed to with the other file</strong></li>
<li>format "44100:32:2"
: sounds fine</li>
<li>format "96000:32:2"
: sounds weirdly fastforwarded and stuttering (probably what TS means)<strong>even more so than the other! it's progress bar shows it's actually playing several seconds per real-time second<strong></li>
<li>format "192000:32:2"
: no sound at all
Playback of 24/192 FLAC.
Be sure to compare this to my mplayer findings at http://www.hifiberry.com/forums/topic/mplayer-playback-of-high-quality-audio-distorted/. Especially the 192khz sample rate is a consistent source of trouble.
Hopefully this is useful to you.
Bart - no
-
bartkl (sorry for the bad markup, but the markup tools on this forum are just awful and unclear and I seem to have reached a maximum amount of edits)
Please sign in to leave a comment.