Moode Forum
Flux FM stations start and then stop - 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: Flux FM stations start and then stop (/showthread.php?tid=4811)

Pages: 1 2


RE: Flux FM stations start and then stop - the_bertrum - 04-11-2022

(04-11-2022, 01:48 PM)TheOldPresbyope Wrote: Ah, but I was listening virtually---no error messages showed up in the log.

Of course, why listen when you can get the computer to do it for you Big Grin


RE: Flux FM stations start and then stop - Tim Curtis - 04-11-2022

Scala and JazzFM might make their stream App-only with a difficult to find playable URL. Maybe try out some of the other Jazz and Classical stations :-)


RE: Flux FM stations start and then stop - the_bertrum - 04-12-2022

(04-11-2022, 05:40 PM)Tim Curtis Wrote: Scala and JazzFM might make their stream App-only with a difficult to find playable URL. Maybe try out some of the other Jazz and Classical stations :-)

To be honest I don't rate either of them, but my wife likes Scala so that plays long enough through the day for the XRUN to be common.
FluxFM though, there's some great stuff on those feeds Smile


RE: Flux FM stations start and then stop - the_bertrum - 04-13-2022

So, after two days of running various radio stations on three of my players pretty continuously, I have these observations.
  • The XRUN occurs most often on my player that is trying to get wifi from inside a leather and wood box on the other side of a brick wall from the access point.
  • Often the XRUN is followed by a period of timeouts.
  • XRUN occurs occasionally on all players on some stations (I've seen it on FluxFM 80s, Scala, ClassicFM, AncientFM, Dandelion Radio)
  • Swapping to a shorter and more expensive Ethernet cable reduced the occurrence significantly.
  • There have been some cases where all three players hit the issue on the same station at the same time.
So, I think in my house, the issue is often a result of problems with my own internal networking, but occasionally is because of some issue in the feed itself.

Since improving the wifi to my most compromised player would be difficult, I have developed a little script that detects and ties to recover from the situation:

Code:
#!/bin/bash
#This is XRUN_restart.sh which restarts mpd playback if the last line of the mpd log contains "xrun" or the second last line contains "Failed to decode".
LASTLOG=$( tail -n 1 /var/log/mpd/log )
STATUS=$(mpc status)
if [[ $STATUS = *"playing"* && $LASTLOG = *"xrun"* ]];
then
#       echo "xrun matched"
       mpc stop
       mpc play
else
       LASTLOG=$( tail -n 2 /var/log/mpd/log )
       if [[  $STATUS != *"playing"* && $LASTLOG = *"Failed to decode"* ]];
       then
#               echo "timeout matched"
               mpc play
       fi
fi

I run this every second by using this:

Code:
#!/bin/bash
while sleep 1; do ./XRUN_restart.sh; done
Not the most elegant solution, but it works for me. I leave it here in case anyone else wants to have their radio automatically try to restart when it drops because of poor networks.


RE: Flux FM stations start and then stop - the_bertrum - 04-20-2022

(04-11-2022, 05:40 PM)Tim Curtis Wrote: Scala and JazzFM might make their stream App-only with a difficult to find playable URL. Maybe try out some of the other Jazz and Classical stations :-)

It looks like that day has arrived.  Both streams give an "Error 500" today unless I get a URL from the web player with a really long key in the post data.  That key then stops working after a few hours and requires a new one generating by using the web player again.


RE: Flux FM stations start and then stop - Tim Curtis - 04-20-2022

It's rare that non-commercial or independent Jazz and Classical stations make their streams harder to get considering their markets are already so small compared to other genres but JazzFM and Scala are owned and operated by the giant Bauer Media Group https://www.bauermedia.co.uk/brands.

Try some of the other excellent Jazz and Classical stations :-)


RE: Flux FM stations start and then stop - the_bertrum - 04-20-2022

(04-20-2022, 01:50 PM)Tim Curtis Wrote: It's rare that non-commercial or independent Jazz and Classical stations make their streams harder to get considering their markets are already so small compared to other genres but JazzFM and Scala are owned and operated by the giant Bauer Media Group https://www.bauermedia.co.uk/brands.

Try some of the other excellent Jazz and Classical stations :-)

Indeed, peppered with an increasing number of annoying adverts these days too.


RE: Flux FM stations start and then stop - Sniglar - 04-27-2022

(04-20-2022, 01:02 PM)the_bertrum Wrote:
(04-11-2022, 05:40 PM)Tim Curtis Wrote: Scala and JazzFM might make their stream App-only with a difficult to find playable URL. Maybe try out some of the other Jazz and Classical stations :-)

It looks like that day has arrived.  Both streams give an "Error 500" today unless I get a URL from the web player with a really long key in the post data.  That key then stops working after a few hours and requires a new one generating by using the web player again.

@the_bertrum these urls from http://radiofeeds.co.uk/ station search function (for UK & Irish stations only) have worked for me every time I've tried them over the last couple of days, so I'm assuming they will last longer than a few hours:

Jazz FM http://edge-bauerall-01-gos2.sharp-stream.com/jazzhigh.aac?aw_0_1st.skey=1650998937

Scala http://edge-bauerall-01-gos2.sharp-stream.com/scalahigh.aac?aw_0_1st.skey=1650896299

Unfortunately, I have no idea how long they will keep working.


RE: Flux FM stations start and then stop - the_bertrum - 04-28-2022

(04-27-2022, 03:57 PM)Sniglar Wrote:
(04-20-2022, 01:02 PM)the_bertrum Wrote:
(04-11-2022, 05:40 PM)Tim Curtis Wrote: Scala and JazzFM might make their stream App-only with a difficult to find playable URL. Maybe try out some of the other Jazz and Classical stations :-)

It looks like that day has arrived.  Both streams give an "Error 500" today unless I get a URL from the web player with a really long key in the post data.  That key then stops working after a few hours and requires a new one generating by using the web player again.

@the_bertrum these urls from http://radiofeeds.co.uk/ station search function (for UK & Irish stations only) have worked for me every time I've tried them over the last couple of days, so I'm assuming they will last longer than a few hours:

Jazz FM http://edge-bauerall-01-gos2.sharp-stream.com/jazzhigh.aac?aw_0_1st.skey=1650998937

Scala http://edge-bauerall-01-gos2.sharp-stream.com/scalahigh.aac?aw_0_1st.skey=1650896299

Unfortunately, I have no idea how long they will keep working.

Funky, I'll try them.  Thanks.

(although, maybe if I keep quiet my wife will wean herself off Scala and I'll be able to avoid adverts all day...)