Re: [SlimDevices: SqueezeCenter] HowTo: Get radio streams from TVHeadend server
Great, so it works for you? How's the current master build? I've tried that 2 months ago and had a terrible mess with my recordings, so I went back to 4.2.3 stable ... netmax's Profile: http://forums.slimdevices.com/member.php?userid=67551 View this thread: http://forums.slimdevices.com/showthread.php?t=108276 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Internet radio stream setting has no effect
Hi, after some days and a weekend of listening I can confirm it *is* the server. I've shot out an email to Radiotunes/DI pointing to that. Thank you all for your support! netmax's Profile: http://forums.slimdevices.com/member.php?userid=67551 View this thread: http://forums.slimdevices.com/showthread.php?t=108282 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Internet radio stream setting has no effect
bpa wrote: > I don't use VPNs so I can't go into great details but from other users, > I know VPNs can cause "odd" problems - is it a real VPN or just one that > messes with DNS ? > Just to confirm the audio stream are normal stream used by many users > and not just a niche stream which serves only a small number of users ? > Do the servers in different countries belong to CDN such as Akamai, > Limelight etc. - you can tell by the URL of the station The VPN is not in place between my LMS server and the radio stream! VPN is only used between my office PC and my servers at home to be able to stream the music from my LMS (OpenVPN connection). The LMS gets the internet radio streams via "normal" internet connection. The audio streams are from audioaddict (https://www.audioaddict.com). Servers are i.e.: prem1.radiotunes.com (US, near NYC) prem2.radiotunes.com (Amsterdam, Europe) prem4.radiotunes.com (US, near NYC) I guess 1 and 4 are hosted in their own datacenter (and they seem to be stable so far!). 2 is the Europe server and it introduces itself as a CDN: Code: inetnum:185.76.10.0 - 185.76.10.255 netname:CDN77-AMSTERDAM-3 descr: CDN77.com Amsterdam (Netherlands) POP country:NL admin-c:DLTS1-RIPE tech-c: DLTS1-RIPE status: ASSIGNED PA mnt-by: DATACAMP-MNT mnt-by: SUPERNETWORK-MNT However, that CDN network is unknown for me. LMS uses that one when the Playlist link is used (I guess because of the better ping?). But that one seems to be the one causing the drops, the US servers are playing well so far. I need to negotiate that a bit more. I'd be happy if the issues can be tracked down to a particular server. If the US servers are fine after some days, I'll shoot a mail to Audioaddict pointing out the issue. But I need more input here which can only be gained by listening more hours on the US server. netmax's Profile: http://forums.slimdevices.com/member.php?userid=67551 View this thread: http://forums.slimdevices.com/showthread.php?t=108282 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Internet radio stream setting has no effect
Hi @bpa, > Please describe your network setup in detail as I think this is the > first time you have said Squeezeplay was over VPN but Airplay was local > to LMS. Does that means Airplay device does not involve VPN even to the > station (e.g. wired locally to LMS) ? The VPN is only in place to connect my computer in the office to my home server to listen music here. It's a SqueezePlayer running on Windows. All Airplay devices are at home, without any VPN and all with a direct wired connection to my home network (including my servers). I've checked the three servers in the .pls file. Two are located in the US (~100ms ping time), one is in Amsterdam/Netherlands with 14ms ping time. I've now changed the link in LMS from the .pls link to the direct stream links, so I can exclusively choose the server and LMS does not all this negotiating when starting the playback to get the best server. It seems the "best" server might not be the best server. The Netherlands is quite close to Germany where I'm located, the ping is ways better but this stream seem to face issues by lagging for sometimes more than 10 seconds. I see at least >2 packets every second in the wireshark traces (more than 1.5 kilobyte ... I'd have expected less for a 128 kBit/s AAC stream), but if the playback is fine that can be seen constantly. The huge gaps, if occurring, causes the hickups in playback. The US server, even with a 7 times worse ping ran pretty stable without any issues during the afternoon. I'll play around a bit with the different servers and let you know the outcome. Maybe the NL server is the issue ... netmax's Profile: http://forums.slimdevices.com/member.php?userid=67551 View this thread: http://forums.slimdevices.com/showthread.php?t=108282 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Internet radio stream setting has no effect
OK, I've had a 3-4 seconds break here and I had a look to my capture ... that one looks like a lag from the radio station server. One lag of 5 seconds and then another one for 7 seconds ... too much for any buffering. +---+ |Filename: streamlag1.jpg | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=24058| +---+ netmax's Profile: http://forums.slimdevices.com/member.php?userid=67551 View this thread: http://forums.slimdevices.com/showthread.php?t=108282 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Internet radio stream setting has no effect
Hi, > > In a normal http/MP3 ort http/AAC stream there should be no RST as a RST > terminates the connection. So I'm not sure you are interpreting the > streams/ dumps correctly. > RST usually indicates a link which has problems. > I know ... but that happened all in what looks like an "initial phase". LMS opens a connection to all 3 stream servers in the .pls file, it seems to negotiate what stream is the best (??) and finally settles with one of them. Once there is only one connection left, the RST's do not happen. > > Can yoiu clarify by what you mean by buffering - do you seen the word > "rebuffering"on the player ? > Yesterday afternoon in the office - yes. The Squeezeplayer on the PC showed rebuffering message. But that's not a "reference player" as it's connected via internet and VPN to my home server. At home with the AirPlay bridge I have no display which shows who is buffering. However, on my 1GBit/s wired network there should be no issues at all. I have set up now a constantly running tshark capture on the netif to the outside world on my LMS server, using rotating buffers. So the next gaps in playback seen at home should show me if that's a lag on the link to the radio station. > > You don't need to add 'debug' to my plugin, but you need to go in my > plugin's settings (*not* in LMS logging) and here, just make sure that > logging is enabled (should be by default), clean the log (do *not* set > extra debugging) and start playing. Logs are stored in a separated file > that you can view direclty in your browser, see the link in the plugin's > settings > Good to know, that logging was off. I've enabled this and turned the logger category for the AirPlay bridge back to "Error" in the LMS settings. netmax's Profile: http://forums.slimdevices.com/member.php?userid=67551 View this thread: http://forums.slimdevices.com/showthread.php?t=108282 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Internet radio stream setting has no effect
Good evening :-) Thank you for your discussions, there are many interesting informations. I love working communities with engaged people, thank you for that! ;) Input causes questions :D but first what I did today. Normal work day, so not much time to play around, but listening via VPN in the office as background via Squeezeplayer on the PC (so another potential lag candidate). 3 hours in the morning ran pretty well without any issues or buffering! I've spent my lunch break by remotely doing some TCPDumps on my server, got them remote and had a look in Wireshark. Interesting! The .pls link of my Radiotunes station contains 3 different server links, for every server a TCP connection is opened, many full packets (between 1000 and 1400 byte packets) are transferred, then every connection receives more or less early around 15-20 TCP RST packets from the LMS server :eek: It seems that LMS then settles with one of the streams. Still there are a couple of huge packets in a short time at the beginning, which might be (?) pre-buffering. In the afternoon I've had several buffering events - no congestion in the office internet connection neither at home, so maybe more load on the station when the US got awake :) ... which shouts for proper buffering in LMS. A word to logging: I've preselected "Internetradio" and then added the debug for Philippe's plugin - but when a buffering event occurs, there is absolute nothing in the logs. Is there any logger category I've overlooked which includes information for the external stream reception and/or buffering? Coming back to your input: > 3. The "Radio Statio Buffer seconds" setting is an estimation at how > much audio "rtime" should be stored in player before playing starts. The > player actually requires a number in bytes so an estimate has to be made > converting seconds to bytes and this depends on the incoming format and > whether stream data such as bit rate is available to estimation routine. That worries me *who* is doing the buffering. I'm running all players on "Proxied" setup. Is the buffer a "centralized" input buffer @LMS server and/or in the players. Or both? > 4. If the incoming stream is "Live" then it is not possible to fill > buffers quicker than realtime which resultsin delay in starting program > playback. Whereas a recorded program can often be downloaded and buffers > can be filled in much less time than it takes to play so no appreciable > delay before audio starts. Radiotunes and Digitally Imported is just music. No voice, no time, no announcements, no commercials (for premium users). So it's more "pseudo-live" live and it might be able to prebuffer. Nevertheless ... using the app @my iPhone does not give me any buffering gaps, nor does "Tapin Radio" playing the stream on Windows 10. So I can't say the streams are generally laggy. Regardless of the used Codec and transcoding - if the player is set to "proxied", LMS should do the buffering, right? > GGMM E5 ... that player caused me a lot of problems with my plugin, I > had to rewrite the whole streaming part for it . So yes it works, it's > convenient as it's very portable and sound is not bad (it's just a > portable speaker, though). Still, it can be a bit temperamental, it has > some delays when starting and sometimes (not often) misses > synchronization, or has a false start then catches up. So, if what > matters for you is portability, correct sound and good battery life, > it's a good device. If you want to minimize small playback hickups, or > have low tolerance for that kind of things, it might not be ideal I just want to use this as a portable speaker for outside. I've used a JBL Flip 3 via Bluetooth last summer and with the new shiny LMS I'd like to be independent from any iPhone streaming (which also draws battery during the day). Fire the station via iPeng and forget is what I want. The sound should not be worse than my JBL Flip3, of course. :cool: InHouse I'm mostly streaming to my AVR (main application, living room) or to my "private club" in the cellar when I'm not running Serato or my good old analog turntables - then I'm using a program which is an AirPlay receiver on my music PC downstairs. Have a great evening! netmax's Profile: http://forums.slimdevices.com/member.php?userid=67551 View this thread: http://forums.slimdevices.com/showthread.php?t=108282 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Internet radio stream setting has no effect
OK, I've read a bit in the Shoutcast spec and about prebuffering ... so it's possible to fill buffers fast :D Seems I need to get Wireshark in place to have a look what's going on there ... netmax's Profile: http://forums.slimdevices.com/member.php?userid=67551 View this thread: http://forums.slimdevices.com/showthread.php?t=108282 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Internet radio stream setting has no effect
@bpa ... just thinking about what you said. Why has the stream format, transcoding etc. an effect to the stream buffer? In my understanding the stream buffer should be the first thing where the incoming stream packets from the netif run into. They are buffered for the amount of seconds in a FIFO way and then passed to the next LMS "module" for further processing (transcoding, routing to the players ...) Basically your words tell me that it's working different in LMS. I'd like to understand it to fix the issue, i.e. if some configuration changes are needed in a deeper place than the settings web interface. It'll be awesome if you can point me to some docs which may help me here. Currently I've a drop every 20-30 minutes which lowers the WAF dramatically ;-) netmax's Profile: http://forums.slimdevices.com/member.php?userid=67551 View this thread: http://forums.slimdevices.com/showthread.php?t=108282 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Internet radio stream setting has no effect
My initial post worked directly, my answer has been put into moderation queue ... I have a feeling this forum software is a kind of buggy :mad: I'll wait if it appears here before I retype anything again ... netmax's Profile: http://forums.slimdevices.com/member.php?userid=67551 View this thread: http://forums.slimdevices.com/showthread.php?t=108282 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
[SlimDevices: SqueezeCenter] Internet radio stream setting has no effect
Hi, I'm mostly streaming internet radio stations via my LMS to my AirPlay devices. Sometimes I'm facing connection issues (drops of a 2-3 seconds or the stream stops at all while the player is still in "play" mode and counting the time, which is strange). So I've started to increase the "Radio station buffer seconds" in LMS in "Advanced" -> "Network". Strangely this has no effect at all! All players are set to "proxied" as the streaming method. Even when I set the buffer to the max of 30 seconds for a test and I start a radio station, it starts playing after around 3-4 seconds. My understanding of how a buffer works is that if it's set to 30 seconds, that it'll fill up the buffer for 30 seconds before it can start playing. But regardless of the setting here, it always starts the stream after a few seconds. What do I overlook here? I don't want to have a 30 sec buffer, that's just a test which proves that the setting seems to have no effect at all ...?!? I'm running version 7.9.0 netmax's Profile: http://forums.slimdevices.com/member.php?userid=67551 View this thread: http://forums.slimdevices.com/showthread.php?t=108282 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Stream issues when login is enabled - "Connections require authentication"
epoch1970 wrote: > Don't do that. > > To access LMS across the Internet, the solution is to setup a VPN. There > are scripts on the Internet that attacks LMS, a password-protected > instance wouldn't last long. > With a VPN you don't need password protection. Thanks for the advise, I've now only enabled the web interface via my web proxy, SSL encrypted and login protected, kept the LMS server itself (internally) unprotected and do the player/iPeng access on the road via OpenVPN access to my home servers. Also Philippe pointed that the LMS auth has some secure issues ... did not know this as a new user :) netmax's Profile: http://forums.slimdevices.com/member.php?userid=67551 View this thread: http://forums.slimdevices.com/showthread.php?t=108266 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
[SlimDevices: SqueezeCenter] HowTo: Get radio streams from TVHeadend server
Hi, I've discovered the LMS two days ago and this is exactly what I was looking for the last months ... I'm more than happy with this perfect project and would like to contribute some experience back to the community. There are some radio streams which have some drawbacks. One favorite station of my wife likes to have streaming issues, others might not have best quality. Many local radios are also on satellite here (Germany), so my idea was to grab these for the LMS server. I'm running TVHeadend here for watching TV, make recordings etc. A SAT>IP converter with 4 tuners is the frontend to the satellite dish. TVH can also grab radio channels and it can transcode ... so I've spent some time tonight to get this running with my LMS server. In TVH you need to add the radio stations as channels which have channel numbers assigned. You can then access the streams from TVH with this URL: http://IP_of_TVH:9981/stream/channelnumber/220 (220 is the channel number of that particular stream in this example) I've added a stream profile in TVH to convert the satellite radio stream into a format which can be used as input by the LMS. I found a conversion as raw audio stream with the libfdk_aac codec as the only working solution, please see the attached screenshot of the stream profile. Finally I created a user ("radio") assigned to the created stream profile and with a password as I'm using authentication on my TVH server, so the stream URL changes like this: http://radio:password@IP_of_TVH:9981/stream/channelnumber/220 Paste the URL into LMS, added it to the favorites - and the radio input in satellite quality is ready. Of course you can add as many radio stations as you want now. Maybe this might help anyone looking for the same solution :cool: +---+ |Filename: TVH-LMS_audiostream.jpg | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=24046| +---+ netmax's Profile: http://forums.slimdevices.com/member.php?userid=67551 View this thread: http://forums.slimdevices.com/showthread.php?t=108276 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter