12-30-2018, 05:11 PM
(12-30-2018, 09:43 AM)Sniglar Wrote: I think I've just bumped into the same issue with WMA files over bluetooth (Pi0, Pimoroni pHatDAC and AKG C50BT headphones on Moode 4.4)
Everything works well through wired connection but Moode refuses to play WMA files over a bluetooth connection showing this error:
MPD error
Failed to open "ALSA bluetooth" [alsa]; Error opening ALSA device "btstream"; snd_pcm_hw_params() failed: Invalid argument
Both Mp3 and FLAC play fine over Moode via bluetooth
cat /var/log/mpd/log
Code:Dec 30 08:49 : player: played "SDCARD/Linn Christmas 2015/07 - Sophisticated Lady.flac"
Dec 30 08:49 : exception: Failed to open "ALSA bluetooth" [alsa]
Dec 30 08:49 : exception: nested: Error opening ALSA device "btstream"
Dec 30 08:49 : exception: snd_pcm_hw_params() failed: Invalid argument
Dec 30 08:49 : exception: Failed to open "ALSA bluetooth" [alsa]
Dec 30 08:49 : exception: nested: Error opening ALSA device "btstream"
Dec 30 08:49 : exception: snd_pcm_hw_params() failed: Invalid argument
Dec 30 08:49 : player: problems opening audio device while playing "NAS/Musikbank/The Waterboys (FLAC)/Fisherman's Blues/01 Fisherman's Blues.wma"
Dec 30 08:49 : player: played "NAS/Musikbank/The Waterboys (FLAC)/Fisherman's Blues/01 Fisherman's Blues.wma"
Dec 30 08:49 : exception: Failed to open "ALSA bluetooth" [alsa]
Dec 30 08:49 : exception: nested: Error opening ALSA device "btstream"
Dec 30 08:49 : exception: snd_pcm_hw_params() failed: Invalid argument
Dec 30 08:49 : exception: Failed to open "ALSA bluetooth" [alsa]
Dec 30 08:49 : exception: nested: Error opening ALSA device "btstream"
Dec 30 08:49 : exception: snd_pcm_hw_params() failed: Invalid argument
Dec 30 08:49 : player: problems opening audio device while playing "NAS/Musikbank/The Waterboys (FLAC)/Fisherman's Blues/01 Fisherman's Blues.wma"
Dec 30 08:49 : exception: Failed to open "ALSA bluetooth" [alsa]
Dec 30 08:49 : exception: nested: Error opening ALSA device "btstream"
Dec 30 08:49 : exception: snd_pcm_hw_params() failed: Invalid argument
Dec 30 08:49 : exception: Failed to open "ALSA bluetooth" [alsa]
Dec 30 08:49 : exception: nested: Error opening ALSA device "btstream"
Dec 30 08:49 : exception: snd_pcm_hw_params() failed: Invalid argument
Dec 30 08:49 : exception: Failed to open "ALSA bluetooth" [alsa]
Dec 30 08:49 : exception: nested: Error opening ALSA device "btstream"
Dec 30 08:49 : exception: snd_pcm_hw_params() failed: Invalid argument
Dec 30 08:49 : exception: Failed to open "ALSA bluetooth" [alsa]
Dec 30 08:49 : exception: nested: Error opening ALSA device "btstream"
Dec 30 08:49 : exception: snd_pcm_hw_params() failed: Invalid argument
Could I ask if this is an issue with the BT driver or is there a solution/setting I can apply in Moode?
@Sniglar
I just downloaded a WMA file from the Web and played it over BT from my moOde r4.4 on RPi3B+ to a JBL Flip 2 BT speaker.
The trouble with generic designators "WMA" and "AAC" as designators is that they don't reveal enough about the file's content. (I'm ignoring the fact that this WMA file is actually contained in the Microsoft Advanced System Format (ASF)). Microsoft has four different WMA encoders, for example.
Here's what "mediainfo" says about my WMA file
Code:
pi@moode:/media/KAR04 $ mediainfo BachCPE*
General
Complete name : BachCPE_SonataAmin_1.wma
Format : Windows Media
File size : 596 KiB
Duration : 2 min 27 s
Overall bit rate mode : Constant
Overall bit rate : 33.0 kb/s
Maximum Overall bit rate : 32.6 kb/s
Album : Internet Samples
Track name : Sonata in aMinor
Track name/Position : 1
Performer : Samantha Moore
Encoded date : UTC 2004-05-12 11:13:13.921
Name : Kent's test of the Name tag
Audio
ID : 1
Format : WMA
Format version : Version 2
Codec ID : 161
Codec ID/Info : Windows Media Audio
Description of the codec : Windows Media Audio 9 - 32 kbps, 22 kHz, stereo 2-pass CBR
Duration : 2 min 27 s
Bit rate mode : Constant
Bit rate : 32.0 kb/s
Channel(s) : 2 channels
Sampling rate : 22.05 kHz
Bit depth : 16 bits
Stream size : 578 KiB (97%)
Language : English (United States)
and here's the output from moOde's "Audio info" while playing this file:
Code:
Audio Information
INPUT PROCESSING
Source: USB/KAR04/BachCPE_SonataAmin_1.wma
Encoded at: VBR compression
Decoded to: 24 bit, 22.05 kHz, Stereo, 32 kbps
DSP OPERATIONS
Resampling: n/a
Crossfeed: n/a
Equalizer: n/a
Crossfade: n/a
Other: n/a
Chip options: none
Volume ctl: Software (MPD 32-bit float with dither)
OUTPUT STREAM
Destination: Bluetooth
Encoded at: 16 bit, 44.1 kHz, Stereo, 1.411 mbps
AUDIO DEVICE
Device: On-board audio device
Chip: Broadcom SoC
Interface: SOC
Can you install mediainfo or some similar diagnostic tool and show us the output I showed for one of your WMA files which fails to play?
Regards,
Kent