Posts: 44
Threads: 11
Joined: Sep 2022
Reputation:
0
Hi,
I'm apologize for this certainly basic question for moode expert.
When I select mp3 file, everything is fine, ie music is well sent using bluetooth to my sound system which uses WTX-700
when I select ogg file, the message displayed is:
" Failed to open "ALSA Bluetooth" (alsa); Error opening ALSA device "_audioout"; snd_pcm_hw_params() failed: Invalid argument"
What is wrong?
Release Information
Platform Information
- RaspiOS: 11.5
- Linux kernel: 5.15.32-v7+ #1537
- Platform: Pi-3B 1.2 1GB
- Architecture: armv7l
- MPD version: 0.23.5
Thank you
kind regards
Phil
Posts: 1,396
Threads: 24
Joined: Jun 2022
Reputation:
49
(09-29-2022, 01:25 PM)Phil35 Wrote: Hi,
I'm apologize for this certainly basic question for moode expert.
When I select mp3 file, everything is fine, ie music is well sent using bluetooth to my sound system which uses WTX-700
when I select ogg file, the message displayed is:
"Failed to open "ALSA Bluetooth" (alsa); Error opening ALSA device "_audioout"; snd_pcm_hw_params() failed: Invalid argument"
What is wrong?
Release Information
Platform Information
- RaspiOS: 11.5
- Linux kernel: 5.15.32-v7+ #1537
- Platform: Pi-3B 1.2 1GB
- Architecture: armv7l
- MPD version: 0.23.5
Thank you
kind regards
Phil
What audio format is there in the OGG container:
On my moOde 8.0.2, the OGG/OGA supported ones are VORBIS, FLAC and OPUS (as you can check running mpv --version on your RPi)
I believe any codec other than these is not supported.
[vorbis] ogg oga
[oggflac] ogg oga
[opus] opus ogg oga
Cheers, Al
Posts: 44
Threads: 11
Joined: Sep 2022
Reputation:
0
Hi,
Thank you for your answer.
$ mpv --version
-bash: mpv: command not found
but mpd --version shows results:
----------
$ mpd --version
Music Player Daemon 0.23.5 (0.23.5)
Copyright 2003-2007 Warren Dukes <warren.dukes@gmail.com>
Copyright 2008-2021 Max Kellermann <max.kellermann@gmail.com>
This is free software; see the source for copying conditions. There is NO
warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Database plugins:
simple proxy
Storage plugins:
local
Decoders plugins:
[mad] mp3 mp2
[mpg123] mp3
[vorbis] ogg oga
[oggflac] ogg oga
[flac] flac
[opus] opus ogg oga
[dsdiff] dff
[dsf] dsf
[hybrid_dsd] m4a
[faad] aac
[wavpack] wv
[ffmpeg] 16sv 3g2 3gp 4xm 8svx aa3 aac ac3 adx afc aif aifc aiff al alaw amr anim apc ape asf atrac au aud avi avm2 avs bap bfi c93 cak cin cmv cpk daud dct divx dts dv dvd dxa eac3 film flac flc fli fll flx flv g726 gsm gxf iss m1v m2v m2t m2ts m4a m4b m4v mad mj2 mjpeg mjpg mka mkv mlp mm mmf mov mp+ mp1 mp2 mp3 mp4 mpc mpeg mpg mpga mpp mpu mve mvi mxf nc nsv nut nuv oga ogm ogv ogx oma ogg omg opus psp pva qcp qt r3d ra ram rl2 rm rmvb roq rpl rvc shn smk snd sol son spx str swf tak tgi tgq tgv thp ts tsp tta xa xvid uv uv2 vb vid vob voc vp6 vmd wav webm wma wmv wsaud wsvga wv wve rtp:// rtsp:// rtsps://
[pcm]
Filters:
soxr
Tag plugins:
id3tag
Output plugins:
shout null fifo pipe alsa httpd recorder
Encoder plugins:
null vorbis opus lame wave flac
Archive plugins:
[bz2] bz2
[zzip] zip
[iso] iso
Input plugins:
file io_uring archive alsa curl ffmpeg cdio_paranoia
Playlist plugins:
extm3u m3u pls xspf asx rss flac cue embcue
Protocols:
file:// alsa:// cdda:// ftp:// ftps:// gopher:// hls+http:// hls+https:// http:// https:// mmsh:// mmst:// rtmp:// rtmps:// rtmpt:// rtmpts:// rtp:// rtsp:// rtsps:// scp:// sftp:// smb:// srtp://
Other features:
avahi dbus epoll icu inotify systemd tcp un
----------
ogg is there, but it doesn't work.
When I read "What audio format is there in the OGG container:"
The ogg files were created using audacity software (latest version 3.2 audacity-linux-3.2.0-x64.AppImage) with default parameters.
How to inspect ogg files?
Thank you
Phil
Posts: 44
Threads: 11
Joined: Sep 2022
Reputation:
0
I found this: oggz-tools under linux. Vorbis seems here. isn't it ?
$ oggz-info "Many rivers to cross - face A.ogg"
Content-Duration: 00:03:04.214
Vorbis: serialno 1630527556
17223 packets in 891 pages, 19.3 packets/page, 1.252% Ogg overhead
Audio-Samplerate: 44100 Hz
Audio-Channels: 2
Posts: 14,008
Threads: 319
Joined: Mar 2018
Reputation:
571
Zip up one of the ogg files and PM a download link to myself and @ TheOldPresbyope. One of us will analyze it and see what might be happening.
Posts: 14,008
Threads: 319
Joined: Mar 2018
Reputation:
571
The OGG file plays fine MPD -> audio device.
Are you playing MPD -> Bluetooth -< Bluetooth speaker?
Posts: 6,212
Threads: 184
Joined: Apr 2018
Reputation:
250
09-29-2022, 09:29 PM
(This post was last modified: 09-29-2022, 09:30 PM by TheOldPresbyope.)
@ Phil35
Hi, Phil.
Got your file. Off the top of my head, it looks good and it plays fine in moOde 8.2.0 using my Creative Tech USB-W2 audio adapter (which transmits aptX Bluetooth to my Sennheiser headphones; it is seen by Linux as a audio device, not a Bluetooth device). All default audio settings. Here's the audio info provided by moOde during playback
Code: INPUT / OUTPUT
Source SDCARD/Many rivers to cross - face A.ogg
Encoded at f bit, 44.1 kHz, Stereo Vorbis
Decoded to 24 bit, 44.1 kHz, Stereo,
Output rate 16 bit, 48 kHz, Stereo, 1.536 Mbps
Output mode ALSA Default (plughw)
Output chain MPD -> plughw -> Device
Loopback off
The command line tool mediainfo tells much the same story.
...BUT...
when I enable the moOde Bluetooth renderer, connect to a JBL Bluetooth speaker, and switch MPD audio output to Bluetooth, I get the same error as you do.
Ah, before enabling the Bluetooth renderer try going to MPD settings and enable SoX Resampling with 16 bit depth. That did do the trick for me...just don't ask me why it works.  (I believe it has to do with that "f bit" encoding. I promise I'll figure it out...eventually.)
Fascinating track, by the way. I've never heard it before but I love it.
Regards,
Kent
Posts: 14,008
Threads: 319
Joined: Mar 2018
Reputation:
571
I had the same result but forgot about the SoX workaround. AFAIK this issue came up in the early days for OGG format.
The conf is specifying plughw which should auto convert to 16 bit but for some reason it's not liking OGG.
Code: pi@moode:~ $ cat /etc/bluealsaaplay.conf
# bluealsaaplay.conf
AUDIODEV=plughw:0,0
BUFFERTIME=500000
Maybe just convert the OGG's to some other format that works with Bluetooth -> speaker.
Posts: 44
Threads: 11
Joined: Sep 2022
Reputation:
0
09-30-2022, 03:39 PM
(This post was last modified: 09-30-2022, 03:49 PM by Phil35.)
Hi @ Tim Curtis & Hi @ TheOldPresbyope ,
First thank you for your time, I really appreciate.
and for the tips found, I will test on monday, I cannot test before / sorry.
The overall configuration is:
[ Raspberry Pi 3 Model B Rev 1.2 ] -> [ bluetooth of the raspberry ] --> [ WTX-700 (see https://www.cobra.fr/advance-wtx700-p-47299) ] [ connected to hi-fi system ]
What do you think about, what is your suggestion about:
buy an USB bluethooth device like "Creative Tech USB-W2" or still use the bluetooth from the raspberry ?
(for example I found W3 and W4 : https://us.creative.com/wfh/#fix-your-audio, W2 is no more available now)
Yes the song is great ... 1969 however but still so good.
I am recording old old vinyl disks 45t and 33t :-) . I guest ogg was better than mp3, but may be I wrong.
Kind regards
Phil
Posts: 132
Threads: 18
Joined: Apr 2021
Reputation:
4
Just a tip, but when you digitalize old music media like records etc, best is then to rip to flac. In that way you preserve highest audio quality. If needed you can then always make MP3, ogg, whatever needed out of it later.
|