Thank you for your donation!


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


Strange problem with a radio streaming aac
#1
There is a radio station I listen to in my kitchen which has right now two different urls:
https://shoutcast.ccma.cat/ccma/catalunyaradio.mp3 which is mp3 and works correctly, and
https://shoutcast.ccma.cat/ccma/catalunyaradioHD.mp3 which is *not* mp3 but aac, and does not work with moodeaudio

I'm wondering what the problem might be, as this second url works perfectly just opening it with any web browser, or with vlc, and gives much better quality than the first one. Any idea? any log I should look at?
Thanks a lot.
Reply
#2
A quick test and MPD decodes the stream as MP3 using the mad plugin https://mpd.readthedocs.io/en/latest/plugins.html#mad but I'm not getting any audio. This would suggest there is some characteristic of the stream that MPD is not able to handle.

Code:
Dec 30 08:57 : client: [23] process command "play 52"
Dec 30 08:57 : playlist: play 52:"https://shoutcast.ccma.cat/ccma/catalunyaradioHD.mp3"
Dec 30 08:57 : curl: icy-metaint=1024
Dec 30 08:57 : decoder_thread: probing plugin mad
Dec 30 08:57 : decoder: audio_format=24000:24:2, seekable=false
.
.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
Sorry, I wrote vorbis but meant AAC.
If it is using the mad plugin instead of the faad, it means that it is incorrectly detecting the stream as mp3 instead of aac and, of course, cannot decode it correctly.
I would think that the url ending in ".mp3" is the cause of the problem (really have no idea why they use this url). However, The response headers correctly identify its Content-Type as "audio/aac"
Reply
#4
You could try posting an issue in the MPD Git repo https://github.com/MusicPlayerDaemon/MPD/issues but in all likelihood the problem is in the stream itself.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
(12-30-2022, 03:05 PM)Tim Curtis Wrote: You could try posting an issue in the MPD Git repo https://github.com/MusicPlayerDaemon/MPD/issues but in all likelihood the problem is in the stream itself.

Thanks for all your info, I will try to post an issue.
Definitely, the problem is in the url name. As a workaround, in a web server in my local network I create an url "catRadio.aac" that just redirected to the original one, and accessing this new url (which ends in .aac), the radio stream plays perfectly :-)
Reply


Forum Jump: