Moode Forum

Full Version: AIFF playback issue on moode 4.4 with MPD 0.21.3
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I updated MPD to 0.21.3 by the following procedure.
http://moodeaudio.org/forum/showthread.p...82#pid6182

However, playback does not start in a specific AIFF files.
Those AIFF files will be playback without problems on moode 4.4 with MPD 20.20.
[attachment=412]


The results I confirmed are below.
· DSD file > no problem
· AIFF 24bit/192kHz > no problems
· AIFF 16bit/44.1kHz > playback does not start
· Other AIFF files > Even for the same bit depth / sampling rate, there are files that can be played and files that can not be played.

model 3B+
Allo DigiOne
Examine the MPD log for errors when trying to play the file

Code:
cat /var/log/mpd/log
May not be the explanation in this specific case, but I just came across this gem while searching for something else in the upmpdcli documentation

Quote:You should know that MPD has difficulties with some formats when accessed through HTTP which is how the Media Server transfers the data.

Specifically, WAV and AIFF files, especially with samples wider than 16 bits are a frequent source of trouble (because they are little used and little tested for streaming). Support will vary depending on the MPD versions and exactly what input plugins are configured (among ffmpeg, libaudiofile and libsndfile). Often, the same files play just fine locally, it’s the combination of HTTP access and file format which causes problems.

Regards,
Kent
Hi Tim,

This is an excerpt of logs when playing AIFF files.
There are some exceptions like "exception: Failed to decode".

Code:
pi@moode:~ $ cat /var/log/mpd/log
Dec 16 02:32 : player: played "http://192.168.1.6:9790/minimserver/*/Hilary*20Hahn/Hilary_Hahn-The_Complete_Sony_Recordings/02-01-I_Allegro_ma_non_troppo-LLS.aif"
Dec 16 02:33 : exception: No such song
Dec 16 02:57 : ffmpeg/pcm_s16be: Multiple frames in a packet.
Dec 16 03:05 : player: played "http://192.168.1.6:9790/minimserver/*/Alexander*20Melnikov/Debussy_*20Preludes*20du*202e*20Livre,*20La*20Mer*20(AIFF*2096-24)/01-13*20I.*20De*20l*e2*80*99aube*20a*20midi*20sur*20la*20mer*20(Transcribed.aif"
Dec 16 03:25 : player: played "http://192.168.1.6:9790/minimserver/*/Rudolf*20Serkin/Beethoven_Piano_Concertos_Fantasia_in_C_Minor_Op_80_Choral_Fantasy/02-04-Piano_Concerto_No_4_in_G_Major_Op_58_I_Allegro_moderato-LLS.aif"
Dec 16 03:25 : exception: No such song
Dec 16 03:28 : player: played "http://192.168.1.6:9790/minimserver/*/Rachel*20Podger/Bach_*20Sonatas*20*26*20Partitas*20For*20Solo*20Violin/2-03*20Bach_*20Violin*20Partita*20*233*20In*20E,*20BWV*201006*20-*20Gavotte*20En*20Rondo.aiff"
Dec 16 03:28 : exception: avformat_open_input() failed: Input/output error
Dec 16 03:28 : exception: Failed to decode http://192.168.1.6:9790/minimserver/*/Hilary*20Hahn/Ives_*20Four*20Violin*20Sonatas/11-Ives_*20Sonata*20for*20Violin*20and*20Piano*20No.4*20Children*27s*20Day*20At*20The*20Camp*20Meeting*20-*202.*20Largo*20-*20Allegro*20(con*20slugarocko).aif
Dec 16 03:28 : player: played "http://192.168.1.6:9790/minimserver/*/Hilary*20Hahn/Ives_*20Four*20Violin*20Sonatas/11-Ives_*20Sonata*20for*20Violin*20and*20Piano*20No.4*20Children*27s*20Day*20At*20The*20Camp*20Meeting*20-*202.*20Largo*20-*20Allegro*20(con*20slugarocko).aif"
Dec 16 03:28 : exception: No such song
Dec 16 03:28 : player: played "http://192.168.1.6:9790/minimserver/*/Rachel*20Podger/Bach_*20Sonatas*20*26*20Partitas*20For*20Solo*20Violin/1-02*20Bach_*20Violin*20Sonata*20*231*20In*20B*20Minor,*20BWV*201014*20-*202.*20Allegro.aiff"
Dec 16 03:30 : player: played "http://192.168.1.6:9790/minimserver/*/Rachel*20Podger/Bach_*20Sonatas*20*26*20Partitas*20For*20Solo*20Violin/2-04*20Bach_*20Violin*20Partita*20*233*20In*20E,*20BWV*201006*20-*20Menuet*20*231.aiff"
Dec 16 03:32 : exception: Failed to decode http://192.168.1.6:9790/minimserver/*/Rachel*20Podger/Bach_*20Sonatas*20*26*20Partitas*20For*20Solo*20Violin/2-04*20Bach_*20Violin*20Partita*20*233*20In*20E,*20BWV*201006*20-*20Menuet*20*231.aiff
Dec 16 03:32 : exception: nested: CURL failed: Failed to connect to 192.168.1.6 port 9790: Connection refused
Dec 16 03:32 : player: played "http://192.168.1.6:9790/minimserver/*/Rachel*20Podger/Bach_*20Sonatas*20*26*20Partitas*20For*20Solo*20Violin/2-04*20Bach_*20Violin*20Partita*20*233*20In*20E,*20BWV*201006*20-*20Menuet*20*231.aiff"
Dec 16 03:32 : exception: Failed to decode http://192.168.1.6:9790/minimserver/*/Rachel*20Podger/Bach_*20Sonatas*20*26*20Partitas*20For*20Solo*20Violin/2-05*20Bach_*20Violin*20Partita*20*233*20In*20E,*20BWV*201006*20-*20Menuet*20*232.aiff
Dec 16 03:32 : exception: nested: CURL failed: Failed to connect to 192.168.1.6 port 9790: Connection refused
Dec 16 03:32 : player: played "http://192.168.1.6:9790/minimserver/*/Rachel*20Podger/Bach_*20Sonatas*20*26*20Partitas*20For*20Solo*20Violin/2-05*20Bach_*20Violin*20Partita*20*233*20In*20E,*20BWV*201006*20-*20Menuet*20*232.aiff"
(12-15-2018, 07:12 PM)TheOldPresbyope Wrote: [ -> ]May not be the explanation in this specific case, but I just came across this gem while searching for something else in the upmpdcli documentation

Quote:You should know that MPD has difficulties with some formats when accessed through HTTP which is how the Media Server transfers the data.

Specifically, WAV and AIFF files, especially with samples wider than 16 bits are a frequent source of trouble (because they are little used and little tested for streaming). Support will vary depending on the MPD versions and exactly what input plugins are configured (among ffmpeg, libaudiofile and libsndfile). Often, the same files play just fine locally, it’s the combination of HTTP access and file format which causes problems.

Regards,
Kent

Thanks TheOldPresbyope.

This may be a bug in MPD 0.21, is not it?
I will use 0.20.20 for a while.
(12-16-2018, 05:34 AM)yaslam Wrote: [ -> ]Hi Tim,

This is an excerpt of logs when playing AIFF files.
There are some exceptions like "exception: Failed to decode".

Code:
pi@moode:~ $ cat /var/log/mpd/log
Dec 16 02:32 : player: played "http://192.168.1.6:9790/minimserver/*/Hilary*20Hahn/Hilary_Hahn-The_Complete_Sony_Recordings/02-01-I_Allegro_ma_non_troppo-LLS.aif"
Dec 16 02:33 : exception: No such song
Dec 16 02:57 : ffmpeg/pcm_s16be: Multiple frames in a packet.
Dec 16 03:05 : player: played "http://192.168.1.6:9790/minimserver/*/Alexander*20Melnikov/Debussy_*20Preludes*20du*202e*20Livre,*20La*20Mer*20(AIFF*2096-24)/01-13*20I.*20De*20l*e2*80*99aube*20a*20midi*20sur*20la*20mer*20(Transcribed.aif"
Dec 16 03:25 : player: played "http://192.168.1.6:9790/minimserver/*/Rudolf*20Serkin/Beethoven_Piano_Concertos_Fantasia_in_C_Minor_Op_80_Choral_Fantasy/02-04-Piano_Concerto_No_4_in_G_Major_Op_58_I_Allegro_moderato-LLS.aif"
Dec 16 03:25 : exception: No such song
Dec 16 03:28 : player: played "http://192.168.1.6:9790/minimserver/*/Rachel*20Podger/Bach_*20Sonatas*20*26*20Partitas*20For*20Solo*20Violin/2-03*20Bach_*20Violin*20Partita*20*233*20In*20E,*20BWV*201006*20-*20Gavotte*20En*20Rondo.aiff"
Dec 16 03:28 : exception: avformat_open_input() failed: Input/output error
Dec 16 03:28 : exception: Failed to decode http://192.168.1.6:9790/minimserver/*/Hilary*20Hahn/Ives_*20Four*20Violin*20Sonatas/11-Ives_*20Sonata*20for*20Violin*20and*20Piano*20No.4*20Children*27s*20Day*20At*20The*20Camp*20Meeting*20-*202.*20Largo*20-*20Allegro*20(con*20slugarocko).aif
Dec 16 03:28 : player: played "http://192.168.1.6:9790/minimserver/*/Hilary*20Hahn/Ives_*20Four*20Violin*20Sonatas/11-Ives_*20Sonata*20for*20Violin*20and*20Piano*20No.4*20Children*27s*20Day*20At*20The*20Camp*20Meeting*20-*202.*20Largo*20-*20Allegro*20(con*20slugarocko).aif"
Dec 16 03:28 : exception: No such song
Dec 16 03:28 : player: played "http://192.168.1.6:9790/minimserver/*/Rachel*20Podger/Bach_*20Sonatas*20*26*20Partitas*20For*20Solo*20Violin/1-02*20Bach_*20Violin*20Sonata*20*231*20In*20B*20Minor,*20BWV*201014*20-*202.*20Allegro.aiff"
Dec 16 03:30 : player: played "http://192.168.1.6:9790/minimserver/*/Rachel*20Podger/Bach_*20Sonatas*20*26*20Partitas*20For*20Solo*20Violin/2-04*20Bach_*20Violin*20Partita*20*233*20In*20E,*20BWV*201006*20-*20Menuet*20*231.aiff"
Dec 16 03:32 : exception: Failed to decode http://192.168.1.6:9790/minimserver/*/Rachel*20Podger/Bach_*20Sonatas*20*26*20Partitas*20For*20Solo*20Violin/2-04*20Bach_*20Violin*20Partita*20*233*20In*20E,*20BWV*201006*20-*20Menuet*20*231.aiff
Dec 16 03:32 : exception: nested: CURL failed: Failed to connect to 192.168.1.6 port 9790: Connection refused
Dec 16 03:32 : player: played "http://192.168.1.6:9790/minimserver/*/Rachel*20Podger/Bach_*20Sonatas*20*26*20Partitas*20For*20Solo*20Violin/2-04*20Bach_*20Violin*20Partita*20*233*20In*20E,*20BWV*201006*20-*20Menuet*20*231.aiff"
Dec 16 03:32 : exception: Failed to decode http://192.168.1.6:9790/minimserver/*/Rachel*20Podger/Bach_*20Sonatas*20*26*20Partitas*20For*20Solo*20Violin/2-05*20Bach_*20Violin*20Partita*20*233*20In*20E,*20BWV*201006*20-*20Menuet*20*232.aiff
Dec 16 03:32 : exception: nested: CURL failed: Failed to connect to 192.168.1.6 port 9790: Connection refused
Dec 16 03:32 : player: played "http://192.168.1.6:9790/minimserver/*/Rachel*20Podger/Bach_*20Sonatas*20*26*20Partitas*20For*20Solo*20Violin/2-05*20Bach_*20Violin*20Partita*20*233*20In*20E,*20BWV*201006*20-*20Menuet*20*232.aiff"

Quite a lot of errors in the log.

What happens if you copy those files to a USB stick and play them locally?

-Tim
Hi Tim,

I added some AIFF files to the USB memory and playback them locally. It works very well, and it playback without problems.
Also, adding that USB memory as content of MinimServer and trying to playback them through the network,  can't playback those AIFF files at well.
The following is an error log when AIFF file in USB memory was played through the network.


Code:
Dec 18 00:40 : ffmpeg/pcm_s24be: Multiple frames in a packet.
Dec 18 00:40 : player: played "http://192.168.1.6:9790/minimserver/*/USB4GB/Alexander*20Melnikov/Debussy_*20Preludes*20du*202e*20Livre,*20La*20Mer*20(AIFF*2096-24)/01-01*20I.*20Brouillards.*20Modere.aif"
Dec 18 00:46 : exception: Failed to decode http://192.168.1.6:9790/minimserver/*/USB4GB/Fabio*20Biondi/Vivaldi_Concerti_per_violino_VI_La_boemia/01-01-Violin_Concerto_in_F_Major_RV_282_I_Allegro_poco-SMR.aif
Dec 18 00:46 : exception: nested: CURL failed: The requested URL returned error: 404 Not Found
Dec 18 00:46 : player: played "http://192.168.1.6:9790/minimserver/*/USB4GB/Fabio*20Biondi/Vivaldi_Concerti_per_violino_VI_La_boemia/01-01-Violin_Concerto_in_F_Major_RV_282_I_Allegro_poco-SMR.aif"
@yaslam

So you have confirmed the problem is exactly what was outlined in my previous reply (http://moodeaudio.org/forum/showthread.p...15#pid6315), namely, the combination of AIFF files and HTTP access.

You have come to a multi-pronged fork in the road:
  • You can stay with the version of MPD actually included in moOde r4.4 and continue serving your AIFF files via HTTP from your minimserver, which you said works; 
  • you can install a later version of MPD as you have done and move the AIFF files to storage local to moOde (e.g., USB drive or uSD Card); 
  • you can move the files to a SMB or NFS server in which case either version of MPD should work.
Of course you could always convert all your AIFF files to FLAC files, which I would do anyway, but that's just me.

Regards,
Kent
@TheOldPresbyope

Hi Kent,

I have many AIFF files over 1TB.
It takes a lot of effort to convert it to FLAC.
For that reason I will stay at MPD 0.20.20 at this point Smile