Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    20,871

    BBCiPlayer - possible fix for live stream start delay on Windows systems

    I think I have found a fix for the start delay of live streams on Windows 10 systems for player that need transcoding (e.g. Boom, SB3, Transporter). As this is a test which may have iterations & interactions, I have started this new thread to avoid cluttering up main support thread on what might be a dead end..

    I'd like to have this fix tested on a variety of systems and on UK higher speed streams.

    The fix requires LMS to be a build of 7.9.1 and later than 6-Jul-2017 as the fix depends on a bug fix to LMS.

    If LMS is 7.9.0 or earlier then the code change will not be activated and so no change in playback.

    If LMS does not have the 6-Jul-2017 fix then, when playing live BBC stream on device which can play AAC natively (e.g Radio, Touch, Squeezelite) the server.log will get filled with very very many "Error: Select task failed " messages - depending on start delay.

    I have attached a replacement DASH.pm file. I have tested on a Win 10 system which had start problems and on a Win 7 which did not. I have also tested on an Ubuntu system.

    Please report if there are any side effects such as increased CPU load.

    Initially I am not releasing a repo with the fix to avoid splitting the user base which happened with previous test updates.

    Instructions - read all the steps before trying them.

    1. Download the attached file DASH.pm.txt into a known directory (e.g. Downloads)
    2. Stop LMS.
    3. Use File Manager to open directory with BBCiPlayer plugin file - usually \ProgramData\Squeezebox\Cache\InstalledPlugins\Plu gins\BBCiPlayer - to see directory you may need to enable "Show hidden files and folders" under File Explorer Options.
    4. Copy the downloaded DASH.pm.txt file into the BBCiPlayer plugin directory
    5. Rename the current DASH.pm to DASH.pm.org - saving the file makes it easier to revert.
    6. Rename the DASH.pm.txt to DASH.pm
    7. Start LMS and test with "Seconds to start live stream" set to "no delay"
    Attached Files Attached Files
    Last edited by bpa; 2018-12-17 at 05:26. Reason: added advice to show hidden directories.

  2. #2
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    4,771
    Just given this a quick test.

    No difference, set at "no delay" average time 14 secs to hearing sound. I used three separate stations into a Squeezebox radio.

    First I had to enable "Show hidden files and folders" under File Explorer Options (Appearance and Personalisation) in Control Panel.

    Intel i7 CPU 860 @ 2.80GHz
    8GB ram, 64 bit.
    Windows 10Pro version 1803 OS build 171344.471
    Logitech Media Server Version: 7.9.2 - 1544453860 @ Mon Dec 10 16:08:31 WEST 2018
    Hostname: Cooler-Master
    Server IP Address: 192.168.*.*
    Server HTTP Port Number: 9000
    Operating system: Windows 10 - EN - cp1252
    Platform Architecture: 8664
    Perl Version: 5.14.1 - MSWin32-x86-multi-thread
    Audio::Scan: 0.95
    IO::Socket::SSL: 2.024
    Database Version: DBD::SQLite 1.58 (sqlite 3.22.0)
    Total Players Recognized: 1
    ronnie
    Attached Files Attached Files

  3. #3
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    20,871
    Quote Originally Posted by Man in a van View Post
    Just given this a quick test.

    No difference, set at "no delay" average time 14 secs to hearing sound. I used three separate stations into a Squeezebox radio.
    The long standing problem that it is fixing wasn't showing with Radios etc. which can play AAC natively - just device which need transcoding - Boom, SB3, receiver etc..

    Do you have aporblem with Radio playing live streams ?


    First I had to enable "Show hidden files and folders" under File Explorer Options (Appearance and Personalisation) in Control Panel.
    Forgot this on a Win 10 nanny system.
    Last edited by bpa; 2018-12-17 at 04:15.

  4. #4
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    20,871
    Ronnie,
    your log has this
    Code:
    18-12-17 10:39:48.4984] Slim::Utils::Misc::msg (1252) Warning: [10:39:48.4980] EV: error in callback (ignoring): substr outside of string at /<C:\PROGRA~2\SQUEEZ~1\server\SQUEEZ~3.EXE>AnyEvent/DNS.pm line 534.
    [18-12-17 10:39:48.4993] Slim::Utils::Misc::msg (1252) Warning: [10:39:48.4990] EV: error in callback (ignoring): substr outside of string at /<C:\PROGRA~2\SQUEEZ~1\server\SQUEEZ~3.EXE>AnyEvent/DNS.pm line 534.
    [18-12-17 10:39:48.5003] Slim::Utils::Misc::msg (1252) Warning: [10:39:48.5000] EV: error in callback (ignoring): substr outside of string at /<C:\PROGRA~2\SQUEEZ~1\server\SQUEEZ~3.EXE>AnyEvent/DNS.pm line 534.
    [18-12-17 10:39:53.5652] Plugins::BBCiPlayer::DASH::__ANON__ (780) Chunk fetch status 200 Long chunk fetch time 12117   1000
    [18-12-17 10:39:53.5786] Plugins::BBCiPlayer::DASH::__ANON__ (780) Chunk fetch status 200 Long chunk fetch time 12127   1000
    [18-12-17 10:39:53.5961] Plugins::BBCiPlayer::DASH::__ANON__ (780) Chunk fetch status 200 Long chunk fetch time 12146   1000
    [18-12-17 10:40:29.5484] Slim::Utils::Misc::msg (1252) Warning: [10:40:29.5481] EV: error in callback (ignoring): substr outside of string at /<C:\PROGRA~2\SQUEEZ~1\server\SQUEEZ~3.EXE>AnyEvent/DNS.pm line 534.
    1. BBC is taking 12 secs to reply to requests.
    2. Strange error with AnyEvent/DNS.pm. Don't know where this is coming from.

  5. #5
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    4,771
    Quote Originally Posted by bpa View Post
    Do you have a problem with Radio playing live streams ?
    No, just the delay if using a Windows server






    Quote Originally Posted by bpa View Post
    Ronnie,
    your log has this
    Code:
    18-12-17 10:39:48.4984] Slim::Utils::Misc::msg (1252) Warning: [10:39:48.4980] EV: error in callback (ignoring): substr outside of string at /<C:\PROGRA~2\SQUEEZ~1\server\SQUEEZ~3.EXE>AnyEvent/DNS.pm line 534.
    [18-12-17 10:39:48.4993] Slim::Utils::Misc::msg (1252) Warning: [10:39:48.4990] EV: error in callback (ignoring): substr outside of string at /<C:\PROGRA~2\SQUEEZ~1\server\SQUEEZ~3.EXE>AnyEvent/DNS.pm line 534.
    [18-12-17 10:39:48.5003] Slim::Utils::Misc::msg (1252) Warning: [10:39:48.5000] EV: error in callback (ignoring): substr outside of string at /<C:\PROGRA~2\SQUEEZ~1\server\SQUEEZ~3.EXE>AnyEvent/DNS.pm line 534.
    [18-12-17 10:39:53.5652] Plugins::BBCiPlayer::DASH::__ANON__ (780) Chunk fetch status 200 Long chunk fetch time 12117   1000
    [18-12-17 10:39:53.5786] Plugins::BBCiPlayer::DASH::__ANON__ (780) Chunk fetch status 200 Long chunk fetch time 12127   1000
    [18-12-17 10:39:53.5961] Plugins::BBCiPlayer::DASH::__ANON__ (780) Chunk fetch status 200 Long chunk fetch time 12146   1000
    [18-12-17 10:40:29.5484] Slim::Utils::Misc::msg (1252) Warning: [10:40:29.5481] EV: error in callback (ignoring): substr outside of string at /<C:\PROGRA~2\SQUEEZ~1\server\SQUEEZ~3.EXE>AnyEvent/DNS.pm line 534.
    1. BBC is taking 12 secs to reply to requests.
    2. Strange error with AnyEvent/DNS.pm. Don't know where this is coming from.
    Just tried 2 stations on a Boom, same delay time

    I don't often use the LMS on the Windows Desktop, just keep it rolling as a backup really.

    ronnie
    Attached Files Attached Files

  6. #6
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    20,871
    Quote Originally Posted by Man in a van View Post
    Just tried 2 stations on a Boom, same delay time
    Hmmm. You're still getting long 12 sec delay from BBC - which seems too similar to the delay you are experiencing and since you get the delay with Radio - I'm not convinced it is the same issue.

    You've also got the frequent AnyEvent/DNS.pm error which I don't see - again possibly nothing to do with BBCiPlayer plugin but it is happening every 5-6 secs which is about the time period for BBC chunks - it makes me suspicious. Our system specs are very similiar, same LMS build, I use Win 10 Home i7-8700 @ 3.2GHz

    What is your DNS server setting on Windows ?

  7. #7
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    4,771
    Quote Originally Posted by bpa View Post
    Hmmm. You're still getting long 12 sec delay from BBC - which seems too similar to the delay you are experiencing and since you get the delay with Radio - I'm not convinced it is the same issue.

    You've also got the frequent AnyEvent/DNS.pm error which I don't see - again possibly nothing to do with BBCiPlayer plugin but it is happening every 5-6 secs which is about the time period for BBC chunks - it makes me suspicious. Our system specs are very similiar, same LMS build, I use Win 10 Home i7-8700 @ 3.2GHz

    What is your DNS server setting on Windows ?
    Well, DNS is a bit out of my comfort zone.

    I checked here

    Name:  1.jpg
Views: 139
Size:  120.6 KB

    Blank as you can see.

    I have in the past flushed the DNS several times, so tried that again, but it made no difference.

    I then chnaged the Router settings from

    Name:  2.png
Views: 139
Size:  34.0 KB

    to

    Name:  3.png
Views: 138
Size:  33.9 KB

    Rebooted and played BBC radio3 into the Boom, no change.

    Is it worth resetting the router , do you think? Everything seems to be working fine

    I would not want your new thread, to start off, going up a creek (if you see what I mean)

    ronnie
    Attached Files Attached Files

  8. #8
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    20,871
    Quote Originally Posted by Man in a van View Post
    Well, DNS is a bit out of my comfort zone
    I'm using same DNS - google. The error points to a line parsing the DNS reply which is very odd as this code has been unchanged for years except for one change in last month but I'm using same version.

    I'm now not sure whether your BBC long delays are due to BBC being late or the DNS failing or a combination but the DNS error does not happen anywhere else except when playing BBCiplayer - they do seem to be linked. I wonder if it is a side effect of the change in the new DASH.pm file.

    If you revert back to the original DASH.pm - do you get the same long delays and DNS error ?

  9. #9
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    4,771
    Quote Originally Posted by bpa View Post

    If you revert back to the original DASH.pm - do you get the same long delays and DNS error ?
    Yep,

    reverted to the original file and rebooted.

    Tried radio 6 and it seemed to take a long time

    Changed to radio 3 and ued my timer, 52 sec before I could hear the playback.
    Attached Files Attached Files

  10. #10
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    20,871
    Quote Originally Posted by Man in a van View Post
    Yep,

    reverted to the original file and rebooted.

    Tried radio 6 and it seemed to take a long time

    Changed to radio 3 and ued my timer, 52 sec before I could hear the playback.
    Thanks, OK that's good. It means fix seems to do something right on your system and DNS error is still there so it is not a side-effect of the change.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •