Post Reply 
Let's brainstorm..Setting up MinimServer to feed a USB DAC
27-11-2013, 12:34
Post: #45
RE: Let's brainstorm..Setting up MinimServer to feed a USB DAC
(26-11-2013 23:20)simoncn Wrote:  The problem with MPD occurs with WAV files (16-bit and 24-bit) but not with FLAC files. Here's the relevant portion of the MPD verbose log:

Code:
Nov 26 22:12 : client: command_process_list: process command "clear"
Nov 26 22:12 : client: command_process_list: command returned 0
Nov 26 22:12 : client: command_process_list: process command "addid http://192.168.0.10:9790/minimserver/*/music/musicfiles/HMA1951727/01*20-*20Kyrie*20-*20Christe*20-*20K$
Nov 26 22:12 : add to playlist: http://192.168.0.10:9790/minimserver/*/music/musicfiles/HMA1951727/01*20-*20Kyrie*20-*20Christe*20-*20Kyrie.flac/$!transcode.wav
Nov 26 22:12 : database: get song: http://192.168.0.10:9790/minimserver/*/music/musicfiles/HMA1951727/01*20-*20Kyrie*20-*20Christe*20-*20Kyrie.flac/$!transcode.wav
Nov 26 22:12 : client: command_process_list: command returned 0
Nov 26 22:12 : client: command_process_list: process command "play 0"
Nov 26 22:12 : playlist: play 0:"http://192.168.0.10:9790/minimserver/*/music/musicfiles/HMA1951727/01*20-*20Kyrie*20-*20Christe*20-*20Kyrie.flac/$!transcode.wav"
Nov 26 22:12 : decoder_thread: clearing mixramp tags
Nov 26 22:12 : decoder_control: mixramp_start = NULL
Nov 26 22:12 : decoder_control: mixramp_prev_end = NULL
Nov 26 22:12 : client: command_process_list: command returned 0
Nov 26 22:12 : client: [0] process command list returned 0
Audio File Library: unrecognized audio file format [error 0]
Nov 26 22:12 : audiofile: failed to input stream
Nov 26 22:12 : playlist: stop

MinimServer is sending the WAV file with a MIME type of audio/x-wav. Does MPD recognise this value?

Hi Simon,

I've tested with minimserver transcoding set to wav24 and for me it works

Code:
Nov 27 11:13 : database: get song: http://192.168.1.133:9790/minimserver/*/Music/New*20Order/(the*20best*20of)*20New*20Order/1-01-True*20Faith-94.flac/$!transcode-24.wav
Nov 27 11:13 : client: command_process_list: command returned 0
Nov 27 11:13 : client: command_process_list: process command "play 0"
Nov 27 11:13 : playlist: play 0:"http://192.168.1.133:9790/minimserver/*/Music/New*20Order/(the*20best*20of)*20New*20Order/1-01-True*20Faith-94.flac/$!transcode-24.wav"
Nov 27 11:13 : decoder_thread: clearing mixramp tags
Nov 27 11:13 : decoder_control: mixramp_start = NULL
Nov 27 11:13 : decoder_control: mixramp_prev_end = NULL
Nov 27 11:13 : client: command_process_list: command returned 0
Nov 27 11:13 : client: [0] process command list returned 0
Audio File Library: unrecognized audio file format [error 0]
Nov 27 11:13 : audiofile: failed to input stream
Nov 27 11:13 : ffmpeg: detected input format 'wav' (WAV format)
Nov 27 11:13 : ffmpeg/pcm_s24le: err{or,}_recognition separate: 1; 1
Nov 27 11:13 : ffmpeg/pcm_s24le: err{or,}_recognition combined: 1; 1
Nov 27 11:13 : ffmpeg/wav: max_analyze_duration reached
Nov 27 11:13 : ffmpeg/pcm_s24le: err{or,}_recognition separate: 1; 1
Nov 27 11:13 : ffmpeg/pcm_s24le: err{or,}_recognition combined: 1; 1
Nov 27 11:13 : decoder: audio_format=44100:32:2, seekable=true
Nov 27 11:13 : alsa: buffer: size=256..16384 time=5804..371520
Nov 27 11:13 : alsa: period: size=256..16384 time=5804..371520
Nov 27 11:13 : alsa: default period_time = buffer_time/4 = 371519/4 = 92879
Nov 27 11:13 : alsa: buffer_size=16384 period_size=4096
Nov 27 11:13 : output: opened plugin=alsa name="My ALSA Device" audio_format=44100:16:2
Nov 27 11:13 : output: converting from 44100:32:2

I think there is a small issue in that mpd detects the file as being 32bit, I have seen it do that before..

In my mpd.conf file I have the following setting for the AudioOutput

Code:
audio_output {
    type        "alsa"
    name        "My ALSA Device"
    device        "hw:0,0"    # optional
    format        "44100:32:2"    # optional
    mixer_device    "default"    # optional
    mixer_control    "PCM"        # optional
    mixer_index    "0"        # optional
}



In this case I am using the built in audio and so it converts back to 16bit
Code:
Nov 27 11:13 : output: opened plugin=alsa name="My ALSA Device" audio_format=44100:16:2
Nov 27 11:13 : output: converting from 44100:32:2

When I use my Sabre U2 Async DAC it outputs 24bit
Code:
Nov 27 11:26 : output: opened plugin=alsa name="My ALSA Device" audio_format=44100:24_3:2
Nov 27 11:26 : output: converting from 44100:32:2

When I use my Stoner Acoustics Ud110 v2 DAC it claims to output 32bit

Code:
Nov 27 11:30 : output: opened plugin=alsa name="My ALSA Device" audio_format=44100:32:2
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Let's brainstorm..Setting up MinimServer to feed a USB DAC - PeteManchester - 27-11-2013 12:34

Forum Jump:


User(s) browsing this thread: 2 Guest(s)