Here is my take:
The problem here is that the last three characters of the stream url http://strm112.1.fm/reggae_mobile_aac suggest that it might be aac, but it actually has Content-Type correctly identifying it as audio/mpeg, i.e. MP3. But LMS overrides that and deems it to be aac. Which doesn't work.
I don't think you can guarantee a win when dealing with misconfigured servers. But this server is not misconfigured. It is LMS's attempt to deal with other misconfigured servers that is breaking a correctly configured server.
And the reason seems to be that LMS's 'test' for misconfiguredness is, perhaps, one dot shorter than it might be.
I'd suggest that LMS should not break a correctly configured stream.
Results 21 to 30 of 57
Thread: 1.fm?
-
2021-01-21, 08:29 #21
- Join Date
- May 2010
- Location
- London, UK
- Posts
- 753
-
2021-01-21, 08:32 #22
- Join Date
- Oct 2005
- Location
- Ireland
- Posts
- 20,140
IIRC This seems to be a the same problem as before, LMS initially misidentifies the contenttype by suffix or MIME but then later after examining te actual audio frames, LMS updates the ContentType but there were two caches and the corrected value gets lost. I can't look at the code until later this eve to see where the audio frames are checked (which LMS has to do to get sample rate and sample size to know if stream has to be transcoded).
Last edited by bpa; 2021-01-21 at 08:35.
-
2021-01-21, 09:34 #23
- Join Date
- Jan 2010
- Location
- Hertfordshire
- Posts
- 6,261
-
2021-01-21, 09:41 #24
- Join Date
- Jan 2010
- Location
- Hertfordshire
- Posts
- 6,261
-
2021-01-21, 10:13 #25
-
2021-01-21, 11:38 #26
- Join Date
- May 2010
- Location
- London, UK
- Posts
- 753
Assumptions, assumptions...
You'll be pleased to know that my Community Firmware reboots itself splendidly.
For undetermined reasons, the aac decoder in the official firmware seems to fail rather more gracefully on the non-aac data bening offered than does the aac decoder in the Community Firmware.
I managed to salvage a few (SqueezePlay) logs, but they are all somewhat different. Got a SIGSEGV at one point. One for @ralphy, I think. There might be something to be done to ease its response to 'bad data'.
I'll have to assemble my log traces into some sort of order.
-
2021-01-21, 12:14 #27
- Join Date
- Jan 2010
- Location
- Hertfordshire
- Posts
- 6,261
-
2021-01-22, 03:50 #28
- Join Date
- Jan 2010
- Location
- Hertfordshire
- Posts
- 6,261
-
2021-01-22, 06:46 #29
- Join Date
- Oct 2005
- Location
- Ireland
- Posts
- 20,140
The issue is indeed a rehash of the old mar 2020 problem.
First, in /Slim/Utils/Scanner/Remote.pm the ContetnType is set to "aac" based on URL.
Later, after reading data from the stream, in Slim/Player/Protocols/HTTP.pm (after calling parseDirectHeaders to get bitrate, contenttype etc.) the ContentType is set to "mp3"
Now to find where "aac" is being cached.
-
2021-01-22, 08:31 #30
- Join Date
- May 2010
- Location
- London, UK
- Posts
- 753
But that is done after looking at the remote headers.
So we're reading the headers again ?
Clearly SqueezePlay is being told that the stream is aac, hence the problem.
I don't know what the "old March 2020" problem is/was. Do you have a pointer ?