Moode Forum
Strange problem with a radio streaming aac - 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: Strange problem with a radio streaming aac (/showthread.php?tid=5273)



Strange problem with a radio streaming aac - canuda10 - 12-30-2022

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.


RE: Strange problem with a radio streaming vorbis - Tim Curtis - 12-30-2022

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
.
.



RE: Strange problem with a radio streaming vorbis - canuda10 - 12-30-2022

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"


RE: Strange problem with a radio streaming aac - Tim Curtis - 12-30-2022

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.


RE: Strange problem with a radio streaming aac - canuda10 - 01-04-2023

(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 :-)