cannot play ogg over bluetooth - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7) +--- Thread: cannot play ogg over bluetooth (/showthread.php?tid=4250) Pages:
1
2
|
cannot play ogg over bluetooth - pbarsic - 10-03-2021 Moode Version: 7.4.1 (fresh install today) Computer: Raspberry Pi Zero-W Local DAC: Adafruit I2S Audio Bonnet Bluetooth Speaker: JBL Flip 4 Alternate Bluetooth Receiver: TaoTronics TT-BA07 I cannot play Ogg Vorbis files over a connected bluetooth speaker, but I can play MP3 and FLAC. Detailed description: I have three test audio files: FLAC, MP3, OGG VORBIS. I can play all three locally through the Adafruit I2S Audio Bonnet, so I know that all three are valid audio files. I can play the FLAC and MP3 through my bluetooth speaker, so I know that the signal chain is good. When I select the OGG VORBIS file, I expect it to play just like the MP3 and FLAC. However, I get no sound and this error pops up: ``` MPD error Failed to open "ALSA Bluetooth" (alsa); Error opening ALSA device "_audioout"; snd_pcm_hw_params() failed: Invalid argument ``` I have tried this on a fresh Moode install (prior to installing and configuring the I2S Bonnet), and I get the same results, so I don't think that configuration is causing any problems. I know that I could transcode every ogg formatted file to mp3, but that's a clumsy work-around. I'm not sure where to start debugging this. Do I need to rebuild the bluealsa with ogg vorbis support? Is that even the right place to start looking? RE: cannot play ogg over bluetooth - Tim Curtis - 10-03-2021 Turn on verbose logging in MPD Config, play an ogg file and then post the section in the log where the ogg file is processed. Code: cat /var/log/mpd/log RE: cannot play ogg over bluetooth - TheOldPresbyope - 10-03-2021 @pbarsic I just downloaded some rando .ogg sample file I found on the InterWeb (https://filesamples.com/samples/audio/ogg/Symphony%20No.6%20(1st%20movement).ogg) I'm listening to it right now via Bluetooth to my JBL Flip 2 speaker. RPi4B moOde 7.4.1 Audio Info reports Code: INPUT / OUTPUT Perhaps you should examine your .ogg files. What does the mediainfo utility report? For my sample file Code: pi@rpi4b2:/mnt/SDCARD/OggTest $ mediainfo 'Symphony No.6 (1st movement).ogg' Regards, Kent RE: cannot play ogg over bluetooth - TheOldPresbyope - 10-03-2021 @Tim Curtis Note the funny 'Encoded at f bit' in the Audio Info response I posted above. I haven't noticed that for other encodings. Regards, Kent RE: cannot play ogg over bluetooth - Tim Curtis - 10-03-2021 Lossy formats are a strange thing. Theres no concept of bit depth in a lossy compressed file. If you do commands below you should see an 'f' in the Format: field. This means "no bit depth". You will also notice that mediainfo on the file does not report a bit depth. Code: telnet localist 6600 IIRC the test ogg files I had would play but they spammed the MPD log with lots of weird errors. It's not surprising that MPD barfs when trying to output the decoded file over a Bluetooth connection. RE: cannot play ogg over bluetooth - pbarsic - 10-03-2021 (10-03-2021, 12:27 AM)Tim Curtis Wrote: Turn on verbose logging in MPD Config, play an ogg file and then post the section in the log where the ogg file is processed. Hi Tim, Thanks for your response. Here is the output: Code: Oct 02 21:05 : exception: Failed to open "ALSA Bluetooth" (alsa); Error opening ALSA device "_audioout"; snd_pcm_hw_params() failed: Invalid argument RE: cannot play ogg over bluetooth - pbarsic - 10-03-2021 Hi Kent, I've pasted the mediainfo output below. It looks quite similar to your random ogg. You mentioned audio info. Where did you find that information? Best, Paul Code: $ mediainfo /mnt/SDCARD/Music/The_Meters/The_Very_Best_of_the_Meters/01_-_Cissy_Strut.ogg RE: cannot play ogg over bluetooth - pbarsic - 10-03-2021 (10-03-2021, 01:05 AM)Tim Curtis Wrote: Lossy formats are a strange thing. Theres no concept of bit depth in a lossy compressed file. Hi Tim, The output indeed shows that there is no bitdepth reported with either method. I may end up writing that transcode script after all. Thanks for your help. Best, Paul Code: $ telnet localhost 6600 RE: cannot play ogg over bluetooth - pbarsic - 10-03-2021 @TheOldPresbyope your PI4B combined with the comment from @Tim Curtis, "It's not surprising that mpd barfs...", makes me wonder if perhaps my Pi Zero W just can't keep up with BT streaming + decoding, while the 4B can? The ZW is pretty wimpy compared to the 4B. RE: cannot play ogg over bluetooth - Tim Curtis - 10-03-2021 I'd convert the files to FLAC and not MP3 otherwise you will end up lossy compressing again an already lossy compressed file. |