Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: faad_decoder AAC file error
#1
Hi all,

New to MoOde via Allo Usbridge Sig & the music is just quality!! Amazing stuff by moode team.

My tidal is controlled through Mconnect app but playlist pauses on AAC files.
Code:
Aug 23 17:22 : player: played "http://192.168.88.34:15482/tidal/16125562.AAC"                                                              
Aug 23 17:22 : faad_decoder: error decoding AAC stream: Bitstream value not allowed by specification  

Same AAC song can be played through Tidal app, mconnect app direct to phone speaker, mconnect to LS50W directly. It is only when streaming through moode platform the AAC file refuse to play.
Have tried 6.7.1, but same problem persist.
Code:
pi@moode:~ $ cat /var/log/moode.log                                                                                                        
20200823 172351 worker: -- Start                                                                                                            
20200823 172351 worker: Successfully daemonized                                                                                            
20200823 172351 worker: Integrity check (passed)                                                                                            
20200823 172351 worker: Session loaded                                                                                                      
20200823 172351 worker: Debug logging (off)                                                                                                
20200823 172351 worker: Device raw: (0:ALSA|1:Modius|i2s:none)                                                                              
20200823 172351 worker: Device cfg: (USB audio device|1|1|PCM|)                                                                            
20200823 172352 worker: ALSA volume set to ()                                                                                              
20200823 172352 worker: -- System                                                                                                          
20200823 172356 worker: Host name     (moode)                                                                                              
20200823 172356 worker: moOde release (6.4.2 2020-02-12)                                                                                    
20200823 172356 worker: Raspbian OS   (10.2)                                                                                                
20200823 172356 worker: Linux kernel  (4.19.97-v7+ #1293)                                                                                  
20200823 172356 worker: Platform      (Allo USBridge SIG [CM3+ Lite 1GB v1.0])                                                              
20200823 172356 worker: Architecture  (armv7l)                                                                                              
20200823 172356 worker: MPD version   (0.21.16)                                                                                            
20200823 172356 worker: CPU governor  (performance)                                                                                        
20200823 172356 worker: USB boot not available                                                                                              
20200823 172356 worker: File system not expanded yet                                                                                        
20200823 172356 worker: HDMI port off                                                                                                      
20200823 172356 worker: File check (OK)                                                                                                    
20200823 172356 worker: -- Network                                                                                                          
20200823 172356 worker: eth0 exists                                                                                                        
20200823 172356 worker: IP addr (192.168.88.25)                                                                                            
20200823 172357 worker: Netmask (255.255.255.0)                                                                                            
20200823 172357 worker: Gateway (192.168.88.1)                                                                                              
20200823 172357 worker: Pri DNS (119.40.106.35)                                                                                            
20200823 172357 worker: Domain  (192.168.88.1)                                                                                              
20200823 172357 worker: wlan0 does not exist                                                                                                
20200823 172357 worker: -- Audio                                                                                                            
20200823 172357 worker: ALSA outputs unmuted                                                                                                
20200823 172357 worker: ALSA card number (1)                                                                                                
20200823 172357 worker: Audio output (USB audio device)                                                                                    
20200823 172357 worker: Audio formats (S16_LE, S32_LE, S24_3LE)                                                                            
20200823 172357 worker: ALSA mixer name (PCM)                                                                                              
20200823 172357 worker: MPD volume control (software)                                                                                      
20200823 172357 worker: Hdwr volume controller exists                                                                                      
20200823 172357 worker: Max ALSA volume (90%)                                                                                              
20200823 172357 worker: -- Services                                                                                                        
20200823 172357 worker: Reset renderer active state                                                                                        
20200823 172358 worker: MPD conf updated                                                                                                    
20200823 172358 worker: MPD started                                                                                                        
20200823 172358 worker: MPD accepting connections                                                                                          
20200823 172358 worker: Configure MPD outputs                                                                                              
20200823 172359 worker: MPD output 1 ALSA default (on)                                                                                      
20200823 172359 worker: MPD output 2 ALSA crossfeed (off)                                                                                  
20200823 172359 worker: MPD output 3 ALSA parametric eq (off)                                                                              
20200823 172359 worker: MPD output 4 ALSA graphic eq (off)                                                                                  
20200823 172359 worker: MPD output 5 ALSA polarity inversion (off)                                                                          
20200823 172359 worker: MPD output 6 ALSA bluetooth (off)                                                                                  
20200823 172359 worker: MPD output 7 HTTP stream (off)                                                                                      
20200823 172359 worker: MPD crossfade (off)                                                                                                
20200823 172359 worker: Audio source (Local)                                                                                                
20200823 172359 worker: Output device (Local)                                                                                              
20200823 172359 worker: Airplay receiver started                                                                                            
20200823 172359 worker: UPnP renderer started                                                                                              
20200823 172359 worker: UPnP browser started                                                                                                
20200823 172359 worker: USB auto-mounter (udisks-glue)                                                                                      
20200823 172359 worker: -- Music sources                                                                                                    
20200823 172359 worker: USB sources (none attached)                                                                                        
20200823 172400 worker: NAS and UPnP sources (mountall initiated)                                                                          
20200823 172400 worker: -- Miscellaneous                                                                                                    
20200823 172400 worker: Saved MPD vol level (0)                                                                                            
20200823 172400 worker: Preamp volume level (0)                                                                                            
20200823 172400 worker: MPD volume level (34) restored                                                                                      
20200823 172400 worker: ALSA volume level ()                                                                                                
20200823 172400 worker: Auto-play (Off)                                                                                                    
20200823 172400 worker: LocalUI started                                                                                                    
20200823 172400 worker: Auto-shuffle service (Off)                                                                                          
20200823 172400 worker: Maintenance interval (3 hrs)                                                                                        
20200823 172400 worker: Screen saver activation (Never)                                                                                    
20200823 172400 worker: Session permissions (OK)                                                                                            
20200823 172400 worker: Watchdog started                                                                                                    
20200823 172400 worker: Ready                                                                                                              
20200823 204756 worker: Job shellinabox                              

Help!  Huh Confused 
Cheers,
Bob
Reply
#2
Hi, do you have mconnect's "gapless to renderer" option enabled? If so try disabling it, that can apparently cause this problem.

Edit: Tried this out myself and yes it seems that mconnect is doing something funky with the AAC stream that upmpdcli or mpd doesn't understand.
Mconnect doesn't have many settings either doesn't it, so there's not anything to tweak apart from the gapless setting. Trying different tracks and gapless on/off I get various errors...

Code:
Aug 23 13:23 : faad_decoder: error decoding AAC stream: Channel coupling not yet implemented
Aug 23 13:23 : player: played "http://192.168.1.5:18767/tidal/150226428.AAC"
Aug 23 13:23 : faad_decoder: error decoding AAC stream: Channel coupling not yet implemented
Aug 23 13:23 : player: played "http://192.168.1.5:18767/tidal/150638617.AAC"
Aug 23 13:25 : faad_decoder: error decoding AAC stream: Channel coupling not yet implemented
Aug 23 13:25 : player: played "http://192.168.1.5:18767/tidal/131462933.AAC"
Aug 23 13:30 : faad_decoder: error decoding AAC stream: Invalid number of channels
Aug 23 13:30 : player: played "http://192.168.1.5:18767/tidal/64510907.AAC"
Aug 23 13:31 : exception: Failed to decode http://192.168.1.5:18767/tidal/72656637.AAC
Aug 23 13:31 : exception: nested: Not an AAC stream
Aug 23 13:31 : player: played "http://192.168.1.5:18767/tidal/72656637.AAC"
Aug 23 13:31 : faad_decoder: error decoding AAC stream: Channel coupling not yet implemented
Aug 23 13:31 : player: played "http://192.168.1.5:18767/tidal/131462932.AAC"
Aug 23 13:31 : faad_decoder: error decoding AAC stream: Bitstream value not allowed by specificationAug 23 13:31 : player: played "http://192.168.1.5:18767/tidal/55602737.AAC"

BubbleUPnP has no such problems, can only assume that BubbleUPnP is doing something different with the source.
Reply
#3
(08-23-2020, 12:12 PM)vinnn Wrote: Hi, do you have mconnect's "gapless to renderer" option enabled? If so try disabling it, that can apparently cause this problem.

Gapless mode all disabled.

Also repro same issue with different DAC (hrt microstreamer) & "UAC2 fix" has no effect.
Reply
#4
Heh, was editing my post as you replied.
Yeah seems to be unique to mconnect outputting to upmpdcli (the UPnP renderer for mpd), it sends OK to Kodi and my Denon AVR (when mconnect eventually sees my devices on the network, really flaky!) but upmpdcli just doesn't support whatever mconnect's trying to send to it when sending AAC from Tidal.
Reply
#5
(08-23-2020, 12:55 PM)vinnn Wrote: Heh, was editing my post as you replied.
Yeah seems to be unique to mconnect outputting to upmpdcli (the UPnP renderer for mpd), it sends OK to Kodi and my Denon AVR (when mconnect eventually sees my devices on the network, really flaky!) but upmpdcli just doesn't support whatever mconnect's trying to send to it when sending AAC from Tidal.

Thanks Vinnn, really helping to narrow down the root cause of this.

Definitely upmpdcli not having whatever mconnect is serving.

On BubbleUPnP app the aac/m4a is converted to FLAC when playing on moOde (stream #1). Meanwhile, if playing to LS50W, it plays aac/m4a (stream #2) straight up.


Attached Files Thumbnail(s)
   
Reply
#6
I use BubbleUPnP regularly for playing Tidal and AAC definitely comes out as AAC.
You sure BubbleUPnP is not just playing FLAC because you have a Tidal HiFi subscription?

       
Reply
#7
To narrow the search for the guilty, I just dragged down a sample AAC-encoded file from Sony and added it to the minimserver I use as my Media Server for testing UPnP connectivity.

moOde 6.7.1/upmpdcli as Media Renderer and mConnectLite (on my Android Pixel 3a phone) as Control Point had no trouble playing this file.
 
At this point I suggest you post your issue to the upmpcli repo. It would seem to involve the Tidal plugin and mConnect.

Regards,
Kent
Reply


Forum Jump: