Home of the Squeezebox™ & Transporter® network music players.
Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 43
  1. #21
    Senior Member
    Join Date
    May 2006
    Location
    Silicon Valley
    Posts
    577
    Quote Originally Posted by philippe_44 View Post
    I can only guess at that time that the regular stream are infinite streams, so the HTTP server might behave differently when there is no content-length.

    I also tried to think of a resume solution, but the way LMS and plugins are architectured, it seems very difficult
    Question: is LMS using the system's installed version of openssl, or is it using a copy that it brings with it?
    Living Room: SB Touch + DIY PSU > CI Audio VDA.2 DAC + VAC.1 PSU > VRX.1 cables > Emotiva XSP-1 Gen 2 preamp + XPA-DR2 amp > Blue Jeans cables > B&W 804 speakers
    Laptop: System76 Galago + Ubuntu 16.04 + Squeezelite + Vivaldi/Material Skin > Emotiva Little Ego DAC > Grado PS500 headphones
    Phone: Pixel 3a Phone + SB Player + Material web app > Bluetooth > Bose SoundLink Revolve
    Server: Puget Systems Serenity + Ubuntu 18.04 + LMS 8.0
    Music: Personal FLAC, Radio Paradise FLAC, Qobuz, Spotify

  2. #22
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    5,692
    Quote Originally Posted by Ron F. View Post
    Question: is LMS using the system's installed version of openssl, or is it using a copy that it brings with it?
    AFAIK, it's using the system's openSSL
    LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5

  3. #23
    Senior Member
    Join Date
    May 2006
    Location
    Silicon Valley
    Posts
    577
    Quote Originally Posted by philippe_44 View Post
    AFAIK, it's using the system's openSSL
    OK - thank you. My home server is running Ubuntu 18.04.3. I re-installed openssl-1.1.1, released last Sept 11, 2018, to no effect - the issue persisted. I then installed openssl-1.1.1d, the latest stable version released this past Sept 10, 2019 - the issue persists. I need to stream one of the RP FLAC Interactive streams much longer to know whether there is any improvement, but I have already experienced a long delay (~80 seconds,) followed by a restart that set me back several songs again.

    I suppose I could build the openssl master branch, which is going to be 1.1.1e when released, and try that, but I have no confidence it will make any difference.

    Nothing I have done has ever made any difference whatsoever. If there is a crypto error occurring in openssl, then people smarter than me are going to have to deal with it.

    Edit: regardless of the error, I just wish the occasional long delays could be eliminated - that by itself would take care of the issue for the most part, from a user's perspective.
    Last edited by Ron F.; 2019-11-11 at 22:20.
    Living Room: SB Touch + DIY PSU > CI Audio VDA.2 DAC + VAC.1 PSU > VRX.1 cables > Emotiva XSP-1 Gen 2 preamp + XPA-DR2 amp > Blue Jeans cables > B&W 804 speakers
    Laptop: System76 Galago + Ubuntu 16.04 + Squeezelite + Vivaldi/Material Skin > Emotiva Little Ego DAC > Grado PS500 headphones
    Phone: Pixel 3a Phone + SB Player + Material web app > Bluetooth > Bose SoundLink Revolve
    Server: Puget Systems Serenity + Ubuntu 18.04 + LMS 8.0
    Music: Personal FLAC, Radio Paradise FLAC, Qobuz, Spotify

  4. #24
    Senior Member
    Join Date
    Jan 2010
    Location
    Hertfordshire
    Posts
    4,057
    Quote Originally Posted by Ron F. View Post
    OK - thank you. My home server is running Ubuntu 18.04.3. I re-installed openssl-1.1.1, released last Sept 11, 2018, to no effect - the issue persisted. I then installed openssl-1.1.1d, the latest stable version released this past Sept 10, 2019 - the issue persists. I need to stream one of the RP FLAC Interactive streams much longer to know whether there is any improvement, but I have already experienced a long delay (~80 seconds,) followed by a restart that set me back several songs again.

    I suppose I could build the openssl master branch, which is going to be 1.1.1e when released, and try that, but I have no confidence it will make any difference.

    Nothing I have done has ever made any difference whatsoever. If there is a crypto error occurring in openssl, then people smarter than me are going to have to deal with it.

    Edit: regardless of the error, I just wish the occasional long delays could be eliminated - that by itself would take care of the issue for the most part, from a user's perspective.
    Does anyone know why these interruptions started happening? For me the interactive stream seemed to play properly until a few months ago when I first mentioned it in this thread. It seems odd that it would suddenly break. Did something change?

    Sent from my SM-G900F using Tapatalk

  5. #25
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    5,692
    Quote Originally Posted by slartibartfast View Post
    Does anyone know why these interruptions started happening? For me the interactive stream seemed to play properly until a few months ago when I first mentioned it in this thread. It seems odd that it would suddenly break. Did something change?

    Sent from my SM-G900F using Tapatalk
    I don’t think anything changed on our side. But as said above, a few month ago when I made these test programs, I had exactly the same problems as soon as I introduced the ‘pause’ and these tests have no link at all with LMS. Something might have changed on RP’s plumbing side. So far the best would have been to avoid the pauses but I did not find a convenient way to do that. Nothing bitrate based was reliable
    LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5

  6. #26
    Senior Member
    Join Date
    Feb 2011
    Location
    Cheshire, UK
    Posts
    4,689
    You can't use this with Michael's plugin but you you can force the regular streams to use a particular server rather than the load balancer by replacing "stream" in the URL with "icy-X"

    This from an old RP Forum post
    "Wasn't aware of any issues with the load balancer. But your solution on that is indeed correct. icy-4 and icy-5 will directly call our servers in London, icy-6 or icy-8 in Texas, icy-7 in Virginia."

    There are also icy-1, 2 & 3 but I do not know where they are

    Name:  2019-11-12 12_21_43-Command Prompt - nslookup.png
Views: 78
Size:  13.3 KB
    VB2.4 storage QNAP TS419p (NFS)
    Living Room - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s
    Office - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3 -> Onkyo CRN755 -> Wharfedale Modus Cubes
    Dining Room -> SB Boom
    Kitchen -> UE Radio (upgraded to SB Radio)
    Bedroom (Bedside) - Pi2+DAC ->ToppingTP21 ->AKG Headphones
    Bedroom (TV) - SB Touch ->Sherwood AVR ->Mordaunt Short M10s
    Everything controlled by iPeng

  7. #27
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,032
    Quote Originally Posted by Ron F. View Post
    Question: is LMS using the system's installed version of openssl, or is it using a copy that it brings with it?
    LMS uses perl IO::Socket::SSL, which then uses the system openssl for connections (I wonder if the perl module version makes a difference), however LMS is only used if you are using proxied streaming. If the player supports SSL, then the players SSL is what matters. If the player does not support SSL, then LMS will automatically proxy. However, I'm not sure how SSL plays into this. I was doing a test over the weekend, and the connections to RP were not secured. The music was streaming over plain HTTP. (Both in the interactive and continuous stream)

    When playing the continuous stream, data is fed to the player at a nice controlled pace from the server. When the interactive stream is played, the server tries to send the whole file all at once, so the file fills the player and network receive buffers. I wonder what happens if you increase your player buffer to hold more data.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  8. #28
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    5,692
    Quote Originally Posted by paul- View Post
    When playing the continuous stream, data is fed to the player at a nice controlled pace from the server. When the interactive stream is played, the server tries to send the whole file all at once, so the file fills the player and network receive buffers. I wonder what happens if you increase your player buffer to hold more data.
    That makes sense. The continuous is treated as a live stream so data is produced piece by piece where the interactive are files (blocks of 2 to 5 tracks) so it can be grabbed as fast as possible. That corroborates what I’ve seen.
    LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5

  9. #29
    Senior Member
    Join Date
    May 2006
    Location
    Silicon Valley
    Posts
    577
    Quote Originally Posted by paul- View Post
    LMS uses perl IO::Socket::SSL, which then uses the system openssl for connections (I wonder if the perl module version makes a difference), however LMS is only used if you are using proxied streaming. If the player supports SSL, then the players SSL is what matters. If the player does not support SSL, then LMS will automatically proxy. However, I'm not sure how SSL plays into this. I was doing a test over the weekend, and the connections to RP were not secured. The music was streaming over plain HTTP. (Both in the interactive and continuous stream)

    When playing the continuous stream, data is fed to the player at a nice controlled pace from the server. When the interactive stream is played, the server tries to send the whole file all at once, so the file fills the player and network receive buffers. I wonder what happens if you increase your player buffer to hold more data.
    Thank you for this. I do not understand how SSL works; I have some reading to do. From my use of Wireshark this past weekend and watching RP FLAC packets on their way to LMS, I did not see anything related to SSL - but I did not understand the implication of that at the time. Playing with different releases of openssl was not going to make any difference, and indeed - it did not.

    I have tried playing with the LMS network settings in the past, and setting "Radio Station Buffer Seconds" to it's max: 30, has not make any difference. Enabling "Proxied Streaming" never made much if any difference either. Does Proxied Streaming cause LMS to create an additional buffer on the server? Regardless, if the interactive stream is attempting to download an entire file all at once, then this sounds like an ftp download! If every time Bill does a station announcement represents the start of a new file, then we could be talking about a GByte of data. Ouch - I am surprised this works as well as it does! There are all kinds of timeouts that might occur causing this to fail, and the RP server attempts to restart the download ... from the beginning.

    When streaming Interactive, wouldn't the RP plugin then need to offload all this data into a temporary file? A buffer in memory big enough to solve the issue would be impractical. The TCP Rx buffer is going to fill and I imagine timeout if the plugin does not read out the data and store it somewhere. Is the LMS RP plugin relying on the network stack to control the connection, to close the connection for instance when there is a problem?

    If LSM RP plugin is only reading sufficient data out of the network stack to fill a 30 second buffer, then I doubt that buffer size is going to matter if the RP server is trying to shove a file's worth of data to LMS. It also seems likely that increasing the size of the TCP Rx Buffer in the LMS server network stack is not going to help either. I imagine then the only solution is that the RP plugin needs to be able to store a LOT of data into a temporary FIFO file on the server's HDD.

    While writing this, I have experienced two long delays, followed by restarts in the RP Main FLAC Interactive stream.
    Last edited by Ron F.; 2019-11-12 at 11:12.
    Living Room: SB Touch + DIY PSU > CI Audio VDA.2 DAC + VAC.1 PSU > VRX.1 cables > Emotiva XSP-1 Gen 2 preamp + XPA-DR2 amp > Blue Jeans cables > B&W 804 speakers
    Laptop: System76 Galago + Ubuntu 16.04 + Squeezelite + Vivaldi/Material Skin > Emotiva Little Ego DAC > Grado PS500 headphones
    Phone: Pixel 3a Phone + SB Player + Material web app > Bluetooth > Bose SoundLink Revolve
    Server: Puget Systems Serenity + Ubuntu 18.04 + LMS 8.0
    Music: Personal FLAC, Radio Paradise FLAC, Qobuz, Spotify

  10. #30
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    5,692
    The RP plugin is not involved in buffering. It simply leaves LMS do the data transfer job, there was no reason I think to overload any low level functions.

    In interactive streams, the audio is split into ~20 mins blocks of 2-5 tracks with a couple of announcements at the beginning or the end (maybe in the middle, I don’t remember). The metadata describes the tracks in the block.

    So worse case the size would be about 20 mins of flac at around 850kbits/s.

    To download the whole thing would be an important architecture change with the need to overload low level functions like sysread and feed them with the downloaded file made in // with series of asyncread. And of course you need to erase the file when acquired and have a different process when using regular stream otherwise you’ll have infinite files (I’ve been through that with v1 of my UPnP and cast plugins)

    A good amount of complications. I don’t know with @mherger thinks, this is his plugin
    LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5

Posting Permissions

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