Re: [SlimDevices: Plugins] BBC Sounds Dropping out
Thank you all for the suggestions and help, in the last week I have been playing with as many variables as I can think of from individual players to groups to synchronisation and updating software where possible and necessary. In summary I can find no consistent reason for the occurrence it still happens but not at predictable times or frequency. It is at the level of minor irritant not major problem will keep working on it. Anyway thank for your efforts and the work you all do on this project. Phil comeng's Profile: http://forums.slimdevices.com/member.php?userid=63874 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
comeng wrote: > Subsequent to above is there anyway I can monitor the state/status of > synchronsiation between players to see if I can find and fix the problem > child > Maybe this should be a new thread? Phillipe has provided 'an explanation here' (https://forums.slimdevices.com/showthread.php?113621-Player-Synchronisation-and-Seeking-Protocol-Handler-Support=1003165=1#post1003165). That makes perfect sense, and explains what is happening. One of your players is becoming disconnected from LMS (for an unknown reason) and when it is coming back online it is getting all the other synchronised players to restart at the point it was disconnected. *BBC Sounds Plugin Wiki* : https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin/wiki expectingtofly's Profile: http://forums.slimdevices.com/member.php?userid=63263 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
Subsequent to above is there anyway I can monitor the state/status of synchronsiation between players to see if I can find and fix the problem child Maybe this should be a new thread? comeng's Profile: http://forums.slimdevices.com/member.php?userid=63874 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
Had reached the conclusion there was some disparity on the timings between the stream and the players. first thought was to increase Min Synch adjustment to 5/6 seconds but max allowed appears to be 1000 ms Have been thinking about this and looking at previous post, and at screen 32863 and concluded that maybe in my case I do not need synchronisation of a live radio feed because the chances of encountering any 2 systems simultaneously are low and the need to rewind is one I would be unlikely to use therefore I am going to set the Maintain Synchronisation to off and then see what happens. Maybe the options here should be altered to Maintain Synchronisation while playing Maintains Synchronisation while playing except Live Feed Radio No synchronisation +---+ |Filename: Capture.JPG | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=32863| +---+ comeng's Profile: http://forums.slimdevices.com/member.php?userid=63874 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
Would the setting here (and maybe the box below) have any relevance ? 32856 ronnie +---+ |Filename: sync.png | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=32856| +---+ Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
comeng wrote: > OK > > As usual spoke too soon had two incidents today at 14:08 and 15:14 I > attach a log file > The incident occurred as follows > Sound stops > On the player section (top 25% of right hand half of the screen) the > "running time" counter keeps counting up for a few seconds estimate 5/6 > then jumps back to start value, this reverse is duplicated on the "time > remaining" counter. > The sound resumes after several repeats of the above. > Have also noticed the "track playing text" in the top 25% is correct but > track playing in bottom 75% is not I've now had a proper look at your log. Essentially, 4 times during that log your players are asking the live stream to be rewound by a few seconds by calling a seek to a specific place in the stream. Sometimes this causes a gap, sometimes it doesn't but it would always cause an audible hiccup. I'm guessing that is all part of the synchronisation logic. However, this all part of the problem. The BBC Sounds seeking logic is only accurate within 6.4 seconds (it does it by chunks that the audio is provided in). The live rewind is meant to be a convenient and useful way to rewind live radio, not a facility to jump to a specific point in time accurate within a micro second. It is just not intended for that purpose. I've no idea how the synch logic works and when it uses the seek facility to keep it in synch. I'm guessing that one of your players is running ahead or behind your other players for some reason, but I guess it wouldn't need to do it by much to cause a problem over the hours you are synchronising live radio for. That is probably normal. There may be a setting I should set to prevent the seeking facility being used by the synch logic, I'll ask in the developer forum. But I hope that explains the problem to you. *BBC Sounds Plugin Wiki* : https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin/wiki expectingtofly's Profile: http://forums.slimdevices.com/member.php?userid=63263 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
philippe_44 wrote: > > > Re HTTP 1.1 and DNS, I've made some changes recently on my CPlus and YT > plugin related to that. The Cplus needs a socks proxy to work and doing > HTTPS + socks with over dash/mpd was just way to slow, with a DNS query > for each chunk that was leading to 2 or 3 redirection (I guess for their > load balancer). An HTTPS negotiation on top of every redirection was > just killing it. So I decided to move to HTTP 1.1 (that you need to set > explicitly) but that was not enough due to redirection, so I also had to > do this funny thing of keeping track of the redirected base url between > every chunk request and querying the server with an url made of base + > chunk's modified part (and move back to the full chunk's url if call > fails). That allowed the 1.1 to really work and the connection to stay > open all the time, and avoid the (3) SSL negotiation for every chunk. Thank you for the info!, I'll take a look and see if I can move the BBC sounds over to the HTTPS stream. . *BBC Sounds Plugin Wiki* : https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin/wiki expectingtofly's Profile: http://forums.slimdevices.com/member.php?userid=63263 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
expectingtofly wrote: > > bpa wrote: > > Is the plugin not using HTTP 1.1 for DASH chunks where there is only one > > TCP connection for multiple GETs - this hugely reduces the load on > > processor (i.e. only one DNS call for a live stream, one TCP open per > > live stream - not per chunk) and packets response times.> It is just using > > the standard LMS SimpleAsyncHTTP. I see no reason > to change that part (it shares the same dash processing logic as > Phillipe's You tube plugin). I've no idea if this standard LMS > operation sets the protocol to http 1.1, but I doubt it. > > I'm seeing no load issues. I've load tested on a very low powered > raspberry pi model 1b. In fact, BBC Sounds streaming uses half as > much cpu load as the BBC IPlayer streaming I noticed (presumably that > is because it is using AnyEvent::HTTP which is not optimised for > LMS?).[/QUOTE> > > Re HTTP 1.1 and DNS, I've made some changes recently on my CPlus and > YT plugin related to that. The Cplus needs a socks proxy to work and > doing HTTPS + socks with over dash/mpd was just way to slow, with a > DNS query for each chunk that was leading to 2 or 3 redirection (I > guess for their load balancer). An HTTPS negotiation on top of every > redirection was just killing it. So I decided to move to HTTP 1.1 > (that you need to set explicitly) but that was not enough due to > redirection, so I also had to do this funny thing of keeping track of > the redirected base url between every chunk request and querying the > server with an url made of base + chunk's modified part (and move back > to the full chunk's url if call fails). That allowed the 1.1 to really > work and the connection to stay open all the time, and avoid the (3) > SSL negotiation for every chunk. LMS 7.9 on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, Riva 1 & 3 philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
comeng wrote: > I am feeling particularly thick today so I am trying to get a simplistic > view on this situation > My thinking (which maybe wrong) was the LMS server says to each player > here is what you are going to play, then says start now. After which the > server steps back and allows the players to do the business just > monitoring what is coming down the stream for display on the web > interface > Now the implication is that there is feedback from the players to the > server saying I have just played bit x or bit y or bit z and it maybe > for some reason these are not identical and therefore something either > the server or the "master" player says resynchronise so the leading > player stops playing for a millisecond or two to let the others catch > up. Or the slowest one has to jump forward and if the error gets too > great then then server says restart. > Or alternatively the server streams the feed to each player separately > and the server is continuously calling for more data to pump to the > players and if one player cannot accept a package from the server for > whatever reason the server calls a halt. > Whichever scenario is appropriate then variation for synchronisation > should be in milliseconds and not seconds running into a minutes. > So my thought is to carry out a test of firstly each Pi in turn > unsynchronised to see if there is an issue with a particular Pi. > Then synchronise 2 Pi's out of 3 using all 3 possible combinations 1-2, > 1-3, 2-3 > Then go back to all 3 Pi's > > Does this seem to be a reasonable suggestion on how toidentify the > problem area > > Phil I'm no expert in this area, but I believe that it tries to keep the 3 players in synch and when it gets to the point where one of them has got ahead of the others it tries to seek back in the stream. On the BBC Sounds live streams, although they support seeking, thinking about it, it won't be able to get the data fast enough without causing a drop out for all the players. There is probably something I should set to prevent that happening, (probably not allow seeking when players are synched) I'll have a dig around to find out what should happen. *BBC Sounds Plugin Wiki* : https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin/wiki expectingtofly's Profile: http://forums.slimdevices.com/member.php?userid=63263 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
I am feeling particularly thick today so I am trying to get a simplistic view on this situation My thinking (which maybe wrong) was the LMS server says to each player here is what you are going to play, then says start now. After which the server steps back and allows the players to do the business just monitoring what is coming down the stream for display on the web interface Now the implication is that there is feedback from the players to the server saying I have just played bit x or bit y or bit z and it maybe for some reason these are not identical and therefore something either the server or the "master" player says resynchronise so the leading player stops playing for a millisecond or two to let the others catch up. Or the slowest one has to jump forward and if the error gets too great then then server says restart. Or alternatively the server streams the feed to each player separately and the server is continuously calling for more data to pump to the players and if one player cannot accept a package from the server for whatever reason the server calls a halt. Whichever scenario is appropriate then variation for synchronisation should be in milliseconds and not seconds running into a minutes. So my thought is to carry out a test of firstly each Pi in turn unsynchronised to see if there is an issue with a particular Pi. Then synchronise 2 Pi's out of 3 using all 3 possible combinations 1-2, 1-3, 2-3 Then go back to all 3 Pi's Does this seem to be a reasonable suggestion on how toidentify the problem area Phil comeng's Profile: http://forums.slimdevices.com/member.php?userid=63874 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
slartibartfast wrote: > I just noticed 3 or 4 "dropouts" in a row on Radio 2 live. > > Sent from my Pixel 3a using Tapatalk Not sure if this is related but this entry in the server log must have been around the time of the drop outs Code: [21-01-05 10:45:57.6426] Plugins::BBCSounds::M4a::get_next_atom (256) Atom size zero slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
comeng wrote: > Ok my system consists of one Pi 3 running PcP LMS and 3 Pi 2's all > running PcP and Squeezelite these 3 being synchronised on Sunday and > Monday I ran for extended periods with this configuration with no loss > of sound output on either listen live or listen again. > Today I have had the 2 (now 3) incidents as I was walking between the > two rooms I heard both go off simultaneously > I get the theory of the players trying to resynchronise as one to > investigate not sure how but will have a think, also this never happens > with music streamed from my NAS. > The fact that the identical situation occurs each time suggests a common > trigger and the only thing I can think of at the moment is internet > connection either at the BBC end, in between (ISP or Openreach) or with > my router/modem. > Is it a load problem somewhere that can occur at random times I wouldn't say that is the problem, that would show up in the logs there are no delays in getting data from within the plugin, all is working well. It is the player that is initiating the seek, which is what the logs are showing. The BBC Sounds live streams are a bit unusual, in that they are seekable. Most live streams aren't, so they can rewind, which I believe the synch processing uses to keep players in synch. I haven't don't much testing of synched players on the BBC streams, so there maybe something I can do to prevent that. *BBC Sounds Plugin Wiki* : https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin/wiki expectingtofly's Profile: http://forums.slimdevices.com/member.php?userid=63263 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
Ok my system consists of one Pi 3 running PcP LMS and 3 Pi 2's all running PcP and Squeezelite these 3 being synchronised on Sunday and Monday I ran for extended periods with this configuration with no loss of sound output on either listen live or listen again. Today I have had the 2 (now 3) incidents as I was walking between the two rooms I heard both go off simultaneously I get the theory of the players trying to resynchronise as one to investigate not sure how but will have a think, also this never happens with music streamed from my NAS. The fact that the identical situation occurs each time suggests a common trigger and the only thing I can think of at the moment is internet connection either at the BBC end, in between (ISP or Openreach) or with my router/modem. Is it a load problem somewhere that can occur at random times comeng's Profile: http://forums.slimdevices.com/member.php?userid=63874 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
comeng wrote: > OK > > As usual spoke too soon had two incidents today at 14:08 and 15:14 I > attach a log file > The incident occurred as follows > Sound stops > On the player section (top 25% of right hand half of the screen) the > "running time" counter keeps counting up for a few seconds estimate 5/6 > then jumps back to start value, this reverse is duplicated on the "time > remaining" counter. > The sound resumes after several repeats of the above. > Have also noticed the "track playing text" in the top 25% is correct but > track playing in bottom 75% is not32841 I can't see any obvious bbc sounds errors in that log. It seems to be streaming away quite happly At 14:08 and 15:14 I can see that the stream was paused and woken up again, hence the seek. Essentially you did a rewind on the stream. The player stopped asking for data for a minute and a half then initiated a "seek". Did your player go into standby for a minute? Or is it lots of synched players gradually getting out of synch and trying to correct themselves by rewinding? Code: 21-01-05 14:07:29.2126] Plugins::BBCSounds::ProtocolHandler::sysread (679) Need More data, we have 14 [21-01-05 14:07:29.2137] Plugins::BBCSounds::ProtocolHandler::sysread (687) Data not yet available for 251539946 now 1609855649.21303 edge 1609855655.10386 [21-01-05 14:08:43.2777] Plugins::BBCSounds::ProtocolHandler::getSeekData (323) Trying to seek 441.458 seconds for offset [21-01-05 14:08:43.2809] Plugins::BBCSounds::ProtocolHandler::close (244) close called [21-01-05 14:08:43.2821] Plugins::BBCSounds::ProtocolHandler::close (257) Ensuring live stream closed [21-01-05 14:08:43.2884] Plugins::BBCSounds::ProtocolHandler::new (147) Proposed Seek 441.458 - offset 441.458 [21-01-05 14:08:43.2894] Plugins::BBCSounds::ProtocolHandler::new (166) Seeking to 441.458 edge 1609855719.10386 maximum start time 519.10385594368 [21-01-05 14:08:43.2899] Plugins::BBCSounds::ProtocolHandler::new (185) Remote Stream Start Time = 1609855281.83164 [21-01-05 14:08:43.2904] Plugins::BBCSounds::ProtocolHandler::new (191) url: http://as-dash-uk-live.akamaized.net/pool_904/live/uk/bbc_radio_two/bbc_radio_two.isml/dash/ master: sounds://_LIVE_bbc_radio_two offset: 441.458 *BBC Sounds Plugin Wiki* : https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin/wiki expectingtofly's Profile: http://forums.slimdevices.com/member.php?userid=63263 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
OK As usual spoke too soon had two incidents today at 14:08 and 15:14 I attach a log file The incident occurred as follows Sound stops On the player section (top 25% of right hand half of the screen) the "running time" counter keeps counting up for a few seconds estimate 5/6 then jumps back to start value, this reverse is duplicated on the "time remaining" counter. The sound resumes after several repeats of the above. Have also noticed the "track playing text" in the top 25% is correct but track playing in bottom 75% is not comeng's Profile: http://forums.slimdevices.com/member.php?userid=63874 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
comeng wrote: > OK > > So done various tests as my base I ran 8 hours solid music streaming > from my NAS to the 3 synchronised Raspberry Pi's and as expected I got > no drop outs or any other issues so internal networks and devices appear > to be functioning correctly, then did the same with Listen Again and had > no issues, doing the same with Live feed Radio 2 I had one occasion of > loss of sound of a couple of seconds with nothing showing in the log > files and at this level it is not even a minor irritant. > So what has changed and the only thing I can identify is upgrading to > Sounds 2.9.1. > The one thing I did notice was that the log file when on Live appeared > very similar to that of Listen Again whereas previously the number of > requests per second was significantly different > I will keep monitoring and get back to you. > If it would help I can send log files if anyone cares to specify what > they would like to see. > > Thank you for help and as always in such circumstances I am frustrated > that I cannot come up with an explanation or put my finger on one issue > that could be further investigated. > > PhilI just noticed 3 or 4 "dropouts" in a row on Radio 2 live. Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
bpa wrote: > From sometime in 2019 LMS SimpleAsynchHTTP got HTTP 1.1/ support ( I > think via keep-alive) > > That's good to hear, as I suspect I BBC Sounds will need to switch to https streaming at some point, which will require HTTP 1.1, I believe, to stop the TLS negotiation every time. *BBC Sounds Plugin Wiki* : https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin/wiki expectingtofly's Profile: http://forums.slimdevices.com/member.php?userid=63263 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
expectingtofly wrote: > It is just using the standard LMS SimpleAsyncHTTP. I see no reason to > change that part (it shares the same dash processing logic as Phillipe's > You tube plugin). I've no idea if this standard LMS operation sets the > protocol to http 1.1, but I doubt it. > > I'm seeing no load issues. I've load tested on a very low powered > raspberry pi model 1b. In fact, BBC Sounds streaming uses half as much > cpu load as the BBC IPlayer streaming I noticed (presumably that is > because it is using AnyEvent::HTTP which is not optimised for LMS?). >From sometime in 2019 LMS SimpleAsynchHTTP got HTTP 1.1/ support ( I think via keep-alive) which it didn't have at the time of BBCiPlayer and so I used AnyEvent for backward compatibility (i.e. so users did not have to upgrade LMS) Yes - the AnyEvent was not optimised and bypasses a lot of LMS caching. Also there was a LMS core scheduling bug which HTTP 1.0 exacerbated and caused problem for low end Windows systems. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
bpa wrote: > Is the plugin not using HTTP 1.1 for DASH chunks where there is only one > TCP connection for multiple GETs - this hugely reduces the load on > processor (i.e. only one DNS call for a live stream, one TCP open per > live stream - not per chunk) and packets response times.[/QUOTE > > It is just using the standard LMS SimpleAsyncHTTP. I see no reason to > change that part (it shares the same dash processing logic as Phillipe's > You tube plugin). I've no idea if this standard LMS operation sets the > protocol to http 1.1, but I doubt it. > > I'm seeing no load issues. I've load tested on a very low powered > raspberry pi model 1b. In fact, BBC Sounds streaming uses half as much > cpu load as the BBC IPlayer streaming I noticed (presumably that is > because it is using AnyEvent::HTTP which is not optimised for LMS?). *BBC Sounds Plugin Wiki* : https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin/wiki expectingtofly's Profile: http://forums.slimdevices.com/member.php?userid=63263 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
expectingtofly wrote: > but the way that the bbc streams in chunks with a new connection every 6 > seconds it becomes very visible. Is the plugin not using HTTP 1.1 for DASH chunks where there is only one TCP connection for multiple GETs - this hugely reduces the load on processor (i.e. only one DNS call for a live stream, one TCP open per live stream - not per chunk) and packets response times. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
comeng wrote: > OK > > So what has changed and the only thing I can identify is upgrading to > Sounds 2.9.1. > Thank you for help and as always in such circumstances I am frustrated > that I cannot come up with an explanation or put my finger on one issue > that could be further investigated. > > Phil There was a streaming retry mechanism added in version 2.8.0 which was put in place specifically to fix the kind of regular dropouts you were experiencing. So I'm assuming you are experiencing that fix. If you set the the logging level to warning you should be able to see the retries kicking in. The problem is caused by the way that LMS performs asynchronous http calls, they can be blocked intermittently on some setups, you probably don't notice it in most scenarios, but the way that the bbc streams in chunks with a new connection every 6 seconds it becomes very visible. Glad its now working well for you :) *BBC Sounds Plugin Wiki* : https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin/wiki expectingtofly's Profile: http://forums.slimdevices.com/member.php?userid=63263 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
comeng wrote: > Thank you for help and as always in such circumstances I am frustrated > that I cannot come up with an explanation or put my finger on one issue > that could be further investigated. I feeel the root of "drop outs" was these "long delay" packets. I think it is has virtually disappeared for you because 1. BBC Sounds is a new plugin and stream handling is also new. There are improvement/fixes being made to the code - one of which I know dealt with "long delay". This means when it happens, its effect is minimised - you'll only notice the really really long delayed packet. 2. A local/regional network issue has been resolved. I had a version of plugin to log these "long delay" packets - from my experience and other users reporting - it often happened at weekends and/or in a region. My guess is that the "long delay" packets happen more often when a network upgrade/maintenance is happening or if there is regional network issue affecting the CDN network. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
OK So done various tests as my base I ran 8 hours solid music streaming from my NAS to the 3 synchronised Raspberry Pi's and as expected I got no drop outs or any other issues so internal networks and devices appear to be functioning correctly, then did the same with Listen Again and had no issues, doing the same with Live feed Radio 2 I had one occasion of loss of sound of a couple of seconds with nothing showing in the log files and at this level it is not even a minor irritant. So what has changed and the only thing I can identify is upgrading to Sounds 2.9.1. The one thing I did notice was that the log file when on Live appeared very similar to that of Listen Again whereas previously the number of requests per second was significantly different I will keep monitoring and get back to you. If it would help I can send log files if anyone cares to specify what they would like to see. Thank you for help and as always in such circumstances I am frustrated that I cannot come up with an explanation or put my finger on one issue that could be further investigated. Phil comeng's Profile: http://forums.slimdevices.com/member.php?userid=63874 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
comeng wrote: > Ok I am going to a take a step back and enjoy the New Year as we enter > it > > I need to repeat all the steps I have previously taken and leave it > running for sometime. > > I have not had a drop out on Listen Again since I upgraded the plugin to > 2.9.1 (I think) > > I will get back you all soon > > Enjoy the 1st day of 2021 wherever you are > > Phil OK - good idea to pause but come back so that this issue can be identified & fixed. Feels like a bit of progress. Live streams will be more sensitive to chunk delays so if drop outs are more frequent with Live stream then the problem is likely to be related to chunk delays. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
Ok I am going to a take a step back and enjoy the New Year as we enter it I need to repeat all the steps I have previously taken and leave it running for sometime. I have not had a drop out on Listen Again since I upgraded the plugin to 2.9.1 (I think) I will get back you all soon Enjoy the 1st day of 2021 wherever you are Phil comeng's Profile: http://forums.slimdevices.com/member.php?userid=63874 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
comeng wrote: > I set the logging as Internet Radio is there a better option, with it > set at that you would just get more of same Those logging options are really only for standard HTTP streams. So it is triggering for each chunk, each of which is a GET which requires a DNS lookup. Each chunk is about 6 secs long so gaps of secs for each DNS lookup would be right. The "internet radio" logging is not suited for the BBC Sounds DASH streams. There is plugin specific logging with plugin.bbcsounds but INFO level also generates a lot of messages so unless problem happens quicky log file gets very big. If there is an error the BBC Sounds plugin should log it. What does the log look like with default logging settings. Did you get drop-outs when playing "Listen Again" ? bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
OK forget Proxy that was me trying to answer 2 questions at once I meant yes it is set to Proxy and I cannot remember why or where it came from. I set the logging as Internet Radio is there a better option, with it set at that you would just get more of same Reseting Logging In the list of buttons all are set to ERROR except 2 (scan.auto) - Automatic Media & Playlist Scanning set to Debug (server.memory) - Server Memory Usage (Advanced) set to Off There seems to be 4 options Internet Radio Media Scanner Server Transcoder Never used the logging before that is why I asked about a wiki or the like at the start The web interface is DEFAULT Thanks for your patience and help Phil comeng's Profile: http://forums.slimdevices.com/member.php?userid=63874 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
Did you enable any logging for these "resolve" message to appear in the log ? Is this an edited log file with message or text removed ? if so then please post unedited log file (zip & attach) as sometime the message that are missing are important. What do you mean "Yes I have proxy set because I synchronise my units" ? The Direct / Proxued streaming setting is ignored if a player is sycned with other player - so the reason for "proxy" is unclear. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
Appear to have exceeded image nos > 10 so second email Live These seem to have a 6 second gap between calls [20-12-31 17:02:14.7838] Slim::Networking::Async::DNS::resolve (43) Using cached DNS response 176.255.218.225 for as-dash-uk-live.akamaized.net [20-12-31 17:02:21.3740] Slim::Networking::Async::DNS::resolve (43) Using cached DNS response 176.255.218.225 for as-dash-uk-live.akamaized.net [20-12-31 17:02:21.5081] Slim::Networking::Async::DNS::__ANON__ (75) Got DNS response 13.224.226.91 for rms.api.bbc.co.uk (ttl 60) [20-12-31 17:02:27.5489] Slim::Networking::Async::DNS::resolve (43) Using cached DNS response 176.255.218.225 for as-dash-uk-live.akamaized.net [20-12-31 17:02:34.1211] Slim::Networking::Async::DNS::resolve (43) Using cached DNS response 176.255.218.225 for as-dash-uk-live.akamaized.net [20-12-31 17:02:40.2939] Slim::Networking::Async::DNS::resolve (43) Using cached DNS response 176.255.218.225 for as-dash-uk-live.akamaized.net [20-12-31 17:02:46.8703] Slim::Networking::Async::DNS::resolve (43) Using cached DNS response 176.255.218.225 for as-dash-uk-live.akamaized.net [20-12-31 17:02:53.0547] Slim::Networking::Async::DNS::resolve (43) Using cached DNS response 176.255.218.225 for as-dash-uk-live.akamaized.net [20-12-31 17:02:59.6668] Slim::Networking::Async::DNS::__ANON__ (75) Got DNS response 176.255.246.218 for as-dash-uk-live.akamaized.net (ttl 60) [20-12-31 17:03:06.2132] Slim::Networking::Async::DNS::resolve (43) Using cached DNS response 176.255.246.218 for as-dash-uk-live.akamaized.net comeng's Profile: http://forums.slimdevices.com/member.php?userid=63874 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
Sorry for delayed response Now running Plugin ver 2.9.1 Looking at the logs there seems to be a timing difference between Live and Non Live feeds see below not sure if this is significant Non Live (Listen Again) These can have 2,3,4 calls per second [20-12-31 16:58:39.6030] Slim::Networking::Async::DNS::resolve (43) Using cached DNS response 95.101.136.58 for aod-dash-uk-live.akamaized.net [20-12-31 16:58:51.6514] Slim::Networking::Async::DNS::resolve (43) Using cached DNS response 95.101.136.58 for aod-dash-uk-live.akamaized.net [20-12-31 16:58:52.0593] Slim::Networking::Async::DNS::resolve (43) Using cached DNS response 95.101.136.58 for aod-dash-uk-live.akamaized.net [20-12-31 16:59:04.1183] Slim::Networking::Async::DNS::resolve (43) Using cached DNS response 95.101.136.58 for aod-dash-uk-live.akamaized.net [20-12-31 16:59:04.5258] Slim::Networking::Async::DNS::resolve (43) Using cached DNS response 95.101.136.58 for aod-dash-uk-live.akamaized.net [20-12-31 16:59:17.0827] Slim::Networking::Async::DNS::resolve (43) Using cached DNS response 95.101.136.58 for aod-dash-uk-live.akamaized.net [20-12-31 16:59:17.0875] Slim::Networking::Async::DNS::resolve (43) Using cached DNS response 13.32.168.106 for rms.api.bbc.co.uk [20-12-31 16:59:17.4966] Slim::Networking::Async::DNS::resolve (43) Using cached DNS response 95.101.136.58 for aod-dash-uk-live.akamaized.net [20-12-31 16:59:30.7047] Slim::Networking::Async::DNS::resolve (43) Using cached DNS response 95.101.136.58 for aod-dash-uk-live.akamaized.net [20-12-31 16:59:31.1136] Slim::Networking::Async::DNS::resolve (43) Using cached DNS response 95.101.136.58 for aod-dash-uk-live.akamaized.net Reason delay was the Pi I was working on died so had to sort that. However had a good period on both forms when got running. Yes I have proxy set because I synchronise my units Thank you will let you know progress Phil comeng's Profile: http://forums.slimdevices.com/member.php?userid=63874 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
bpa wrote: > "Direct" means a stream that a player can play direct (i.e. audio stream > goes straight to player, no LMS audio involvement - stream metadata is > sent back from player to LMS to display). > The setting only applies to player which are not synced and the player > can play direct (e.g. HTTP/MP3, HTTP/AAC for older players, squeezelite > can play direct newer formats such as HTTPS/MP3 and Ogg-Flac) I knew that. I just didnt know that BBC iPlayer etc was a proxy only VB2.4[/B] STORAGE *QNAP TS419P (NFS) [B]Living Room* - Joggler & SB3 -> Onkyo TXNR686 -> Celestion F20s *Office* - Joggler & Pi3 -> Denon RCD N8 -> Celestion F10s *Dining Room* -> SB Boom *Kitchen* -> UE Radio (upgraded to SB Radio) *Bedroom (Bedside)* - Pi Zero+DAC ->ToppingTP21 ->AKG Headphones *Bedroom (TV) & Bathroom* - SB Touch ->Denon AVR ->Mordaunt Short M10s + Pioneer ceiling speakers *Guest Room* - Joggler > Topping Amp -> Wharfedale Modus Cubes Everything controlled by iPeng & Material on iOS d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
d6jg wrote: > Didnt know that. Thanks "Direct" means a stream that a player can play direct (i.e. audio stream goes straight to player, no LMS audio involvement - stream metadata is sent back from player to LMS to display). The setting only applies to player which are not synced and the player can play direct (e.g. HTTP/MP3, HTTP/AAC for older players, squeezelite can play direct newer formats such as HTTPS/MP3 and Ogg-Flac) bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
bpa wrote: > That setting makes no difference with BBC Sounds or BBCiPlayer or any > plugin which is not a simple HTTP streams (e.g. HLS, DASH) Didnt know that. Thanks VB2.4[/B] STORAGE *QNAP TS419P (NFS) [B]Living Room* - Joggler & SB3 -> Onkyo TXNR686 -> Celestion F20s *Office* - Joggler & Pi3 -> Denon RCD N8 -> Celestion F10s *Dining Room* -> SB Boom *Kitchen* -> UE Radio (upgraded to SB Radio) *Bedroom (Bedside)* - Pi Zero+DAC ->ToppingTP21 ->AKG Headphones *Bedroom (TV) & Bathroom* - SB Touch ->Denon AVR ->Mordaunt Short M10s + Pioneer ceiling speakers *Guest Room* - Joggler > Topping Amp -> Wharfedale Modus Cubes Everything controlled by iPeng & Material on iOS d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
d6jg wrote: > Are your players set to Direct or Proxied Streaming? That setting makes no difference with BBC Sounds or BBCiPlayer or any plugin which is not a simple HTTP streams (e.g. HLS) bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
Are your players set to Direct or Proxied Streaming? VB2.4[/B] STORAGE *QNAP TS419P (NFS) [B]Living Room* - Joggler & SB3 -> Onkyo TXNR686 -> Celestion F20s *Office* - Joggler & Pi3 -> Denon RCD N8 -> Celestion F10s *Dining Room* -> SB Boom *Kitchen* -> UE Radio (upgraded to SB Radio) *Bedroom (Bedside)* - Pi Zero+DAC ->ToppingTP21 ->AKG Headphones *Bedroom (TV) & Bathroom* - SB Touch ->Denon AVR ->Mordaunt Short M10s + Pioneer ceiling speakers *Guest Room* - Joggler > Topping Amp -> Wharfedale Modus Cubes Everything controlled by iPeng & Material on iOS d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
comeng wrote: > Hi > > Live in UK, no VPN (Sky Broadband) > I am most interested in Radio 2 Live so not not really explored others > yet > Server on static IP, others assigned by router > When the dropout occurs program run time keeps incrementing with no > sound, when connection remade timer jumps back to the point at which > sound was lost. > What version of BBC Sounds plugin ? Not sure which UI you are using. On a WebUI the displayed timer is driven by web based code and corrected by LMS. The above description seems to indicate an interruption in network connection. BBC Sounds plays DASH streams where audio is broken into small "files" (3 sec I think) - sometime these files have a "pause" due to network and there was BBC Sounds fix about 3 weeks ago for this. Can you test to see if you get this problem with a "listen Again" stream ? "Listen Again" enable buffers to be filled so if it is the network problem - the "gaps" should not occur. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
Part 2 DACs HiFi uses Hifiberry Digi Amp Soundbar uses HiFiberry optical out Samung is HDMI All file formats as installed when installed/updated LMS so AAC is native Server Logs will follow just rebooted everything Phil comeng's Profile: http://forums.slimdevices.com/member.php?userid=63874 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
Hi Live in UK, no VPN (Sky Broadband) I am most interested in Radio 2 Live so not not really explored others yet Server on static IP, others assigned by router When the dropout occurs program run time keeps incrementing with no sound, when connection remade timer jumps back to the point at which sound was lost. Regards Phil System Detail Below Logitech Media Server Status Logitech Media Server Version: 8.1.0 - 1608700893 @ Wed Dec 23 12:16:44 CET 2020 Hostname: LMSServer Server IP Address: 192.168.0.8 Server HTTP Port Number: 9000 Operating system: piCore - EN - utf8 Platform Architecture: armv8l-linux Perl Version: 5.28.2 - arm-linux-gnueabihf-thread-multi-64int Audio::Scan: 1.02 IO::Socket::SSL: 2.066 Database Version: DBD::SQLite 1.58 (sqlite 3.22.0) Total Players Recognized: 3 Player Information Information on all identified devices connected to Logitech Media Server HiFi Player Model: SqueezeLite Player Type: squeezelite Firmware: v1.9.6-1206-pCP Player IP Address: 192.168.0.89 Player MAC Address: 00:e0:4c:27:69:8d Samsung Player Model: SqueezeLite Player Type: squeezelite Firmware: v1.9.6-1206-pCP Player IP Address: 192.168.0.42 Player MAC Address: 00:0f:00:90:4d:67 SoundBar Player Model: SqueezeLite Player Type: squeezelite Firmware: v1.9.6-1206-pCP Player IP Address: 192.168.0.92 Player MAC Address: 00:e0:4c:00:09:61 HiFi | piCorePlayer v6.1.0 | www v0009 | linux 4.19.122-pcpCore | piCore v10.3pCP | Squeezelite v1.9.6-1206-pCP Samsung | piCorePlayer v6.1.0 | www v0009 | linux 4.19.122-pcpCore | piCore v10.3pCP | Squeezelite v1.9.6-1206-pCP SoundBar | piCorePlayer v6.1.0 | www v0009 | linux 4.19.122-pcpCore | piCore v10.3pCP | Squeezelite v1.9.6-1206-pCP Folders Cache Folder /usr/local/slimserver/Cache Preferences Folder /usr/local/slimserver/prefs Plugin Folders /usr/local/slimserver/Cache/InstalledPlugins/Plugins, /usr/local/slimserver/Plugins, /usr/local/slimserver/Cache/Plugins Helper Applications Folder /usr/local/slimserver/Bin/armhf-linux, /usr/local/slimserver/Bin, /usr/local/sbin, /usr/local/bin, /sbin, /usr/sbin, /bin, /usr/bin Logitech Media Server Log File /usr/local/slimserver/Logs/server.log (100, 500, 1000 lines, everything, ZIP archive) Scanner Log File /usr/local/slimserver/Logs/scanner.log (100, 500, 1000 lines, everything, ZIP archive) comeng's Profile: http://forums.slimdevices.com/member.php?userid=63874 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] BBC Sounds Dropping out
Always good to detail the version you're running. If not the latest version then it is hardder to give advice. Are you using any special DACs or using any non default LMS settings (e.g. disabling AAC native) Are you in the UK or outside UK. If outside the UK are you using a VPN ? More specific details on the problem will also help. "dropouts" - are these gaps of silence inserted into the audio stream or gaps of silence where audio is lost ? Does the problem happen with only "Live" , only "Listen Again" or both "Live" and "Listen Again" ? Are there any messages in server.log ? bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
[SlimDevices: Plugins] BBC Sounds Dropping out
Hi I am having a problems with the BBC Sounds in terms of dropping out fairly often. My system includes a Pi 3 as PcP based LMS Server only hardwired and 3 Pi 2's all wifi various output options all using PcP have happily run for a number of years streaming music from my NAS, did use BBC Iplayer but got tired of the dropouts and other problems (for various reasons) and not used for several years. Now trying out Sounds and getting some dropouts looking for advice on how trace the cause. To eliminate the router I have a Pi 4 on the wifi on which I have run BBC Sounds via the Chromium Browser to a bluetooth speaker for hours without a single dropout. So thinking settings in LMS which I have forgotten/not found, which logs should I run to track the faults have completely forgotten. Can anybody point me at a Wiki or similar on setup and fault finding Regards Phil comeng's Profile: http://forums.slimdevices.com/member.php?userid=63874 View this thread: http://forums.slimdevices.com/showthread.php?t=113563 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins