![]() |
Radio stations problem - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: Community (https://moodeaudio.org/forum/forumdisplay.php?fid=18) +--- Forum: General Discussion (https://moodeaudio.org/forum/forumdisplay.php?fid=21) +--- Thread: Radio stations problem (/showthread.php?tid=5074) |
RE: Radio stations problem - Tim Curtis - 02-15-2023 Yes, I can repro. This station stream cuts out, disconnects and is very unstable. https://stream.and-stuff.nl:8443/riverside I'd say it's an issue with the broadcaster. RE: Radio stations problem - fdealexa - 02-15-2023 (02-15-2023, 11:01 PM)Tim Curtis Wrote: Yes, I can repro. This station stream cuts out, disconnects and is very unstable. Hi Tim, thanks for the answer, but with the browser I tried for more than an hour and I didn't have any interruptions, moreover my doubt is confirmed by the fact that every 30 seconds exactly the problem occurs, and it would always seem when some information changes. Doesn't that bother you? Thanks again and regards, Francesco RE: Radio stations problem - Tim Curtis - 02-15-2023 (02-15-2023, 11:21 PM)fdealexa Wrote:(02-15-2023, 11:01 PM)Tim Curtis Wrote: Yes, I can repro. This station stream cuts out, disconnects and is very unstable. It plays in Chrome just fine but not in Safari. Safari thinks its a download and wants permission :-0 MPD log shows its using the oggflac plugin so maybe its its a bug in the plugin? You could try posting in the MPD Git repo. Most stations just use MP3, AAC or FLAC. I've not run across one that uses Vorbis/OggFlac. Feb 15 18:25 : playlist: play 71:"https://stream.and-stuff.nl:8443/riverside" Feb 15 18:25 : decoder_thread: probing plugin vorbis Feb 15 18:25 : decoder_thread: probing plugin oggflac Feb 15 18:25 : decoder: audio_format=48000:24:2, seekable=false Feb 15 18:25 : alsa_output: opened _audioout type=COPY Feb 15 18:25 : alsa_output: buffer: size=64..65536 time=1333..1365334 Feb 15 18:25 : alsa_output: period: size=32..32768 time=666..682667 Feb 15 18:25 : alsa_output: default period_time = buffer_time/4 = 500000/4 = 125000 Feb 15 18:25 : alsa_output: format=S24_LE (Signed 24 bit Little Endian) Feb 15 18:25 : alsa_output: buffer_size=24000 period_size=6000 RE: Radio stations problem - fdealexa - 02-15-2023 Thanks again, Tim. Good night(have it is 1 am), Francesco RE: Radio stations problem - TheOldPresbyope - 02-16-2023 @fdealexa Like Tim said, this station is exercising the MPD oggflac plugin. One trick to get more info about these radio streams is to examine the server response when connection is first made. Here's one way to do that using curl: Code: pi@m825p3a:~ $ curl -i https://stream.and-stuff.nl:8443/riverside Here I've exploited the binary-output warning/exit feature of curl to avoid actually downloading the (endless) output. Regards, Kent RE: Radio stations problem - fdealexa - 02-17-2023 Thanks Kent, I have tryed to download a couple of minutes, but I am not able to interpret the generated file. Have you any advice? Best regards and thanks again, Francesco RE: Radio stations problem - TheOldPresbyope - 02-17-2023 (02-17-2023, 12:10 AM)fdealexa Wrote: Thanks Kent, I have no experience parsing an ogg container. As a hack I captured the first 100MB of the stream and ran several LInux utilities on it. First, just a quick look at the beginning of the captured file using the od -c command: Code: 0000000 O g g S \0 002 \0 \0 \0 \0 \0 \0 \0 \0 � � This octal dump is encouraging: it begins with the magic "OggS" as it should. (see the od docs to understand the funny glyph here.) Let's pull out the strings. Here's the beginning output from the strings command: Code: OggS That's beginning to look to like the format defined by the FLAC spec although not in detail. This pattern repeats again and again in the stream, apparently before each successive track: Code: OggS My primitive analysis doesn't reveal if there are any other metadata elsewhere in the stream nor is it a practical guide to parsing the stream on the fly. For that you need the OGG and FLAC specs. The competing ShoutCast server has an XML schema defined for metadata but I can't find a comparable document for IceCast. Hope this brief exploration helps. Regards, Kent RE: Radio stations problem - fdealexa - 02-22-2023 Hi Kent, Thank you so much. I researched and found 97 radio stations in FLAC: 21 of them use metadata and 15 fail. The fail (except 1) is: when the track is changed the system (rpi) no longer plays even the "state" in the mpd status remains on PLAY. If playback is manually interrupted, the "state" changes and when it returns to play (manually) everything continues fine (with the new TITLE) until the next song change. Below you can find a short table with the most important information. I think we need to submit an issue to the MPD github - what's your opinion? [attachment=3183] Thanks again, sorry for the delay in responding (the search took a long time) and best regards, Francesco RE: Radio stations problem - the_bertrum - 02-23-2023 (02-22-2023, 11:25 PM)fdealexa Wrote: Hi Kent, That's some diligent research, well done! RE: Radio stations problem - fdealexa - 02-23-2023 Thanks Robert, Obviously those radio stations don't change my life, but I'm following this issue to reach a product with as few problems as possible. Best regards and thanks again, Francesco |