Re: [SlimDevices: SqueezeCenter] Good Buffering!

2022-02-27 Thread expectingtofly


agbagb wrote: 
> To somewhat answer my own question.  It's in fact easy to force a time
> sync in Windows via the  option in Settings.  But I've
> discovered that Win only syncs time of its own volition once very seven
> days - so some drift is evidently possible.  There are various little
> programs out there that say they will enable sync every X hours / days
> to some fancy Atomic Clock - but they mostly seem rather old, and a
> couple that I've just tried don't persuade me that they work any better
> than the Win internal system.  Oh well..

Actually,  I have definetlly decided that this is a problem that the
plugin should be able to cope with.  I'll look into what needs changing
to fix it...



Stuart McLean   

expectingtofly plugins :
'bbc sounds' (https://github.com/expectingtofly/lms_bbc_sounds_plugin),'
global player (uk)'
(https://github.com/expectingtofly/lms_globalplayer_plugin), 'times
radio' (https://github.com/expectingtofly/lms_times_radio_plugin),  'uk
radio player'
(https://github.com/expectingtofly/lms_ukradioplayer_plugin), 'virgin
radio (uk)' (https://github.com/expectingtofly/lms_virgin_radio_plugin) 
and the 'radio favourites plugin'
(https://github.com/expectingtofly/lms_radio_favourites_plugin)

for bbc sounds help see the 'bbc sounds 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=115871

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Good Buffering!

2022-02-27 Thread expectingtofly


agbagb wrote: 
> To somewhat answer my own question.  It's in fact easy to force a time
> sync in Windows via the  option in Settings.  But I've
> discovered that Win only syncs time of its own volition once very seven
> days - so some drift is evidently possible.  There are various little
> programs out there that say they will enable sync every X hours / days
> to some fancy Atomic Clock - but they mostly seem rather old, and a
> couple that I've just tried don't persuade me that they work any better
> than the Win internal system.  Oh well..

Actually,. I have decided that this definetlly a problem that the plugin
should be able to cope with in the context we are talking about.  I'll
look Into a fix



Stuart McLean   

expectingtofly plugins :
'bbc sounds' (https://github.com/expectingtofly/lms_bbc_sounds_plugin),'
global player (uk)'
(https://github.com/expectingtofly/lms_globalplayer_plugin), 'times
radio' (https://github.com/expectingtofly/lms_times_radio_plugin),  'uk
radio player'
(https://github.com/expectingtofly/lms_ukradioplayer_plugin), 'virgin
radio (uk)' (https://github.com/expectingtofly/lms_virgin_radio_plugin) 
and the 'radio favourites plugin'
(https://github.com/expectingtofly/lms_radio_favourites_plugin)

for bbc sounds help see the 'bbc sounds 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=115871

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Good Buffering!

2022-02-27 Thread expectingtofly


expectingtofly wrote: 
> I've got to the bottom of your problem.   Its the time on your server is
> 5 seconds or so behind.  This is causing the BBC Sounds plugin to think
> that it is ahead of the live radio time and waiting a number of seconds
> before starting to stream to make sure the audio is available.
> It resets doing this at the start of the next programme, that is why you
> are hearing the pause at the end of each programme.  You are probable
> finding that when you start live radio its taking a while to get going,
> this will be for the same reason.
> 
> Your server time is probably drifting while you have it on, is it worth
> scheduling a regular weekly reboot or something to get it o resync its
> time?
> Or is there something you can do on the server to make sure the time is
> not drifting?
> 
> Looking at the log, when the programme starts,  the plugin thinks
> current live radio time where audio is available now is 19:30:00.  But
> your server time is 19:29:57 (GMT) so the plugin thinks it needs to wait
> 3 seconds before the audio is available so that is why you hear the
> pause.
> 
> For now, I think if you reboot your server it should sort itself out. 
> In the mean time I'll have a think whether there is something  I can
> change in the plugin to make it more tolerant of time drift.


Actually, I might have changed my mind on this!  It may be a particular
problem on the 9600 non UK streams that means that the calculation is
slightly wrong.  This may be a bug.



Stuart McLean   

expectingtofly plugins :
'bbc sounds' (https://github.com/expectingtofly/lms_bbc_sounds_plugin),'
global player (uk)'
(https://github.com/expectingtofly/lms_globalplayer_plugin), 'times
radio' (https://github.com/expectingtofly/lms_times_radio_plugin),  'uk
radio player'
(https://github.com/expectingtofly/lms_ukradioplayer_plugin), 'virgin
radio (uk)' (https://github.com/expectingtofly/lms_virgin_radio_plugin) 
and the 'radio favourites plugin'
(https://github.com/expectingtofly/lms_radio_favourites_plugin)

for bbc sounds help see the 'bbc sounds 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=115871

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Good Buffering!

2022-02-27 Thread expectingtofly


agbagb wrote: 
> There would be a thing - how to debug the debug option freezing LMS! 
> Anyway, no dog is too old to learn a new trick - I never knew
> SHIFT-CONTROL-END selects everything from the cursor point to the end of
> the text in Notepad!


I've got to the bottom of your problem.   Its the time on your server is
5 seconds or so behind.  This is causing the BBC Sounds plugin to think
that it is ahead of the live radio time and waiting a number of seconds
before starting to stream to make sure the audio is available.
It resets doing this at the start of the next programme, that is why you
are hearing the pause at the end of each programme.  You are probable
finding that when you start live radio its taking a while to get going,
this will be for the same reason.

Your server time is probably drifting while you have it on, is it worth
scheduling a regular weekly reboot or something to get it o resync its
time?
Or is there something you can do on the server to make sure the time is
not drifting?

Looking at the log, when the programme starts,  the plugin thinks
current live radio time where audio is available now is 19:30:00.  But
your server time is 19:29:57 (GMT) so the plugin thinks it needs to wait
3 seconds before the audio is available so that is why you hear the
pause.

For now, I think if you reboot your server it should sort itself out. 
In the mean time I'll have a think whether there is something  I can
change in the plugin to make it more tolerant of time drift.



Stuart McLean   

expectingtofly plugins :
'bbc sounds' (https://github.com/expectingtofly/lms_bbc_sounds_plugin),'
global player (uk)'
(https://github.com/expectingtofly/lms_globalplayer_plugin), 'times
radio' (https://github.com/expectingtofly/lms_times_radio_plugin),  'uk
radio player'
(https://github.com/expectingtofly/lms_ukradioplayer_plugin), 'virgin
radio (uk)' (https://github.com/expectingtofly/lms_virgin_radio_plugin) 
and the 'radio favourites plugin'
(https://github.com/expectingtofly/lms_radio_favourites_plugin)

for bbc sounds help see the 'bbc sounds 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=115871

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Good Buffering!

2022-02-25 Thread expectingtofly


agbagb wrote: 
> Heavens - these debug files are long!  Here's a .zip version of 5
> minutes either side of the glitch.

Yes, BBC Sounds logs an awful lot when debug level is on.  That should
be plenty for me to look at now, thanks, so its fine to put it back to
'warn' level before it brings your server to a halt! 

Thanks



Stuart McLean   

expectingtofly plugins :
'bbc sounds' (https://github.com/expectingtofly/lms_bbc_sounds_plugin),'
global player (uk)'
(https://github.com/expectingtofly/lms_globalplayer_plugin), 'times
radio' (https://github.com/expectingtofly/lms_times_radio_plugin),  'uk
radio player'
(https://github.com/expectingtofly/lms_ukradioplayer_plugin), 'virgin
radio (uk)' (https://github.com/expectingtofly/lms_virgin_radio_plugin) 
and the 'radio favourites plugin'
(https://github.com/expectingtofly/lms_radio_favourites_plugin)

for bbc sounds help see the 'bbc sounds 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=115871

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Good Buffering!

2022-02-25 Thread expectingtofly


agbagb wrote: 
> I'm afraid that the time stamps have me a tad baffled - but within this
> Debug Log is a very distinct "glitch". It's a cpature of about 4 minutes
> - in "my" time (here in Paris, on my LMS) it seemed to "jump" about 7
> seconds after the half-hour.

Have you truncated the log by any chance?  unfortunately that log is
only about 20 seconds worth and doesn't cover the period we are
interested in.

Please can you have a go at uploading the same log again up into this
drop box folder  https://www.dropbox.com/request/hSF1mrm1N7i67RSrz2Jq

Many thanks



Stuart McLean   

expectingtofly plugins :
'bbc sounds' (https://github.com/expectingtofly/lms_bbc_sounds_plugin),'
global player (uk)'
(https://github.com/expectingtofly/lms_globalplayer_plugin), 'times
radio' (https://github.com/expectingtofly/lms_times_radio_plugin),  'uk
radio player'
(https://github.com/expectingtofly/lms_ukradioplayer_plugin), 'virgin
radio (uk)' (https://github.com/expectingtofly/lms_virgin_radio_plugin) 
and the 'radio favourites plugin'
(https://github.com/expectingtofly/lms_radio_favourites_plugin)

for bbc sounds help see the 'bbc sounds 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=115871

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Now where was I?

2022-02-25 Thread expectingtofly


troffasky wrote: 
> It seems like if a player goes offline and comes on again, it forgets
> its position in a track. I am not sure if this is a bug or simply the
> way LMS implements things.
> For "normal" music this isn't much of an annoyance but I frequently
> listen to longer programmes on BBC Sounds [2-3h long]. 
> I have taken to screenshotting position in track to help me with this,
> which is a bit silly. 
> What players go off and come on? I am using squeezelite on my desktop
> which I suspend/resume as required and is my main listening station.
> It occurs to me that I can install squeezelite on the server itself
> [which is not otherwise used for audio] and sync my desktop with that as
> a workaround.

As @slartibartfast indicates (if you have not simply specifically paused
the programme) .   On BBC Sounds select BBC Sounds->My Sounds->Continue
Listening.   Then select the programme you are part way through, then
select Resume to continue from where you got to.



Stuart McLean   

expectingtofly plugins :
'bbc sounds' (https://github.com/expectingtofly/lms_bbc_sounds_plugin),'
global player (uk)'
(https://github.com/expectingtofly/lms_globalplayer_plugin), 'times
radio' (https://github.com/expectingtofly/lms_times_radio_plugin),  'uk
radio player'
(https://github.com/expectingtofly/lms_ukradioplayer_plugin), 'virgin
radio (uk)' (https://github.com/expectingtofly/lms_virgin_radio_plugin) 
and the 'radio favourites plugin'
(https://github.com/expectingtofly/lms_radio_favourites_plugin)

for bbc sounds help see the 'bbc sounds 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=115999

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Good Buffering!

2022-02-23 Thread expectingtofly


agbagb wrote: 
> Thanks Stuart!  I may tomorrow to be able to do a live audio capture of
> the "effect" too, which may help in pinning it down.


What would be most useful is if you could turn on debug logging for the
BBC Sounds plugin just for 2 or 3 minutes covering the time just before
programme ends and the next programme starts.  Then I should be able to
see where the delay is in the streaming when the new programme starts.

The debug logging is very verbose, so it only needs to be turned on for
a couple of minutes.  Thanks



Stuart McLean   

expectingtofly plugins :
'bbc sounds' (https://github.com/expectingtofly/lms_bbc_sounds_plugin),'
global player (uk)'
(https://github.com/expectingtofly/lms_globalplayer_plugin), 'times
radio' (https://github.com/expectingtofly/lms_times_radio_plugin),  'uk
radio player'
(https://github.com/expectingtofly/lms_ukradioplayer_plugin), 'virgin
radio (uk)' (https://github.com/expectingtofly/lms_virgin_radio_plugin) 
and the 'radio favourites plugin'
(https://github.com/expectingtofly/lms_radio_favourites_plugin)

for bbc sounds help see the 'bbc sounds 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=115871

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Good Buffering!

2022-02-23 Thread expectingtofly


agbagb wrote: 
> I've got, afaik, the Default Crossfade settings, like so:

Ok, Thanks for checking.   I'll have a look to see if I can try and
recreate the problem and see if I can do anything to address it.



Stuart McLean   

expectingtofly plugins :
'bbc sounds' (https://github.com/expectingtofly/lms_bbc_sounds_plugin),'
global player (uk)'
(https://github.com/expectingtofly/lms_globalplayer_plugin), 'times
radio' (https://github.com/expectingtofly/lms_times_radio_plugin),  'uk
radio player'
(https://github.com/expectingtofly/lms_ukradioplayer_plugin), 'virgin
radio (uk)' (https://github.com/expectingtofly/lms_virgin_radio_plugin) 
and the 'radio favourites plugin'
(https://github.com/expectingtofly/lms_radio_favourites_plugin)

for bbc sounds help see the 'bbc sounds 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=115871

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Good Buffering!

2022-02-23 Thread expectingtofly


agbagb wrote: 
> It's surprisingly tricky to explain clearly!
> 
> Let's say I'm listening to a 45min R3 live music stream, and that stream
> is due to end at 7.30 BBC time, with a switch to the continuity chap
> introducing the next concert.  Now, for whatever reason, there *is* some
> delay in the system, at one end or another - typically that concert will
> for me be running a minute or two late (depending on how long I've been
> continuously listening to R3 during the day).  So, for me, the music
> will end at, say, 7.32 my time and move onto to next program.  BUT, at
> exactly 7.30 BBC time, my stream stops for a tiny amount of time, before
> recommencing (with no *program* gap at all) and running until 7.32.
> 
> It's hardly the end of the world, but because it sometimes spoils the
> final climax, or quiet resolution, or judders the denoument of a play,
> it's really quite annoying.  I should add that I have a sense that this
> has started happening quite recently - last few months - as the rest of
> the family have started commenting on it, and noticing that it happens
> on the hour or half or quarter hour "real" time, rather than my local
> program time


Yes, that does sound like the the stream ending and restarting for the
next programme (its usually a few seconds before the actual audio ends 
for the programme.   It should be seamless, but there sometimes can be a
delay. As mentioned, I've noticed it a couple of times on my setup that
but it is a glitch for me sometimes but not a long pause. Your server
should usually do it all quickly enough after ending of one programme
and the start of another.

Just a thought, you don't by chance have crossfade turned on in the
settings?  I should probably disable crossfade for BBC Sounds in the
plugin.



Stuart McLean   

expectingtofly plugins :
'bbc sounds' (https://github.com/expectingtofly/lms_bbc_sounds_plugin),'
global player (uk)'
(https://github.com/expectingtofly/lms_globalplayer_plugin), 'times
radio' (https://github.com/expectingtofly/lms_times_radio_plugin),  'uk
radio player'
(https://github.com/expectingtofly/lms_ukradioplayer_plugin), 'virgin
radio (uk)' (https://github.com/expectingtofly/lms_virgin_radio_plugin) 
and the 'radio favourites plugin'
(https://github.com/expectingtofly/lms_radio_favourites_plugin)

for bbc sounds help see the 'bbc sounds 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=115871

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Good Buffering!

2022-02-23 Thread expectingtofly


agbagb wrote: 
> Hope I can describe this well enough - and I don't see anything
> specifically about it in the github page
> 
> So, I usually listen to the Beeb live rather then on demand.  And I
> listen to a lot of the longer programs - plays on R4 and R4x, and music
> on R3.  What I'm finding is that, at the real-time end of a stream
> (often on the hour or half-hour) I'm getting a slight pause / stutter in
> what I'm listening to, that then takes up at the same spot half a second
> or so later.  I'm guessing that there's some kind of conflcit between
> the DASH stream's interaction with LMS (or a player) and the
> old-fashioned LMS world buffer?  That Sounds is "marking" the real time
> program/stream change, but that the buffer "says", OK, but let me just
> finish the last stream for where I thought I was..   If that makes
> sense!
> 
> Anyway, it's rather annoying!  Especially for classical music, it means
> that there's a little interruption in the the last bar of the piece
> being performed, often rather spoiling the whole thing!  Is there some
> kind of fix for this in my assorted settings?  I supspect that, in the
> past, I've lengthened buffer times, a "fix" which is not longer needed
> for Sounds and its DASH stream.

Do you mean a very slight pause or glitch at the end of a programme?  At
the point the BBC Sounds plugin ends the current programme and starts
the new one?
Then yes, there is, I'm aware of that.  The way the BBC Sounds Plugin
works is that it makes each individual programme a "track" in lms.  This
is so you can pause/rewind around the current live programme. 
The very slight glitch you hear is LMS ending the current track and
starting a new one.   There maybe something I can do about it, and make
the transition absolutely inaudible.  Also I probably don't have the
timing quite right and the track switching may be happening too early.



Stuart McLean   

expectingtofly plugins :
'bbc sounds' (https://github.com/expectingtofly/lms_bbc_sounds_plugin),'
global player (uk)'
(https://github.com/expectingtofly/lms_globalplayer_plugin), 'times
radio' (https://github.com/expectingtofly/lms_times_radio_plugin),  'uk
radio player'
(https://github.com/expectingtofly/lms_ukradioplayer_plugin), 'virgin
radio (uk)' (https://github.com/expectingtofly/lms_virgin_radio_plugin) 
and the 'radio favourites plugin'
(https://github.com/expectingtofly/lms_radio_favourites_plugin)

for bbc sounds help see the 'bbc sounds 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=115871

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Good Buffering!

2022-01-31 Thread expectingtofly


agbagb wrote: 
> Incidentally, if I do hit Pause (rather then Mute) but then want the
> stream to pick up in real time rather than at the paused time, what's
> the button tactic to do that?  Easy from LMS, but from the remote?  Is
> it Play, rather then (Un)Pause?  Or hit the (pre-programmed) numbered
> preset button?

Hopefully the BBC Sounds wiki will be of use here.  I've documented how
you can navigate around live programmes on BBC sounds using the LMS
controls :
https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin/wiki#live-radio



Stuart McLean   

expectingtofly plugins :
'bbc sounds' (https://github.com/expectingtofly/lms_bbc_sounds_plugin),'
global player (uk)'
(https://github.com/expectingtofly/lms_globalplayer_plugin), 'times
radio' (https://github.com/expectingtofly/lms_times_radio_plugin),  'uk
radio player'
(https://github.com/expectingtofly/lms_ukradioplayer_plugin), 'virgin
radio (uk)' (https://github.com/expectingtofly/lms_virgin_radio_plugin) 
and the 'radio favourites plugin'
(https://github.com/expectingtofly/lms_radio_favourites_plugin)

for bbc sounds help see the 'bbc sounds 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=115871

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Global Player Remote M4A (containing AAC) streams no longer working in LMS

2021-09-03 Thread expectingtofly


philippe_44 wrote: 
> Got it - an old thing that I forgot to fix a while ago
> https://github.com/Logitech/slimserver/pull/656

Cool, thanks.



Stuart McLean   

EXPECTINGTOFLY PLUGINS :

- *BBC Sounds* : 
  https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin 
- *Virgin Radio (UK)* : 
  https://github.com/expectingtofly/LMS_Virgin_Radio_Plugin 
- *Times Radio* : 
  https://github.com/expectingtofly/LMS_TIMES_RADIO_PLUGIN 
- *Global Player (UK)* : 
  https://github.com/expectingtofly/LMS_GlobalPlayer_Plugin 
  
For BBC Sounds help see the 'BBC Sounds 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=115070

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Global Player Remote M4A (containing AAC) streams no longer working in LMS

2021-09-03 Thread expectingtofly


philippe_44 wrote: 
> oh... then that's very strange and I need to investigate that more.
> There is no reason why it would no start at zero unless the offset if
> totally wrong then
> 
> [edit]: I really don't understand: when I'm trying that url, it starts
> from the beginning of the show. Isnt't it the case for you?
Yes, the audio is fine and starts from the beginning. Its the time info
in the seek bar starts at 2:37 right from the beginning, instead of
0:00.



Stuart McLean   

EXPECTINGTOFLY PLUGINS :

- *BBC Sounds* : 
  https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin 
- *Virgin Radio (UK)* : 
  https://github.com/expectingtofly/LMS_Virgin_Radio_Plugin 
- *Times Radio* : 
  https://github.com/expectingtofly/LMS_TIMES_RADIO_PLUGIN 
- *Global Player (UK)* : 
  https://github.com/expectingtofly/LMS_GlobalPlayer_Plugin 
  
For BBC Sounds help see the 'BBC Sounds 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=115070

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Global Player Remote M4A (containing AAC) streams no longer working in LMS

2021-09-03 Thread expectingtofly


philippe_44 wrote: 
> How incorrect? By a bit or totally wrong? It might something different,
> linked AAC encoding where the actual sample rate and bitrate are
> complicated to read from headers.

Not too bad, its manageable..  This one :
https://catchup.thisisdax.com/e411a1bc-51cf-4e0e-b9c7-139bc833b78b/aee3445c-7ae1-496a-8dc8-7b1526b45014.m4a?aw_0_1st.channelid=d2bf085f-d4e0-4a6b-80d6-75d92bf0fcae&aw_0_1st.showid=e411a1bc-51cf-4e0e-b9c7-139bc833b78b&aw_0_1st.episodeid=9715ec5b-7499-4b04-b7b5-fb9fc764e302&listeningSessionID=595dd625-9bfb-4d1a-8982-010f579f0bc3
for example.

It starts at 2:37 instead of zero and looking at it, all seeking seems
to remain a fixed about 2:37 out.   The fact it started at 2:37 instead
of zero made me assume it was to do with the headers being incorrect.



Stuart McLean   

EXPECTINGTOFLY PLUGINS :

- *BBC Sounds* : 
  https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin 
- *Virgin Radio (UK)* : 
  https://github.com/expectingtofly/LMS_Virgin_Radio_Plugin 
- *Times Radio* : 
  https://github.com/expectingtofly/LMS_TIMES_RADIO_PLUGIN 
- *Global Player (UK)* : 
  https://github.com/expectingtofly/LMS_GlobalPlayer_Plugin 
  
For BBC Sounds help see the 'BBC Sounds 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=115070

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Global Player Remote M4A (containing AAC) streams no longer working in LMS

2021-09-03 Thread expectingtofly


philippe_44 wrote: 
> See here https://github.com/Logitech/slimserver/pull/655 if it solves
> the problem

That's great, that does indeed solve the problem for these erroneous
streams :-)  Many thanks for looking into this.  I see it's been merged
alrady.

Just for the sake of complete information, the timing information for
seeking becomes incorrect on these streams, but obviously, that is to be
expected if they put incorrect data in the Mp4 header.  The important
bit is they are become playable.



Stuart McLean   

EXPECTINGTOFLY PLUGINS :

- *BBC Sounds* : 
  https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin 
- *Virgin Radio (UK)* : 
  https://github.com/expectingtofly/LMS_Virgin_Radio_Plugin 
- *Times Radio* : 
  https://github.com/expectingtofly/LMS_TIMES_RADIO_PLUGIN 
- *Global Player (UK)* : 
  https://github.com/expectingtofly/LMS_GlobalPlayer_Plugin 
  
For BBC Sounds help see the 'BBC Sounds 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=115070

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Global Player Remote M4A (containing AAC) streams no longer working in LMS

2021-09-03 Thread expectingtofly


philippe_44 wrote: 
> See here https://github.com/Logitech/slimserver/pull/655 if it solves
> the problem

Thanks, I'll take a look.



Stuart McLean   

EXPECTINGTOFLY PLUGINS :

- *BBC Sounds* : 
  https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin 
- *Virgin Radio (UK)* : 
  https://github.com/expectingtofly/LMS_Virgin_Radio_Plugin 
- *Times Radio* : 
  https://github.com/expectingtofly/LMS_TIMES_RADIO_PLUGIN 
- *Global Player (UK)* : 
  https://github.com/expectingtofly/LMS_GlobalPlayer_Plugin 
  
For BBC Sounds help see the 'BBC Sounds 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=115070

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Global Player Remote M4A (containing AAC) streams no longer working in LMS

2021-09-02 Thread expectingtofly


philippe_44 wrote: 
> Il will see if I can make a dirty patch that truncate audio_size if
> needed

Many thanks for taking a look a this.



Stuart McLean   

EXPECTINGTOFLY PLUGINS :

- *BBC Sounds* : 
  https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin 
- *Virgin Radio (UK)* : 
  https://github.com/expectingtofly/LMS_Virgin_Radio_Plugin 
- *Times Radio* : 
  https://github.com/expectingtofly/LMS_TIMES_RADIO_PLUGIN 
- *Global Player (UK)* : 
  https://github.com/expectingtofly/LMS_GlobalPlayer_Plugin 
  
For BBC Sounds help see the 'BBC Sounds 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=115070

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Global Player Remote M4A (containing AAC) streams no longer working in LMS

2021-09-02 Thread expectingtofly


philippe_44 wrote: 
> I will recheck mp4 specs but AFAIR, the audio size is not at all from
> the average but rate but is indicated in the file itself, by the size of
> the atom the contains the audio data (mdat), so it is an exact value
> that is set by the encoder itself. This is for example how you parse a
> mp4 with header at the end. If you reach the mdat atom before the
> header, then you jump by the mdat audio size.
> 
> The most likely hypothesis is an error in the encoder or in the HTTP
> content_length. All other mp4 content provider work like that, and there
> are a few now, so I think if there was an issue we would have seen it
> already.

Thanks for the explanation, I can see that now.  Yes, it looks like an
error in their encoder as the content length is accurate.   Also if I
use exiftool on a downloaded version of the file, it reports very
slightly different size values (but equally problematic!) as LMS :

Code:


  Media Time Scale: 22050
  Media Duration  : 3:00:00
  Media Language Code : und
  Handler Type: Audio Track
  Handler Description : SoundHandler
  Balance : 0
  Audio Format: mp4a
  Audio Channels  : 2
  Audio Bits Per Sample   : 16
  Audio Sample Rate   : 22050
  Movie Data Size : 63182628
  Movie Data Offset   : 931550
  Avg Bitrate : 46.8 kbps
  



So, in all in all,  we know why its failing, but unless I can open up a
dialogue with them, we can't really do anything about this (without
opening up other potential problems), as these streams work on their
website and in their app which is probably the only places they care
about.



Stuart McLean   

EXPECTINGTOFLY PLUGINS :

- *BBC Sounds* : 
  https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin 
- *Virgin Radio (UK)* : 
  https://github.com/expectingtofly/LMS_Virgin_Radio_Plugin 
- *Times Radio* : 
  https://github.com/expectingtofly/LMS_TIMES_RADIO_PLUGIN 
- *Global Player (UK)* : 
  https://github.com/expectingtofly/LMS_GlobalPlayer_Plugin 
  
For BBC Sounds help see the 'BBC Sounds 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=115070

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Global Player Remote M4A (containing AAC) streams no longer working in LMS

2021-09-02 Thread expectingtofly


philippe_44 wrote: 
> That would explain b/c the request range last byte is 
> > 
Code:

  >   > 
  > $track->audio_offset + $track->audio_size - 1 if $track->audio_size;
  > 

> > 
> On purpose, it is not the content_length in the server response b/c a
> file might have all sort of trailing crap. Now, if there is an issue
> on the server and they have a wrong mp4 header, the track's audio_size
> might be incorrect and I'll shoot beyong the content_length. I can
> harden that a bit and take the smallest of contentLength (if any) and
> $track->audio_offset + $track->audio_size

Thank you for the explanation.   I'm a bit confused how that all works
on a variable bit rate file.  Take this example where we are having the
problem :

The (verified) content length is : 

Code:


  "content-length"=> 64_062_386,

Code:



LMS reads the MP4 headers as such :

Code:


  my $a = {
  audio_offset  => 931_526,
  audio_size=> 63_180_833,
  avg_bitrate   => 46_792,
  compatible_brands => ["isom", "M4A ", "mp42"],
  dlna_profile  => "AAC_ISO_192",
  fh=> bless(\*File::Temp::$fh, "File::Temp"),
  file_size => 931_542,
  jenkins_hash  => "1280117999",
  major_brand   => "M4A ",
  minor_version => 1,
  mv_timescale  => 600,
  processors=> { aac => sub { "???" } },
  samplerate=> 22_050,
  song_length_ms=> 10_800_020,
  tracks=> [
  {
  audio_object_type => 2,
  audio_type=> 64,
  bits_per_sample   => 16,
  channels  => 2,
  duration  => 10_800_020,
  encoding  => "mp4a",
  handler_name  => "SoundHandler",
  handler_type  => "soun",
  id=> 1,
  max_bitrate   => 51_944,
  samplerate=> 22_050,
  },
  ],
  };
  



So, 931526 + 63180833 = 64,112,359  which is obviously greater than size of 
the file.  Which is why we are getting the Range error.

But how does it work out the audio size?   Does the average bit rate come 
from the Mp4 header or is it worked out from a sample?    If it's the latter 
would that be accurate enough to be used for the Range calculation?



Stuart McLean   

EXPECTINGTOFLY PLUGINS :

- *BBC Sounds* : 
  https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin 
- *Virgin Radio (UK)* : 
  https://github.com/expectingtofly/LMS_Virgin_Radio_Plugin 
- *Times Radio* : 
  https://github.com/expectingtofly/LMS_TIMES_RADIO_PLUGIN 
- *Global Player (UK)* : 
  https://github.com/expectingtofly/LMS_GlobalPlayer_Plugin 
  
For BBC Sounds help see the 'BBC Sounds 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=115070

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Global Player Remote M4A (containing AAC) streams no longer working in LMS

2021-09-01 Thread expectingtofly


philippe_44 wrote: 
> Really strange ... I'll check sizes but they don't seem to match

Somebody on the plugin thread just reported that it has been working on
and off.  So I wonder if they have a problem with content provision



Stuart McLean   

EXPECTINGTOFLY PLUGINS :

- *BBC Sounds* : 
  https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin 
- *Virgin Radio (UK)* : 
  https://github.com/expectingtofly/LMS_Virgin_Radio_Plugin 
- *Times Radio* : 
  https://github.com/expectingtofly/LMS_TIMES_RADIO_PLUGIN 
- *Global Player (UK)* : 
  https://github.com/expectingtofly/LMS_GlobalPlayer_Plugin 
  
For BBC Sounds help see the 'BBC Sounds 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=115070

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Global Player Remote M4A (containing AAC) streams no longer working in LMS

2021-09-01 Thread expectingtofly


philippe_44 wrote: 
> I introduced the range request about a year+ ago I think to enable mp4
> streaming broadly in LMS, more precisely to enable seeking through files
> and streaming files whose essential mp4 informations are at the end of
> the file. The streaming process opens the stream, reads essential
> headers, store them, close and then re-opens it at the beginning of
> audio. Can you trace the response to the 1st GET request?
> 
> [edit]: I've just tried the link directly (TuneIn) and it worked (normal
> header acquisition). Maybe this is something with GlobalPlayer?

hmmm,  no I get the same result by adding the url directly (GlobalPlayer
is not doing anything with the url apart from passing on directly as an
audio item).  I wonder if this is LMS Version dependent,  I'm using
8.2.0 - 1627922070?



Stuart McLean   

EXPECTINGTOFLY PLUGINS :

- *BBC Sounds* : 
  https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin 
- *Virgin Radio (UK)* : 
  https://github.com/expectingtofly/LMS_Virgin_Radio_Plugin 
- *Times Radio* : 
  https://github.com/expectingtofly/LMS_TIMES_RADIO_PLUGIN 
- *Global Player (UK)* : 
  https://github.com/expectingtofly/LMS_GlobalPlayer_Plugin 
  
For BBC Sounds help see the 'BBC Sounds 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=115070

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


[SlimDevices: SqueezeCenter] Global Player Remote M4A (containing AAC) streams no longer working in LMS

2021-09-01 Thread expectingtofly


In the Global Player plugin, the catchup streams are M4a, something has
changed (probably at the Global end) that means these streams now fail.

An example stream that fails: 
https://catchup.thisisdax.com/e411a1bc-51cf-4e0e-b9c7-139bc833b78b/da6f67c6-f025-4db9-920a-3a7fc69e4f81.m4a?aw_0_1st.channelid=d2bf085f-d4e0-4a6b-80d6-75d92bf0fcae&aw_0_1st.showid=e411a1bc-51cf-4e0e-b9c7-139bc833b78b&aw_0_1st.episodeid=84326996-e085-478c-bb57-41342625a1b1

Debug logging shows : 

Code:


  [21-09-01 13:11:22.1014] Slim::Formats::RemoteStream::request (202) Redirect 
to: 
https://catchup.thisisdax.com/e411a1bc-51cf-4e0e-b9c7-139bc833b78b/da6f67c6-f025-4db9-920a-3a7fc69e4f81.m4a?aw_0_1st.channelid=d2bf085f-d4e0-4a6b-80d6-75d92bf0fcae&aw_0_1st.showid=e411a1bc-51cf-4e0e-b9c7-139bc833b78b&aw_0_1st.episodeid=84326996-e085-478c-bb57-41342625a1b1&listeningSessionID=9f98f544-ad47-495b-a361-cdbe55a0fe74
  [21-09-01 13:11:22.1081] Slim::Player::Protocols::HTTPS::new (38) Opening 
connection to 
https://catchup.thisisdax.com/e411a1bc-51cf-4e0e-b9c7-139bc833b78b/da6f67c6-f025-4db9-920a-3a7fc69e4f81.m4a?aw_0_1st.channelid=d2bf085f-d4e0-4a6b-80d6-75d92bf0fcae&aw_0_1st.showid=e411a1bc-51cf-4e0e-b9c7-139bc833b78b&aw_0_1st.episodeid=84326996-e085-478c-bb57-41342625a1b1&listeningSessionID=9f98f544-ad47-495b-a361-cdbe55a0fe74:
 [catchup.thisisdax.com on port 443 with path 
/e411a1bc-51cf-4e0e-b9c7-139bc833b78b/da6f67c6-f025-4db9-920a-3a7fc69e4f81.m4a?aw_0_1st.channelid=d2bf085f-d4e0-4a6b-80d6-75d92bf0fcae&aw_0_1st.showid=e411a1bc-51cf-4e0e-b9c7-139bc833b78b&aw_0_1st.episodeid=84326996-e085-478c-bb57-41342625a1b1&listeningSessionID=9f98f544-ad47-495b-a361-cdbe55a0fe74
 with timeout 30]
  [21-09-01 13:11:22.2112] Slim::Formats::RemoteStream::request (144) Request: 
GET 
/e411a1bc-51cf-4e0e-b9c7-139bc833b78b/da6f67c6-f025-4db9-920a-3a7fc69e4f81.m4a?aw_0_1st.channelid=d2bf085f-d4e0-4a6b-80d6-75d92bf0fcae&aw_0_1st.showid=e411a1bc-51cf-4e0e-b9c7-139bc833b78b&aw_0_1st.episodeid=84326996-e085-478c-bb57-41342625a1b1&listeningSessionID=9f98f544-ad47-495b-a361-cdbe55a0fe74
 HTTP/1.0
  Cache-Control: no-cache
  Connection: close
  Accept: */*
  Host: catchup.thisisdax.com
  Range: bytes=931694-64128512
  User-Agent: iTunes/4.7.1 (Linux; N; piCore; armv7l-linux; EN; utf8) 
SqueezeCenter, Squeezebox Server, Logitech Media Server/8.2.0/1627922070
  Icy-MetaData: 1
  
  [21-09-01 13:11:22.3262] Slim::Formats::RemoteStream::request (151) Response: 
HTTP/1.1 416 RANGE NOT SATISFIABLE
  



So it is failing becase the GET on the stream is returning an HTTP error
of : 416 RANGE NOT SATISFIABLE

I'm assuming their server doesn't like the values in the "Range" HTTP
header, but this is beyond my knowledge to know whether this is Global
being over picky or a problem in LMS M4a streaming or neither.  (the URL
works fine in VLC for example).

Are there any M4a LMS remote streaming experts out there who can help?



Stuart McLean   

EXPECTINGTOFLY PLUGINS :

- *BBC Sounds* : 
  https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin 
- *Virgin Radio (UK)* : 
  https://github.com/expectingtofly/LMS_Virgin_Radio_Plugin 
- *Times Radio* : 
  https://github.com/expectingtofly/LMS_TIMES_RADIO_PLUGIN 
- *Global Player (UK)* : 
  https://github.com/expectingtofly/LMS_GlobalPlayer_Plugin 
  
For BBC Sounds help see the 'BBC Sounds 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=115070

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] BBC Sounds

2021-07-01 Thread expectingtofly


Dodeth wrote: 
> Apologies if this issue has been dealt with elsewhere, but is anyone
> else using BBC Sounds finding themselves having to repeatedly sign in on
> LMS?

When you sign in, the plugin gets a token that is stored as a "cookie".
That cookie should last for a couple of years, so you shouldn't need to
repeatedly sign in.  So something is going wrong
Next time it asks you to sign in check your cookie file and see if
everything is ok.LMS stores the cookies in a plain text
"cookies.dat" file on picoreplayer it is in
/usr/slimserver/cache/cookies.dat

You should see something like this.  A cookie named ckns_id :
35109

With an expiry date in a couple of years : 

35110


Alternatively, next time it happens, set the bbc sounds logging to
debug, try to access something in BBC Sounds and send me the log.


+---+
|Filename: Screenshot 2021-07-01 11.41.50.png   |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=35110|
+---+


Stuart McLean   

EXPECTINGTOFLY PLUGINS :

- *BBC Sounds* : 
  https://github.com/expectingtofly/LMS_BBC_Sounds_Plugin 
- *Virgin Radio (UK)* : 
  https://github.com/expectingtofly/LMS_Virgin_Radio_Plugin 
- *Times Radio* : 
  https://github.com/expectingtofly/LMS_TIMES_RADIO_PLUGIN 
- *Global Player (UK)* : 
  https://github.com/expectingtofly/LMS_GlobalPlayer_Plugin 
  
For BBC Sounds help see the 'BBC Sounds 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=114777

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Logitech Media Server 8.0.0 released!

2020-12-05 Thread expectingtofly


d6jg wrote: 
> @bpa am I correct in thinking that BBC Sounds plugin still requires BBC
> iPlayer plugin for playback purposes?

No, that was the case in the early releases, since version 2.0.0 it is
no longer the case.



expectingtofly's Profile: http://forums.slimdevices.com/member.php?userid=63263
View this thread: http://forums.slimdevices.com/showthread.php?t=113282

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter