Re: [SlimDevices: Unix] Announce: piCorePlayer 8.0.0

2022-10-02 Thread philippe_44


slimhase wrote: 
> No, they have different names.
> 
> FYI, I raised the issue here for the ESP side of it:
> https://forums.slimdevices.com/showthread.php?116788-ANNOUNCE-Squeezelite-ESP32-version-2-x=1061645=1#post1061645

Is there something specific in your network like subnets or similar?
What are the IP and MAC address of each?



LMS 8.2 on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch,
1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW,
2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,  Yamaha
WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=114828

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


Re: [SlimDevices: Unix] piCorePlayer, preempt, latency and cyclictest extension (request)

2022-02-24 Thread philippe_44


zaurux wrote: 
> It seems that without using a realtime kernel, the preempt function
> improves things.
> In theory, from version 5.16, this feature improves and becomes "full"
> (with a lower latency without using a realtime kernel).
> I am not a specialist and able to produce exotic kernels every other
> day.
> 
> My point is rather to be able to introduce tools to evaluate the
> improvements beyond : "it's more transparent... it sounds better".
> 
> In short, is it possible, for those who have a build and extension
> platform, to compile a version of cyclictest in order to have a latency
> evaluation tool ?
> Even if this indicator is not everything (hardware, power supply,
> buffers, etc. must also be taken into account), it is still correlated
> with sq.
> 
> https://wiki.linuxfoundation.org/realtime/documentation/howto/tools/cyclictest/start
> 
> When will the 5.16 kernel be available in piCorePlayer ? :)
> 
> And thanks for the work already done.

What improvements do you precisely expect from that? I have a hard time
to draw any causality with sq



LMS 8.2 on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch,
1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW,
2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,  Yamaha
WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3

philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=116024

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


Re: [SlimDevices: Unix] New RPi Zero 2 W

2021-10-28 Thread philippe_44


Did somebody try the radxa zero ?



LMS 8.2 on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch,
1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW,
2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,  Yamaha
WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=115331

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


Re: [SlimDevices: Unix] piCorePlayer: Radio is streamed with wrong frequency

2021-08-02 Thread philippe_44

mherger wrote: 
> > I've submitted that https://github.com/Logitech/slimserver/pull/644.
> Do
> > we want it or not, I'm not sure and I'm certainly neutral. At least
> this
> > one works for 32, 44.1 and 48k as well as for remote tracks when
> > possible
> 
> I've missed this discussion... would you mind summarizing the issue for
> me?

It boiled down to when you have set an « audio startup time » in player
settings, and mp3 is played, LMS inserts a series of silence frames but
at a fixed 44.1kHz. Each player receiving that silence detects the
sample rate and assumes it will be the same one for the whole track, but
it is not if the real track is 48k or 32k and so playback is too slow or
too fast. The PR ignore the delay is rate is below 32k and uses a
different silence otherwise.

Now, the real question was: is that feature still meaningful or is it a
reminiscence from the past when mp3 was the only option. I think there
is still some issues with gaps and MP3 codecs, but I’ve never
investigated that part.


Envoyé de mon iPad en utilisant Tapatalk



LMS 8.2 on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch,
1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW,
2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,  Yamaha
WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=114921

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


Re: [SlimDevices: Unix] piCorePlayer: Radio is streamed with wrong frequency

2021-08-02 Thread philippe_44


I've submitted that https://github.com/Logitech/slimserver/pull/644. Do
we want it or not, I'm not sure and I'm certainly neutral. At least this
one works for 32, 44.1 and 48k as well as for remote tracks when
possible



LMS 8.2 on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch,
1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW,
2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,  Yamaha
WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=114921

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


Re: [SlimDevices: Unix] piCorePlayer: Radio is streamed with wrong frequency

2021-08-02 Thread philippe_44


schup011 wrote: 
> Yes, I also did learn only from the code posted above that it was only
> applying to MP3. I think for streams, it is really questionable because
> if you jump into a radio stream, it does not matter if you loose a
> second that is "eaten" by the Amp. Only for files, it could make sense
> since lots of classical music files really start at the very first
> second.
> So I could also imagine to restrict this to files .

But then you have online tracks that are not streams :)



LMS 8.2 on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch,
1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW,
2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,  Yamaha
WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=114921

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


Re: [SlimDevices: Unix] piCorePlayer: Radio is streamed with wrong frequency

2021-08-02 Thread philippe_44


schup011 wrote: 
> If it applies only to MP3 anyway, one could do an "extended lazyman"
> version with two different silence files for 44.1 and 48 kHz. Other
> sampling rates for MP3 should be really unusual.
Yes, we could have 3 files, for 32, 44.1 and 48 but ... see below
bpa wrote: 
> Other sampling rates are all lower.  32kHz is the only stream I've
> "seen" on same streaming radio.
> 
> Need to understand - does this feature work with AAC/Flac streams ?  
> If not then why bother with the feature for MP3 streams only ?
> If yes, why does it work with AAC/Flac and not MP3 ?
> 
> edit:
> 
> OK code say " if ($client->streamBytes() == 0 && $client->streamformat()
> eq 'mp3') {"
> It is MP3 only - so why not remove this "feature" since it is not
> generic ?
I would tend to agree with you, and I think it's a legacy thing at the
time mp3 was the only game in town for SB. But I'm speculating here and
probably Michael has a better opinion.



LMS 8.2 on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch,
1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW,
2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,  Yamaha
WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3

philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=114921

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


Re: [SlimDevices: Unix] piCorePlayer: Radio is streamed with wrong frequency

2021-08-02 Thread philippe_44


philippe_44 wrote: 
> If look at LMS code, it's violently hard-coded
> 
> > 
Code:

  >   > 
  > if ($client->streamBytes() == 0 && $client->streamformat() eq 'mp3') {
  > 
  > my $silence = 0;
  > # use the maximum silence prelude for the whole sync group...
  > foreach my $buddy ($client->syncGroupActiveMembers()) {
  > 
  > my $asilence = 
$prefs->client($buddy)->get('mp3SilencePrelude');
  > 
  > if ($asilence && ($asilence > $silence)) {
  > $silence = $asilence;
  > }
  > }
  > 
  > 0 && $log->debug("We need to send $silence seconds of 
silence...");
  > 
  > while ($silence > 0) {
  > $chunk .=  
${Slim::Web::HTTP::getStaticContent("html/lbrsilence.mp3")};
  > $silence -= (1152 / 44100);
  > }
  > 
  > my $len = length($chunk);
  > 
  > main::DEBUGLOG && $log->debug("Sending $len bytes of silence.");
  > 
  > $client->streamBytes($len);
  > 
  > return \$chunk if ($len);
  > }
  > 

> > 
> Maybe best we can do is disable that unless rate is 44.1. I'll check
> if the information is available at that point

I've submitted a PR with that


Code:


  if ($client->streamBytes() == 0 && $client->streamformat() eq 'mp3' && 
$client->streamingSong()->samplerate() == 44100) {
  


It's lazyman version as it will only work for files (samplerate in $song
object is only set when streaming local files), you could try to use
$client->streamingSong->currentTrack->samplerate as well if you prefer



LMS 8.2 on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch,
1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW,
2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,  Yamaha
WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3

philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=114921

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


Re: [SlimDevices: Unix] piCorePlayer: Radio is streamed with wrong frequency

2021-08-02 Thread philippe_44


If look at LMS code, it's violently hard-coded


Code:


if ($client->streamBytes() == 0 && $client->streamformat() eq 'mp3') {

my $silence = 0;
# use the maximum silence prelude for the whole sync group...
foreach my $buddy ($client->syncGroupActiveMembers()) {
  
my $asilence = 
$prefs->client($buddy)->get('mp3SilencePrelude');
  
if ($asilence && ($asilence > $silence)) {
$silence = $asilence;
}
}

0 && $log->debug("We need to send $silence seconds of 
silence...");

while ($silence > 0) {
$chunk .=  
${Slim::Web::HTTP::getStaticContent("html/lbrsilence.mp3")};
$silence -= (1152 / 44100);
}

my $len = length($chunk);

main::DEBUGLOG && $log->debug("Sending $len bytes of silence.");

$client->streamBytes($len);

return \$chunk if ($len);
}
  


Maybe best we can do is disable that unless rate is 44.1. I'll check if
the information is available at that point



LMS 8.2 on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch,
1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW,
2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,  Yamaha
WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3

philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=114921

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


Re: [SlimDevices: Unix] piCorePlayer: Radio is streamed with wrong frequency

2021-08-02 Thread philippe_44


bpa wrote: 
> Great that problem has been tracked down. It is an old feature which
> clearly is not used much and possible some of recent development have
> introduced an incompatibility.
> 
> Michael would certainly co-ordinate as necessary. 
> Next step is diagnose what has been broken  - perhaps it has been broken
> for a long time. 
> Philippe made a lot of "streaming audio" changes for 8.* so I'm guessing
> he'll check to see if some of his changes cause the problem.

I will have a look but I've finally not made chnages to the "silence
creation" part (I was thinking about that to have a sream.flac instead
of stream.mp3) and funny enough, one of the main issue was that no
player supports properly change of sampling rate during single stream. I
noticed that for flac and I re-checked for mp3 and saw the same and
anyway squeezelite code confirms that. So although the mp3 or flac can
have independant sampling rate per block, players won't analyse every
blokc and reporgram themselves. AFAIJ (and I'd need to verify that) but
LMS inserts fix silence frames when some silence if required at the
beginning and the silence file (found in HTML/EN/html) are 44.1 kHz. So
that problem has (almost) no solution, we can't have many silence files
(we don't really know which one might be required anyway) and we can't
easily reprogram DAC on-the-fly



LMS 8.2 on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch,
1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW,
2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,  Yamaha
WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=114921

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


Re: [SlimDevices: Unix] piCorePlayer: Radio is streamed with wrong frequency

2021-08-01 Thread philippe_44


schup011 wrote: 
> Now here is something for the Squeezelite experts:
> I have here the log what happens when Squeezelite plays a 48 kHz too
> slowly (I reenabled the mp3 codec in the Squeezlite settings for that):
> 
And it does that will *all* your file? Can you upload one somewhere?
I'll verify that with my squeezelite port on esp32 as well, or any of my
bridges.



LMS 8.2 on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch,
1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW,
2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,  Yamaha
WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=114921

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


Re: [SlimDevices: Unix] piCorePlayer: Radio is streamed with wrong frequency

2021-08-01 Thread philippe_44


schup011 wrote: 
> I understand that there are two ways how the conversion from MP3 stream
> to PCM for the HDMI Audio is done:
> 
> 1) LMS decodes to PCM and sends to Squeezelite, that sends directly to
> HDMI
> 2) LMS sends MP3 to Squeezelite, Squeezelite decodes to PCM.
> 
> Obviously in my case, neither of both ways is working. Both of them
> should, or am I wrong?

Almost. LMS has the source format and sample rate of a file, the target
player's maximum sample rate and its supported list of codecs, and an
optional time offset to start from. With these information, it scans the
conversion rules to try to find a perfect match or at least a match with
lowest "cost". The match can say: nothing to transcode, just send file
or it can say "invoke this external chain of programs to transform from
source format to that accepted format. Ultimately, the player has to
decode to PCM, but in LMS, the transcoding might never make PCM
"visible".

So to make sure I get that correctly: These 48kHz MP3 do not play at
all, right?
It seems that in your case the maximum sample rate reported by the
player is less than 48kHz and LMS does not find any transcoding rule,
which would be one of these


Code:


  # special case for smart bitrates on mp3 input
  mp3 mp3 transcode *
# IFB:{BITRATE=--abr %B}D:{RESAMPLE=--resample %D}
[lame] --silent -q $QUALITY$ $BITRATE$ $RESAMPLE$ --mp3input $FILE$ -
  
  flc flc transcode *
# IFT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d}E:{NOSTART=I}
[flac] -dcs $START$ $END$ --force-raw-format --sign=signed 
--endian=little -- $FILE$ | [sox] -q -t raw --encoding signed-integer -b 
$SAMPLESIZE$ -r $SAMPLERATE$ -c $CHANNELS$ -L - -t flac $RESAMPLE$ -C 0  -  
  



So it fails



LMS 8.2 on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch,
1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW,
2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,  Yamaha
WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=114921

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


Re: [SlimDevices: Unix] piCorePlayer: Radio is streamed with wrong frequency

2021-08-01 Thread philippe_44


schup011 wrote: 
> Ok, will do. Could you tell me where on a pCP system I can find the two
> conf files? I have never touched them.

oh, then these are stock version, don't need to include them. Do you
have plugins like C3PO?



LMS 8.2 on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch,
1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW,
2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,  Yamaha
WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=114921

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


Re: [SlimDevices: Unix] piCorePlayer: Radio is streamed with wrong frequency

2021-08-01 Thread philippe_44


schup011 wrote: 
> It was not installed. I have done that, and restarted LMS, but it did
> not change anything, except for that LMS confirms in the settings now
> that Lame is installed.
> 
> Strangely, it seems to not even check for the mp3-mp3 case, it just goes
> over it

You should submit a log now with lame installed and a copy of your
convert.conf and custom-convert.conf just to be sure



LMS 8.2 on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch,
1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW,
2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,  Yamaha
WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=114921

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


Re: [SlimDevices: Unix] Advice for new player hardware

2021-07-13 Thread philippe_44


tastewar wrote: 
> Thanks, everyone!

Have you looked at my SqueezeAMP or the DAC32?



LMS 8.2 on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch,
1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW,
2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,  Yamaha
WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=114838

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-06-27 Thread philippe_44


mvordeme wrote: 
> I've switched on debug logging for slimproto. It generates quite a lot
> of data.

Inded, but I should have said that "info" is good enough



LMS 8.2 on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch,
1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW,
2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,  Yamaha
WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-06-26 Thread philippe_44


mvordeme wrote: 
> Actually not. Originally, we used to shut down our WiFi overnight, but
> since our daughter has been on an unpredictable time schedule for a few
> months, we leave it up 24/7. I mean, now and then a player loses the
> connection, but I'd be surprised if it should happen frequently enough
> to explain this many open sockets.
> 
> There is something else that might be related. When you pause a track on
> Tidal, the URL will only continue to work for some time. If you wait for
> too long and try to resume, there is some kind of error message, and the
> next track is played. But even that does not happen frequently enough.
> Is there any kind of logging I can activate which could help?

But 2 month is a long time. You can try slimproto log to see
connections/disconnections



LMS 8.2 on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch,
1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW,
2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,  Yamaha
WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-06-26 Thread philippe_44


I think I've founded the reason why. Do you run any of my bridge that
might loose connection/reconnect regularly? See
https://github.com/Logitech/slimserver/pull/625



LMS 8.2 on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch,
1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW,
2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,  Yamaha
WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-06-24 Thread philippe_44


mvordeme wrote: 
> Today, the LMS ran out of file handles again, but this time, they were
> all sockets. It had been running for 2 months.

There is an issue with cli_sockets when players are disappearing/coming
back. I've not been able to figure it out yet



LMS 8.2 on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch,
1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW,
2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,  Yamaha
WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Multi threaded on Raspberry Pi 4 or any linux ?

2021-05-11 Thread philippe_44


sto wrote: 
> Hi All
> 
> Is there a reason the LMS doesn't run mutli threaded on a Pi ? iirc it
> didn't run multi threaded on my old Ubuntu 64bit setup either. Perhaps a
> fundamental problem then...
> 
> Thanks

The underlying Perl system a single event loop. I you'd try to
multi-thread that, it would explode



LMS 8.2 on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch,
1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW,
2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,  Yamaha
WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=114564

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


Re: [SlimDevices: Unix] UPnP/DLNA vs UPnP/DLNA in LMS?

2021-03-29 Thread philippe_44


Nomen Nescio wrote: 
> The specifications are not very clear on this.
> 
> https://advance-acoustic.com/fr/archives/19-x-uni
> https://advance-acoustic.com/en/archives/19-x-uni
> 
> 33995

Yes, it's ambiguous at best. I've seen proprietary players where vendors
made them capable of reading UPnP content but viciously did not make
them UPnP renderer so that only their proprietary software/controller
could be used. IMHO, run away from these.



LMS 8.1.x on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet,
1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,
Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113790

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


Re: [SlimDevices: Unix] UPnP/DLNA vs UPnP/DLNA in LMS?

2021-03-29 Thread philippe_44


fletch wrote: 
> How do you get that working?

Nothing much to do - install & run the plugin (including selecting the
binary helper and starting it - see settings section) and unless you
have firewall issues, you should see UPnP devices appearing.



LMS 8.1.x on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet,
1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,
Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113790

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


Re: [SlimDevices: Unix] UPnP/DLNA vs UPnP/DLNA in LMS?

2021-03-29 Thread philippe_44


Nomen Nescio wrote: 
> When a upnp device sees the LMS with Andy's plugin should LMS be able to
> see the network player with Phillip's plugin running?
> It has a Venice 8 module. Advance Acoustic X-uni.
> 
> Verstuurd vanaf mijn Mi A3 met Tapatalk

If this is a UPnP-compliant network *player*, yes it should



LMS 8.1.x on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet,
1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,
Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113790

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


Re: [SlimDevices: Unix] UPnP/DLNA vs UPnP/DLNA in LMS?

2021-03-29 Thread philippe_44

fletch wrote: 
> The Andy Grundman version works well -not sure why it's labeled
> inactive.
> 
> I couldn't get the other one to even generate a config file and my
> player never saw it..but it sees the Andy Grundman version with no
> issues.

Because they do the opposite so of course your player won’t see anything
from the bridge



LMS 8.1.x on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet,
1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,
Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113790

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-03-23 Thread philippe_44


See https://github.com/Logitech/slimserver/pull/553 if you want to give
it a try. I'm checking files with

Code:


  lsof +D /tmp -a  -p 80292
  


And I can confirm that nothing is left open with AAC and with FLAC files
are removed automatically. At exit, everything is cleaned up. I've not
verified that at very long term (500 or 2000 files) they start to be
removed one by one but I think they will be.



LMS 8.1.x on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet,
1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,
Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-03-23 Thread philippe_44

philippe_44 wrote: 
> I do remember very well the discussion. I have made a few additional
> tests and in fact the DESTROY happens as expected when the cache is set
> to 10 but it need to be created with 10, not modified later at runtime
> as I was doing before. 
> 
> Still, that does not solve the issue of open handles. I guess we can
> tolerate a large number of files in temp, but we can’t have them opened.
> According to what I have read, File:.Temp unlinks the file when it is
> closed, so I would need to do something different like having a temp
> file that I only unlink in DESTROY but is closed unless the header is
> needed ... crap, that means I cannot rely on File:Temp for the random
> path/name generation and I need to memorize the name and reopen/close it
> all the time. I was hoping that the cache of $tracks would be
> decorrelated from playlist length and that LMS would re-read the ones
> that went out of LRU cache. Un

I know you don’t see edits so I’ll answer myself. It seems that the new
of File::Temp has an UNLINK option to prevent deletion on close. I’ve
looked at the code and it’s likely easy to to reopen/re-read the content
where I need it as it is very located in the code. 

So likely good news and à PR in the coming days



LMS 8.1.x on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet,
1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,
Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-03-23 Thread philippe_44

mherger wrote: 
>  No, AFAIK, 500 is the number of cached tracks. After that, they
> should
>  be closed but I'm not sure that works as expected. I've reduced
> that to
>  10 and traced DESTROY it's very unclear to me when it happens,
> except
>  when you terminate the slimserver process. The code is in
>  /usr/share/perl5/Slim (from memory)
> 
> We discussed some concerns about this back on August 27 on Gitter. I'd 
> have loved to send you a link, but I didn't find a way to do so :-)

I do remember very well the discussion. I have made a few additional
tests and in fact the DESTROY happens as expected when the cache is set
to 10 but it need to be created with 10, not modified later at runtime
as I was doing before. 

Still, that does not solve the issue of open handles. I guess we can
tolerate a large number of files in temp, but we can’t have them opened.
According to what I have read, File:.Temp unlinks the file when it is
closed, so I would need to do something different like having a temp
file that I only unlink in DESTROY but is closed unless the header is
needed ... crap, that means I cannot rely on File:Temp for the random
path/name generation and I need to memorize the name and reopen/close it
all the time. I was hoping that the cache of $tracks would be
decorrelated from playlist length and that LMS would re-read the ones
that went out of LRU cache. Un



LMS 8.1.x on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet,
1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,
Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-03-22 Thread philippe_44


mvordeme wrote: 
> That is a fact which makes investigating the problem difficult. When
> there are 500 open file handles, it is difficult to keep track of what
> is happening.
> 
> I understand from the code that with a memory configuration of high, the
> process should not use up more than 500 MB of memory. Is that correct?

No, AFAIK, 500 is the number of cached tracks. After that, they should
be closed but I'm not sure that works as expected. I've reduced that to
10 and traced DESTROY it's very unclear to me when it happens, except
when you terminate the slimserver process. The code is in
/usr/share/perl5/Slim (from memory)



LMS 8.1.x on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet,
1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,
Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-03-22 Thread philippe_44


mvordeme wrote: 
> I am not sure about all the debugging stuff, but it appears to me that
> it is not a matter of configuring things but of changing the code. I
> have tried to increase the amount of logging for a few items but didn't
> learn much. Where is all the code? The directory containing the
> slimserver.pl only contains 9 pl files in total, and only gdresize.pl
> uses File::Temp.> 
Code:

  >   > tc@piCoreServer:/tmp/tcloop/slimserver/usr/local/slimserver$ find . 
-name "*.pl" -print
  > ./CPAN/AnyEvent/Util/idna.pl
  > ./CPAN/AnyEvent/Util/uts46data.pl
  > ./CPAN/AnyEvent/constants.pl
  > ./CPAN/XML/SAX/placeholder.pl
  > ./cleanup.pl
  > ./gdresize.pl
  > ./gdresized.pl
  > ./scanner.pl
  > ./slimserver.pl

> > But I used the opportunity to update the LMS and watch a fresh system
> playing an album from Tidal. I now understood why just counting the
> number of open file handles does not help with understanding what is
> happening. Every track creates and destroys two sockets and two pipes,
> and there are other activities adding to the noise, like the caching
> of album art. But when it comes to temporary files, the behaviour is
> rather straightforward.
> 
> Every single track played leaves a temporary file behind with an open
> file handle in slimserver.pl. The files are rather uniform. They seem
> to contain mp4 metadata. I downloaded one of the mp4 tracks, too, and
> it looks nothing like those temporary files, although with binary
> data, this is hard to say. All temporary files start with binary data
> and end like this:> 
Code:

  >   > udtameta-hdlrmdirilst 
handlerilstr(meanorg.hydrogenaudio.replaygain_originator_codedata01101100i(meanorg.hydrogenaudio.replaygain!namereplaygain_track_gaindata-7.87
 dBi(meanorg.hydrogenauIuuidDLBY-METADATA-00meta3hdlrdlbtdolby tags 
handlerxml
  > 
  > 
  > 
  > 
  > 
LS1pbnB1dC1maWxlIDxhcmc+IC0tb3V0cHV0LWZpbGUgPGFyZz4gLS1hdWRpby1lbmNvZGVyIGFhYyAtLWF1ZGlvLWNici1yYXRlIDMyMCAtLWFhYy1tb2RlIGFhYyAtLWlucHV0LXNwZWVjaCBmYWxzZSAtLWF1ZGlvLW9ubHkgLS1yZXBsYXlnYWluIG9uIC0tYXVkaW8tcHJvcC1tZXRhIGxvdWRuZXNzIA==
  > 
  > 
  > 
  > a8d5be608e4aca0266c159418d806a4e
  > 
  > meta;hdlrdlbfdolby file metrics handlerqxml 
  > 
  > 
  > 
  > Dolby Media Generator 3.8.3
  > 2016-08-12T17:57:06
  > 115124
  > 
  > Dolby Pulse Encoder 1.1.4 sbr: 4.0 / Aug 18 2011
  > AAC
  > VBR
  > 32
  > 9765888
  > 1c5f05da944468156c140c483176ed9d
  > 
  > 44100
  > 2
  > None
  > 1600
  > 
  > 
  > 
  > 
  > 0f2340c558a9c8d72d0ce1fadcd2ff28
  > 
  > mmeta;hdlrdlbkdolby audio kernel handler 
  > 
  > 
  > 
  > 
  > 
  > 
  > 
  > 
  > 
  > 
  > 
  > 3c207014a46f955c7c617a330a9d1029
  > 
  > 3meta7hdlrdlbmdolby metadata handlerxml 
  > 
  > 
  > 
  > 
  > 
  > 
  > 
  > 
  > 
  > 
  > 
  > 
  > 
  > 
  > 36bbff96c50793db343f56cc653f0adb
  > 
  > )emdat

> > The only time I saw one of the files being removed was when my
> playlist contained only one track and I skipped forward, playing the
> same song again. Skipping backward leaves the existing file in place,
> and so does skipping forward to another track or the song ending on
> its own.

These temp files are the download of the header for remote files. They
should be closed/erased after 500 files (tbc) on large memory server. I
will revisit the code in the coming days.



LMS 8.1.x on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet,
1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,
Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3

philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] ANNOUNCE: LMS Monitor 2020

2021-02-16 Thread philippe_44


shunte88 wrote: 
> 12V would be surprising; 3V3 and 5V are the usual
> There may be hardware that boost converts to 12V under the hood but not
> something you'd supply directly
> I've 20-30 OLED of various sizes and flavors and all of them conform to
> the 3V3/5V input

Yes but you probably refer to display modules/boards that have a step-up
converter. If you just use the glass with its flex, then you need to
provide higher voltage to drive it.



LMS 8.1.x on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet,
1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,
Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=111790

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-08 Thread philippe_44


mvordeme wrote: 
> Loading this discussion with more stuff: The number of file handles on
> my Pi has now exceeded 500, memory is at 580 M. I'll keep an eye on it.
> (For the protocol: Today, I have been listening to Deezer Smart Radio
> for some time.)

Here is the code in charge of limits

Code:


  sub init {
$cache = Slim::Utils::Cache->new;
  
my $maxPlaylistLengthCB = sub {
my ($pref, $max) = @_;

if ($prefs->get('dbhighmem')) {
$max ||= 2000;
$max = 2000 if $max < 2000;
}
else {
$max ||= 500;
$max = 500 if $max > 500;
$max = 100 if $max < 100;
}
  
my $cacheObj = tied %Cache;
if ($cacheObj->max_size != $max) {
$cacheObj->max_size($max);
}
};

$maxPlaylistLengthCB->(undef, $prefs->get('maxPlaylistLength'));

$prefs->setChange($maxPlaylistLengthCB, 'maxPlaylistLength');
  }
  


So if you have set the "high memory usage" in LMS settings, it's 2000. I
did not remember that



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-07 Thread philippe_44


I re-read the pipeline code and I can only think that BSD screws up
either with the reader/writer/source socket by not releasing buffer when
using localhost sockets or in that code

Code:


if ($writelen) {
  
main::DEBUGLOG && $log->debug("Wrote $writelen bytes to 
pipeline writer");
  
if ($writelen != $pendingSize) {
${*$self}{'pipeline_pending_bytes'} = 
substr($pendingBytes, $writelen);
${*$self}{'pipeline_pending_size'}  = 
$pendingSize - $writelen;
}
else {
${*$self}{'pipeline_pending_bytes'} = '';
${*$self}{'pipeline_pending_size'}  = 0;
}
}
else {
  
${*$self}{'pipeline_pending_bytes'} = $pendingBytes;
${*$self}{'pipeline_pending_size'}  = $pendingSize;
  
if ($! != EWOULDBLOCK) {
return undef;   # reflect error to caller
}
  
last;
}
  


The 'pipeline_pending_bytes' are not released either when being shrunk
or re-assigned to the substr() of $pendingBytes. In any case,
unfortunately, it looks like an obscure BSD+Perl issue that will be
quasi-impossible to track w/o a full system and my FreeBSD VM is a real
pain to use on VirtualBox as some of the drivers does not work well.



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-07 Thread philippe_44


Maybe you could have a look at song.pm and pipeline.pm. I did that
yesterday but could not see anything that would trigger a question, but
more eyes always help



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-07 Thread philippe_44


mvordeme wrote: 
> I believe that if there really is an issue with file handles on my Pi,
> it is not the same that Simone has reported. My open file handles are
> back down to 459 and memory usage is up to 562 M. Since it looks like
> for every transcoded stream, a temp file is left over, but the number of
> file handles is not growing, I'll match the file handles against the
> temp files to get a better idea of what is happening.> 
Code:

  >   > -rw---1 tc   staff55228 Feb  7 18:16 JGCjBbgQxZ
  > -rw---1 tc   staff50248 Feb  7 18:21 lf2RyypjF9
  > -rw---1 tc   staff67636 Feb  7 18:26 nmAx4IIiMz
  > -rw---1 tc   staff56652 Feb  7 18:33 Ye36Wt7Hb9
  > -rw---1 tc   staff63348 Feb  7 18:38 pyqDc5YX93
  > -rw---1 tc   staff52628 Feb  7 18:44 qILjMvdIpF
  > -rw---1 tc   staff37944 Feb  7 18:49 gAd3wem95x
  > -rw---1 tc   staff64644 Feb  7 18:53 4gUg6Rf5Dw
  > -rw---1 tc   staff47828 Feb  7 18:59 xFbatEwmdC
  > -rw---1 tc   staff72140 Feb  7 19:03 B5DbNkB9Xe

> > 

Yep, LMS will close them after they have reached 500-ish. We discussed
having a different approach but that was not easy so we decided to wait
and see. Not having these files opened means most remote streaming will
not work anymore.



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-07 Thread philippe_44

mherger wrote: 
> > Files opened in /tmp are expected, this is the cache for scanning
> remote
> > tracks
> 
> I vaguely remember having discussed the risk of those filehandles in 
> your AAC seeking PR. Could there be an issue that sometimes we store a 
> reference to it outside the track object? Thus it doesn't get freed when
> 
> the track is destroyed?
> 
> That said, this doesn't really explain the claim that the memory usage 
> would increase massively with things like DSD.

I agree and I remember that very well. We can go back to this but I
don’t think this is the issue we are talking about as the ram
consumption seems purely correlated to transcoding



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-07 Thread philippe_44


mvordeme wrote: 
> But 450? And all of them are still open in LMS.
> 
> Files containing binary data only seem to end like this:> 
Code:

  >   > 
TsgpdrollsbgprollEbudtaZmeta!hdlrmdirappl-ilst%toodataLavf58.20.10freeZMmdat

> > 

Yes, the Max is set a 500 internally



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-07 Thread philippe_44


Files opened in /tmp are expected, this is the cache for scanning remote
tracks



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-06 Thread philippe_44


Simonef wrote: 
> What?
> all the system I have tested on are 64bit, Perl version 5.32

Sorry my bad: from memory, I was remembering
> 
> With Debian 64bit this bug does not seem to happen at all.
> 
And for some reasons I thought it meant your actual system was 32 bits



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-06 Thread philippe_44


philippe_44 wrote: 
> Have you tried with transcoding but without use of sox (choose a
> transcoding requirement that does not need it like "ops mp3" or "mp3 mp3
> transcode forced by bitrate limitation. The idea is to see if this is
> specific to an external transcoder, especially sox, or if this is due to
> the pipeline process itself ( I think you said that it does not happen
> w/o transcoding).
> 
> Other than that, does it happen with 7.9?

I had a quick look at the pipeline code and could not find anything
obvious (reading code with memory leak in mind). Yous aid it does not
happen with x64, right? What Perl version is this on x86?



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-06 Thread philippe_44


Simonef wrote: 
> Same problem if transcoding without sox. Flac->mp3 and Flac->pcm dont
> use SoX and shows the same beahviour.
> I just tried with lms 7.9.4, same behaviour again.
> 
> w/o transcoding it seems to not happen at all.

Excellent, that seems to point around the pipeline then



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-05 Thread philippe_44


Simonef wrote: 
> Thanks a lot for the encouragement.
> It seems to be correlated proportionally to the type of transcoding you
> want to do.
> As an example:
> With very small files and light transcoding (to MP3 for ex) It takes
> hours to show a minimum RAM usage above the normal (where normal Is
> ~120-200MB)
> With a more intensive transcoding, like an upsampling of a FLAC file, It
> Is pretty noticeable in a few minutes that the RAM usage starts
> growing.
> I tried with an Extreme case like FLAC->RAW 32bit/384kHz->1 milion taps
> FIR filter -> DSD128 and the RAM usage of the perl process starts to
> grow like Crazy (1gb After 2 songs).
> What Is curious is that also the CPU usage grows proportionally, and I
> mean not the CPU usage of the external utilities used for transcoding
> but of the slimserv.pl process; in the last case It was using 30% of one
> core of a xeon e5-2697 V3, which Is A LOT.
> 
> I'd like to solve it because I'm pretty much the only unofficial
> maintainer of the version for FreeBSD/FreeNAS/TrueNas, and for the
> moment, I answered to those who contacted me about this bug to set up a
> cronjob to restart LMS periodically so it doesn't eat all the RAM As
> a temporary "fix"
> 
> With Debian 64bit this bug does not seem to happen at all.
> 
> I tried to proceed on the 'memory debug' route. 
> 2 of those modules needed for the memory debug were not working,
> (B::Size and B::LexInfo) they are not maintained (for something like 15
> years). I managed to fix them, but still MemoryUsage.pm gives another
> error, It tries to call the 'FILL' method in the B::PADNAME class in
> B::C, which, in fact, does not seem to exist. (See here
> https://perldoc.perl.org/B#B::PADNAME-Methods)
> 
> In the mean time I managed to update all the CPAN modules in
> slimserver-vendor and correct the building script accordingly (some of
> them were out of date by more than 10yrs), Tomorrow I'll make the pull
> request.
> 
> @philippe_44 or @mherger at this point I'm pretty stucked. If One of you
> Is willing to help and try to recreate the bug in a local VM I'll send
> you instruction in PM (It pretty quick to recreate It). I usually Always
> try to find the way out by myself, but my weak knowledge of perl is
> limiting and I'm a bit lost After all these failed attempts.

Have you tried with transcoding but without use of sox (choose a
transcoding requirement that does not need it like "ops mp3" or "mp3 mp3
transcode forced by bitrate limitation. The idea is to see if this is
specific to an external transcoder, especially sox, or if this is due to
the pipeline process itself.



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3

philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2021-02-04 Thread philippe_44

But then you are not playing HTTPS services, right? I know it sounds
like a silly question but I want to make sure before I dig again into
all the contorted SSL elements activated in LMS. There are many things
there, it’s difficult to find it’s way sometimes. For example the code
for NB sockets is different when SSL is involved and there are buffer
associated to cache between calls.



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-01-11 Thread philippe_44


slartibartfast wrote: 
> OK the reason I had pops in different places is because my FLAC had been
> inadvertently resampled to 192kHz. When I made a new FLAC at 44.1 kHz
> and then reconverted to ALAC the pops were in exactly the same places.
> Hope this helps.
> 
> Sent from my Pixel 3a using Tapatalk

Fixed!



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113512

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


Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-01-09 Thread philippe_44


philippe_44 wrote: 
> That would be great if you could provide other files. I really can't
> hear anything on my system

Few things I was thinking of for anybody hearing the click and willing
to help. Can you

- Try to capture the decoder sample by redirecting squeezelite to stdout
- Change streambuf and outputbuf sizes and see if the click is still
here
- Try to force resampling tor any rate that you're sure squeezelite will
have to resample those tracks



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113512

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


Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-01-09 Thread philippe_44


paul- wrote: 
> To me its not terribly loud.  I was too was not sure of the quality of
> the track (It is a 1967 recording)   But my comparison is 
> What I thought was interesting, with ALAC disabled.  LMS transcoded the
> file to flac via.   faad->sox.   Would libfaad be the better codec to
> use for this type of track?
> 
I've not looked at the codec used by libfaad, it's probably the decoder
that was used in many projects made in 2005 by David Hammerton before
Apple released their code. Sometimes ago, I switched almost all my
projects to this "official" Apple codec as I also sometimes need the
encoding (bridges, squeezelite-esp32). Only Shairtunes and AirConnect



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113512

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


Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-01-09 Thread philippe_44


JQW wrote: 
> I forgot about the Duke's finger-clicks on that track!
> 
> I can provide other sample files, if needed. I should have something
> that's relatively quiet with the clicking obvious. I'll do some testing
> with my library tonight and select something else suitable. 
> 
> When the clicking is audible there appears to be precisely 10 seconds
> between each one, which points to some form of framing or buffering
> error.
> 
> I'll also attempt to run the 64-bit version of PiCorePlayer on the same
> device, although I may not be able to get that installed for a day or
> two.

That would be great if you could provide other files. I really can't
hear anything on my system



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113512

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


Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-01-05 Thread philippe_44


paul- wrote: 
> I cant hear it on the first track, but "03 Blood Count.m4a" has a pop
> that occurs around 9-10sec.  If I jump back to about 2sec into the
> track, the pop does not occur at the 9-10s mark.  And of course as
> reporting, it 
> 
> I did a quick log on squeezelite, there doesn't appear to be an hickup
> in the data flow to the DAC (HifiBerry Dac+)  Pi3B.

I can't hear it. Is it loud? There is a small regular tick, but it's in
the track, I hear using VLC as well



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113512

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


Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-01-05 Thread philippe_44


JQW wrote: 
> A link to a couple of problem files on Google Drive.
> 
> https://drive.google.com/drive/folders/1B1zlD_FZGFZW33dNCmxWWNdxRisQGo9z?usp=sharing

I've tried on a couple of systems and could not reproduce it



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113512

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


Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 7.0.0

2021-01-01 Thread philippe_44

JQW wrote: 
> Thanks to yesterday's update I can now play ALAC files again - however
> there's a problem. Every ten seconds into every ALAC track there's a pop
> across both channels - it's more noticeable on quiet tracks, but it
> seems to be affecting every single one. This is irrespective of output
> device - I get the same issue with my IQAudio DAC+ and the built-in
> audio jack. Pi3B running the 32-bit version, by the way.

Can you share one of your files? I’ve been trying to figure out this one
for a while but it seems dépendant if some parameters. Maybe you have
compressed with the options that create the issue



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113512

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


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2020-12-29 Thread philippe_44


bpa wrote: 
> Red herring - I think. I don't have pcp but Raspbian buster is not
> Mixed-endian by this test.

That decoder is the alac core of my bridges that have been running on
arm for a long while. I had a recent issue on aarch64, and it turned to
be an issue in the upstream alac version (and endianneess)



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

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


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2020-12-29 Thread philippe_44


stereoptic wrote: 
> Squeezelite stopped for every ALAC file that I threw at it.   They were
> all 44.1/16.

ralphy wrote: 
> I've been playing 44.1/16 alac files on pcp 7 64-bit for a couple hours
> now without issue and have been since our first 7.0 alpha release.
> 
> We'll need you to provide 1-2 of the "problem" alac files to try and
> track this down.

I've tried a fresh pCP 7.0 install (32 bits) and can confirm that no
alac plays with 8.1.1 (Squeezelite hangs). I don't know what it is yet,
its surely related to the alac decoder but I don't know how, meaning I
use the same in my bridges and in squeezelite-esp32 with no problem.



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-29 Thread philippe_44


mvordeme wrote: 
> 8.1.0 was a nightly at the time. Version numbers seem a little volatile
> at the moment. Everything is fine with 8.2.0 - 1609139175 @ Mon Dec 28
> 09:23:00 CET 2020. Thanks a lot.

8.2 is the next feature release, 8.1.1 is the closer bug fix of 8.1
(here https://downloads.slimdevices.com/nightly/?ver=8.1)



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-29 Thread philippe_44


mvordeme wrote: 
> Thanks. So it may already be fixed. I am still on 8.1.0 - 1608064080 @
> Tue Dec 15 22:13:24 CET 2020.
yes, you need the nightly - Michael has not released yet an "official"
version



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-29 Thread philippe_44


mvordeme wrote: 
> I found a test track, if you are interested. When you play the live
> album "Showtime, Storytime" by Nightwish, the last three seconds of the
> second track "Wish I Had an Angel" go missing. On which branch are you
> intending to fix it?

I tried as well with the version that contains the correction (8.1.1
nightly) and it seems to me it goes correctly to the end of the track.
With the bug, you would have missed ~50kB of data so 50*8/320 ~ 1.25
second



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2020-12-28 Thread philippe_44


philippe_44 wrote: 
> Thanks - This together with @paul- response confirms that it's likely an
> issue with the native alac decoder. Now, if it happens with each and
> every file, we should be able to find out quickly

Paul Webster wrote: 
> There are now two flavo(u)rs ... 64 and 32 bit

Ah, that would be interesting if the people who had the issue use the 64
bits version. I found a plain mistake in alac's official version where
aarch64 compiles with the wrong endianness and that crashes real bad.
It's here https://github.com/ralph-irving/squeezelite/issues/121. I'm
not sure what @ralphy meant when he said he forces LE - I mean even if
you force compiler, there are still the alac own flags. Maybe it's that



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

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


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2020-12-28 Thread philippe_44


stereoptic wrote: 
> Sure thing!  The two logs are attached.  I did the same test - 2 FLACS,
> 1 ALAC.

Thanks - This together with @paul- response confirms that it's likely an
issue with the native alac decoder. Now, if it happens with each and
every file, we should be able to find out quickly



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

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


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2020-12-28 Thread philippe_44


paul- wrote: 
> That changed in pCP7, it is now using an alac decoder library.  We no
> longer distribute ffmpeg with squeezlite.
> 
> Not sure if Ralphy is using your git or the version from
> https://macosforge.github.io/alac/

Got it, I have not upgraded yet to pCP7. I'll check that tomorrow. One
question though: I assume pCP is so far always 32 bots, is that correct?



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

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


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2020-12-28 Thread philippe_44


stereoptic wrote: 
> It never played.  I have no problem sharing, just not sure how.  Even
> still, I tried several ALACS, none played.  If it means anything, they
> did play on the SB Radio and the good old 'SqueezePlay' app on my even
> older mac laptop. 
> Attempting to play an ALAC causes squeezelite to stop running, it seems.
> I can supply any information needed as long as I have the know-how. 
> Thanks again for following through!

Can you set the log level of squeezelite to "info" in piCore and get the
log at /var/log/pcp_squeeezelite.log (here is how to access piCore
https://docs.picoreplayer.org/how-to/access_pcp_via_ssh/). If this is
too complicated, could you, in LMS settings, tab 'advanced', menu
'logging', set the "conversion logging" to "info", try to play an alac
and then send the last 100 lines of your server.log (you can find it in
the settings, tab 'information')



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

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


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2020-12-28 Thread philippe_44


It seems to me that the squeezelite version includes with piCore does
not have ALAC codec built-in, so it still relies on ffmpeg. So far, I
can confirm that w/o ffmpeg, 'alc' is not reported as a supported codec
but it is w/ ffmpeg. I've tried to play a few tracks w/o issues so far



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

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


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2020-12-28 Thread philippe_44


stereoptic wrote: 
> I played two FLAC files successfully - Los Straitjackets - In My Room
> (48/24) and Rainy Night in Georgia (96/24).
> Next up was the Vince Guaraldi ALAC (44.1/16) which did not play.  The
> time display on the web display makes it appear as if it is playing. 
> The time display on the Jivelite screen is not moving.  Also
> 'Restarting' Squeezelite did not restart.  I had to Stop Squeezelite and
> then Restart, and also had to clear out the queue first before it would
> restart.
> Attached is the server.log

Did it played at some point or never? If you have a failing m4a alac,
could your share it?



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-23 Thread philippe_44


philippe_44 wrote: 
> So "unfortunately" no. Can you try with a player that natively supports
> mp4/aac? I'd like to rule-out faad

Found it this time, was my bad :eek::mad::mad::mad::eek:



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-23 Thread philippe_44


mvordeme wrote: 
> I'll have an eye on whether it always affects the same tracks.

philippe_44 wrote: 
> I think I've identified a corner case that could explain the last block
> of a track being skipped

So "unfortunately" no. Can you try with a player that natively supports
mp4/aac? I'd like to rule-out faad



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-22 Thread philippe_44


mvordeme wrote: 
> I'll have an eye on whether it always affects the same tracks.

I think I've identified a corner case that could explain the last block
of a track being skipped



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-15 Thread philippe_44


paul- wrote: 
> BTW Phillip,Thanks for pointing me in the right direction..it
> was a fun lesson in Perl and LMS code paths.

Thanks - I'm really glad you found it so quickly. I think LMS (and
Michael :)) need more of us knowing the code to help and I'm candidly
(and often) struggling a fair bit.



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-15 Thread philippe_44


philippe_44 wrote: 
> Yes, you found it. I don't know why this delete is here. It does not
> make much sense as there is a close() called later when the pipeline
> ends. And delete() does not call the destructor, it will only be if
> there is no more reference to that $sock and there might be one pending
> ...

paul- wrote: 
> The fix is now in the 8.1 branch.

And when better reading the code, I understood why the delete was there.
The close() was all what was really missing, as you said.



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-14 Thread philippe_44


paul- wrote: 
> Yup when a pipeline is in use..Opened issue
> https://github.com/Logitech/slimserver/issues/475

Yes, you found it. I don't know why this delete is here. It does not
make much sense as there is a close() called later when the pipeline
ends. And delete() does not call the destructor, it will only be if
there is no more reference to that $sock and there might be one pending
...



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-14 Thread philippe_44


paul- wrote: 
> I think I found the problemgoing to take this to git to discuss.

Per my other post, seems it's only when transcoding, the socket is not
closed by the local endpoint when it is always closed when there is no
transcoding. I've reproduced that 10+ times



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-13 Thread philippe_44


mvordeme wrote: 
> Doesn't it have to send something, or else the O/S wouldn't report the
> connection as CLOSE_WAIT?

I agree, hence I'm confused and need to take more logs



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-13 Thread philippe_44


paul- wrote: 
> So it's in the Async HTTP.   I see no difference in the logs whether it
> is streaming direct vs streaming to a transcoder helper.   I made a few
> changes to the logging.
> 
> 1. It's not tracking content received vs content length. Even though
> Content-Length is present.
> 2. It's requesting to close the port long before the content is actually
> read.  Its even more strange that content continues to flow even after
> the request to close.
> 3. The reason its stopping early...is that the stream is requesting a
> stop. 
> https://github.com/Logitech/slimserver/blob/b7d9ed8e7356981cb9d5ce2cea67bd5f1d7b6ee3/Slim/Networking/Async/HTTP.pm#L551
> but according to logging from player.source, the stream has not even
> started yet.
> 
> Seems all out of sorts to me.  Guess I don't understand.

No it's not in Async. What you see there is the read of the header so
that we know what the track is and we can do seek later. That's why it
closes after a few kB or less. You can see all this in
Slim::Utils::Scanner::Remote.pm



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-12 Thread philippe_44


psketch wrote: 
> Not sure if it's transcoding, or just flac.  I saw the problem yesterday
> playing a tidal album that was flac, played on pcp with native.  When I
> use transporter, I do have a custom re-encode set as the older hardware
> can't handle flac files which are really heavily compressed, so I
> re-encode them to -1.  That setting is tied to the mac address though,
> so doesn't affect the pcp situation above. 
> -

Well, I've scratched my previous message as I was looking in the wrong
direction. So what I seem to be able to confirm is what @paul- says,
with a bit of change due:

- Remember that streaming Tidal is not direct (in AAC), it is proxied
through LMS (I mode) as we need to re-wrap the MP4-AAC into ADTS frames
(this is a change I made last summer)
- When simply being proxied (no transcoding), I have a proper
FIN,ACK,RST sequence and the tidal server initiate the close once the
stream has been fully received
- When transcoding, the tidal server does not send the close sequence.

This is weird



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-12 Thread philippe_44


You can look at Slim::Networking::Async::HTTP.pm

Code:


if ( !defined $result || $result == 0 || (defined 
$self->response->headers->header('Content-Length') && 
length($self->response->content) == 
$self->response->headers->header('Content-Length')) ) {
# if here, we've reached the end of the body
  
# close and remove the socket if not keep-alive
if ( $self->response->headers->header('Connection') =~ /close/i 
|| $self->request->headers->header('Connection') !~ /keep-alive/i ) {
$self->fh->close if $self->fh;
$self->disconnect;
main::DEBUGLOG && $log->debug("closing mode");
}
else {
Slim::Networking::Select::removeError( $self->socket );
Slim::Networking::Select::removeRead( $self->socket );
main::DEBUGLOG && $log->debug("keep-alive mode");
}
  
main::DEBUGLOG && $log->debug("Body read");
  
if ( my $cb = $args->{onBody} ) {
my $passthrough = $args->{passthrough} || [];
$cb->( $self, @{$passthrough} );
}
}
  


And set the loglevel of network.asynchttp to debug to see what's really
happening



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3

philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?

2020-12-12 Thread philippe_44

paul- wrote: 
> So I signed up for a tidal account..got a month free to play.   Here
> in the US, tidal is using AWS Cloudfront.
> 
> I started testing with no transcoding in the LMS server.  pCP players
> handle AAC natively.
> 
> When a track is played from tidal, it sends to complete track as fast as
> it can.  All of the track data is sitting in the socket receive buffer
> and when the track is complete from Tidal, the socket goes to a
> "CLOSE_WAIT" status.  Once LMS pulls all of the data from the socket, It
> sends the acknowledgement and transitions to "LAST_ACK".  I've seen
> tidal take some time to respond to this ack.  But if the socket is
> sitting in "CLOSE_WAIT" the problem likely resides in LMS.
> 
> Now I set my squeezelite player to only accept flacso the LMS server
> is now transcoding...that is where things go awry.  Tidal plays the
> track, and when done sending data, it goes to CLOSE_WAIT, however at the
> end of the track, it never sends the close acknowledgement.and is
> sitting in CLOSE_WAIT 
> 
> I had to make a custom rule such to force LMS to transcode Pandora mp3
> to flacand the problem is there too.
> 
> 
> So.  This problem is not specific to pCP nor tidal, this seems to
> affect any http(s) stream where LMS has to transcode the stream.

I’m not in front of my computer now but if tidal uses http 1.1 and does
not specify a “connection” header, then this is keep-alive by default
and LMS now respects that even when content-length has been received. I
have to recheck but with 1.0, LMS explicitly closes the Perl object when
content-length has been reached. That might be the reason for the issue,
which is the object is still referenced somewhere in Perl code and so
it’s not deleted and there is no proper shutdown. I will have a look.



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3

philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113321

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


Re: [SlimDevices: Unix] PCP 6.1.0 - Issue with .cue. (LMS 8.0)

2020-12-03 Thread philippe_44


bpa wrote: 
> The Interactive Radio Paradise Flac stream uses flc - flc .  RP Main is
> ogg/flac.
> 
> As seeks don't work - the only way I can see "flc flc transcoding" rule
> being invoked is by resampling - but RP is 44.1kHz (I think) which is
> supported by all players.
> 
> mcdumand said "flc pcm" rule was the problems.   I can'tr see how this
> invoked without disabling some rules e.g. "Flc native".

Oops ... I read "TIDAL", not "RP" ... don't know why :(



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3

philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113308

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


Re: [SlimDevices: Unix] PCP 6.1.0 - Issue with .cue. (LMS 8.0)

2020-12-03 Thread philippe_44


amey01 wrote: 
> I just tried RadioParadise FLAC streams (all of them) on the latest
> 8.1.0 and they all work fine for me. 
> 
> FLAC transcoding rule is native.

Perfect! Did you check seeking as well?



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113308

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


Re: [SlimDevices: Unix] PCP 6.1.0 - Issue with .cue. (LMS 8.0)

2020-12-01 Thread philippe_44


bpa wrote: 
> That's good. You managed to create a solution that handles both use
> cases. I don't fully understand the streaminfo header issue but enough
> to get the gist of the problem.  
> 
> I don't have Tidal but I'll do test on the Flac cue side of things.
> 
> FYI - ffmpeg can do a skip (aka -ss ) on a stdin stream - it does so by
> just processing all input and waiting until time point before generating
> output. Not a real seek but same result. ffmpeg is useful when
> workarounds are needed.

argh, I did not think that skip from stdin would be used. So... I've
changed the PR to make the $START$ suppression an option that depends on
the actual input



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113308

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


Re: [SlimDevices: Unix] PCP 6.1.0 - Issue with .cue. (LMS 8.0)

2020-11-30 Thread philippe_44


I think I have something working now in the latest patch. Tested it with
Tidal and the flac@96k with cuesheet that you gave me. It seems fine,
including repositioning, on a player limited @ 44.1kHz. 

@bpa, we needed to combine both views on the flac transcoding command
:)

1- you're right, flac when called with a --skip on stdin fails, which
makes perfect sense. I've now changed TranscodingHelper.pm so that when
a rule is being used with a start from stdin ('I' streamMode) then the
$START$ is not used, only the $END$ (if any). That sounds logical to me,
you can't expect transcoder to seek from stdin and I've not seen any
rule in convert.conf that would be in conflict with that.
2- still, when called with no streaminfo header, flac fails to build a
wav header (at least one that is acceptable by sox), so the simple rule
of using wav in the pipeline did not work when seeking on a flac file or
from stdin. I've now added samplerate and samplesize to the accessible
parameters in conver.conf & friends. I've not added endianness or sign
for now as they can be forced in the rule itself

Patch is here https://github.com/Logitech/slimserver/pull/462



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113308

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


Re: [SlimDevices: Unix] PCP 6.1.0 - Issue with .cue. (LMS 8.0)

2020-11-30 Thread philippe_44


bpa wrote: 
> I have a test Flac + cue file.  96kHz which triggers resampling if
> played to a SB3/Boom etc.

Do you have a way to share it? You can PM me if you prefer



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113308

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


Re: [SlimDevices: Unix] PCP 6.1.0 - Issue with .cue. (LMS 8.0)

2020-11-30 Thread philippe_44


mherger wrote: 
> > So we agree? This is not a tidal specific solution, but a generic flac
> > one.
> 
> I don't follow 100%. Do you believe that the suggested change in your PR
> 
> would allow us to play both TIDAL, and those hires CUE sheet accompanied
> 
> ..flac files with the same set of rules? Without my q'n'd hack to add a 
> TIDAL specific rule set?
> 
> That would be a great reason to start the 8.1 branch :-).
> 
> -- 
> 
> Michael

At least this is the intention. I need to build one of these flac files
with cue to see if it solves the problem, but it should do.



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113308

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


Re: [SlimDevices: Unix] PCP 6.1.0 - Issue with .cue. (LMS 8.0)

2020-11-30 Thread philippe_44


bpa wrote: 
> In 6.* & early 7.* sample size was not an issue then because it always
> 16 bit.  I remember dealing with those instances. PCM used to be within
> LMS CD i.e. always 44.1kHz 16bits fixed etc.  There were a few rules
> outputting raw pcm - remember (i) at the time there was no 96Khz /12 bot
> audio and (ii) in those cases the application ffmpeg/mplayer/wavcmd
> could do the change to output a raw CD format PCM.
> 
> As formats have become more varied, I was concerned that we do not have
> to revisit this bit of code again in the future to add more format
> option.  I do prefer a generic solution rather than a Tidal specific
> one.

So we agree? This is not a tidal specific solution, but a generic flac
one.



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113308

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


Re: [SlimDevices: Unix] PCP 6.1.0 - Issue with .cue. (LMS 8.0)

2020-11-30 Thread philippe_44

bpa wrote: 
> I think we can wait since tdlflc type has been added to fix conflict and
> there is no immediate demand.
> 
> I think adding a format for samplesize may not be enough we may need to
> also add Big/Little Endian, Signed/Unsigned as well as Fixed point /
> Floating point for completeness

I have added sample rate and I think that as far as flac is concerned,
we have all the information we need because flac output can be forced to
a specific endianness, sign and it does not support floating points, so
sox has everything it needs. There is already a few rules with flac
outputting raw pcm, but the sample size was already missing (I’m not
sure how things are currently handled for the flc pcm or flc aif rules. 

I agree there is no rush but if it works, isn’t it a more simpler
solution and more generic than creating a format for tidal flac where in
addition we now prevent flac to be sent natively to players.



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113308

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


Re: [SlimDevices: Unix] PCP 6.1.0 - Issue with .cue. (LMS 8.0)

2020-11-29 Thread philippe_44


bpa wrote: 
> Will it work with Flac 24bit/192kHz flac file with a cue sheet being
> resampled to play on a 96kHz player ?  AFAIK if you use raw - you will
> lose sample size. It looks like you assume 16 bit sample size ?
> I think Michael added a %C channel count a few years ago, maybe time to
> add sample size to the transcoding helper.

Yes, this is where I was aiming at, otherwise we'd have to limit to 16
bits and probably make a separated "I" rule to limit collateral damages
(you can have different rules now for different sources, that one thing
I've added in 8.0) but I feel some will not like it (I personally don't
mind but that's a battle I'm not interested taking). 

It's not there in the current TranscodingHelper.pm but it's probably not
complicated to add (just need to find a free letter :)) if you and
Michael think it is worth



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113308

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


Re: [SlimDevices: Unix] PCP 6.1.0 - Issue with .cue. (LMS 8.0)

2020-11-29 Thread philippe_44


bpa wrote: 
> I think I understand what you're saying.  I assumed that Flac was trying
> to do a Linux "seek" on the input file to implement "skip" and it
> couldn't do a "seek" on stdin piped input.

I missed something so my HTTP comment was incorrect (I thought the OP
was talking about some streams) but I don't think it changes the
conclusion. The following rule does not work

Code:


  flc flc transcode *
# IFT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d}
[flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t flac -C 0 
$RESAMPLE$ -
  


AFAIK, when using a rule from stdin, LMS does not expect the transcoders
to do anything wrt seeking. It does the seek on behalf and then send the
remaining bytes to the transcoder. That applies wherever stdin is
generated from (remote or local). But a rule that allows "I" and uses
flac will start the "flac" process at the seeked position (if any). So
if there is no seek, flac will see a STREAMINFO header and will generate
a proper wav header that pleases sox. But as soon as there is a seek,
that header disappears and especially sample_count is unknown, so the
wav header is absent or incorrect and sox fails. I don't use cuesheets,
but I think it's a seek for the 2nd track, which would match the OP's
experience.

I think that if we want to use flac with seek, we have to use raw pcm
for sox input, so a rule like

Code:


  flc flc transcode *
# IFT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d}
[flac] -dcs $START$ $END$ --force-raw-format --sign=signed 
--endian=little -- - | [sox] -q -t raw --encoding signed-integer -b 16 
$RESAMPLE$ -c $CHANNELS$ -L - -t flac -C 0  - 
  


So far, it works if I use it a general rule (flc flc * * ) whether there
is a seek or not (careful, when used as a general rule, $RESAMPLE$ is
not defined, so must force -r x for test). But I need to verify that
more and find a solution for the sample size as well



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113308

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


Re: [SlimDevices: Unix] PCP 6.1.0 - Issue with .cue. (LMS 8.0)

2020-11-29 Thread philippe_44


bpa wrote: 
> I'm not sure if I made the subtly of the issue clear.  The problem
> relates to two very specific limited use cases - Cue/Flac & Tidal/Flac.
> 
> The flac command does not support the "--skip" option if input is from
> stdin.
> 
> With flac/cue files, if no resampling is required, LMS will process flac
> file and skip to right point and direct stream to player
> With flac/cue file, transcoding with flac & sox will be used if
> resampling is required. I think the "--skip" option will appear if not
> playing from 0.  The flac  command with "--skip" will fail if input is
> from stdin.
> 
> Creating a tdlflc would solve the current issue (i.e. IFT for Tidal and
> FT for cue/flac), 
> 
> The Tidal problem affects a few high compression Tidal track causing
> stuttering on ip3k players.
> 
> I believe Tidal can supply 96kHz tracks (albeit with MQA).  
> If LMS were to play these track to a SB3 - resampling would be required.
> 
> If a user were then to ffwd within the track I think the same issues
> with flac/cue would occur.
> Is this too specific a user case to worry about ?

I looked a bit more and had to refresh my memory. 

The issue seems to me that when we use "I" and seek, then LMS does a
HTTP range request to reach the guessed offset (I worked on that flac
header parsing & building for 8.0) so the flac decoder does not have a
STREAMINFO header, it's just streamed flac. 

In that case, it does not seem to rebuild a proper WAV header and as
consequence sox fails to resample. This is what I observe in the
conversion log. I feel it can be fixable by either forcing flac decoding
to build a proper header or by using raw and giving sox the raw
parameters



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3

philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113308

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


Re: [SlimDevices: Unix] PCP 6.1.0 - Issue with .cue. (LMS 8.0)

2020-11-29 Thread philippe_44


mherger wrote: 
> > Couldn't the problem happen with any flac file, as long as some flac
> > compression mode is being used?
> 
> That's correct. But if it's your own, you got the freedom to re-encode
> it.
> 
> > Maybe we could detect that level?
> 
> Unfortunately this seems not to be possible. I googled around for it, 
> but all I've found was that this wasn't possible.
> 
> > Also, I don't fully remember the problem, but @bpa, doesn't that only
> > happens with Boom and some models, right? If it does, could we make a
> > transcode rule that only applies to these models?
> 
> Yes, I believe it's ip3k only. There seems to be some logic to limit 
> certain rules to some players only. But TBH. I haven't figured it out
> yet.
> 
> My suggestion really is a band aid to get TIDAL working without breaking
> 
> other stuff. It actually doesn't really work... seeking with flac -> 
> flac transcoding doesn't work. My latest custom-convert.conf would 
> simply disable flac->flac and only transcode to PCM/AIF, as that seems 
> to do the trick, without breaking seeking.
> 
> -- 
> 
> Michael

I was thinking more about differences between variable and fixed block
size which can be detected in STREAMINFO header. So far, it seems that
almost all flac are coded with fixed block but I was wondering is higher
compression level would not trigger use of variable block which then
cause the problem on older devices. We can now parse such header so we'd
know and could use different rules.

About rules, would something like "flc flc boom *" (e.g.) work for Boom
only players and do the trick?



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3

philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113308

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


Re: [SlimDevices: Unix] PCP 6.1.0 - Issue with .cue. (LMS 8.0)

2020-11-29 Thread philippe_44


mherger wrote: 
> @bpa - would the following fix the issue?
> 
> > 
Code:

  >   > diff --git a/Slim/Plugin/WiMP/ProtocolHandler.pm 
b/Slim/Plugin/WiMP/ProtocolHandler.pm
  > index 509de4516..d952e3c88 100644
  > --- a/Slim/Plugin/WiMP/ProtocolHandler.pm
  > +++ b/Slim/Plugin/WiMP/ProtocolHandler.pm
  > @@ -40,6 +40,15 @@ sub getFormatForURL {
  > return $format;
  > }
  > 
  > +sub formatOverride {
  > +   my ($class, $song) = @_;
  > +   my $format = Slim::Music::Info::contentType($song->currentTrack);
  > +
  > +   return 'tdlflc' if $format eq 'flc';
  > +   return $format;
  > +}
  > +
  > # default buffer 3 seconds of 256kbps MP3/768kbps FLAC audio
  > my %bufferSecs = (
  > flac => 80,
  > diff --git a/Slim/Plugin/WiMP/custom-convert.conf 
b/Slim/Plugin/WiMP/custom-convert.conf
  > new file mode 100644
  > index 0..97d7ff763
  > --- /dev/null
  > +++ b/Slim/Plugin/WiMP/custom-convert.conf
  > @@ -0,0 +1,19 @@
  > +
  > +tdlflc mp3 * *
  > +   # IFB:{BITRATE=--abr 
%B}T:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=--resample %D}
  > +   [flac] -dcs $START$ $END$ -- $FILE$ | [lame] --silent -q $QUALITY$ 
$RESAMPLE$ $BITRATE$ - -
  > +
  > +tdlflc pcm * *
  > +   # IFT:{START=--skip=%t}U:{END=--until=%v}
  > +   [flac] -dcs --force-raw-format --endian=little --sign=signed $START$ 
$END$ -- $FILE$
  > +
  > +tdlflc aif * *
  > +   # IFT:{START=--skip=%t}U:{END=--until=%v}
  > +   [flac] -dcs --force-raw-format --endian=big --sign=signed $START$ $END$ 
-- $FILE$
  > +
  > +tdlflc flc * *
  > +   -
  > +
  > +tdlflc flc transcode *
  > +   # IFT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d}
  > +   [flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t flac -C 0 
$RESAMPLE$ -
  > diff --git a/convert.conf b/convert.conf
  > index 90748daa2..1c0739875 100644
  > --- a/convert.conf
  > +++ b/convert.conf
  > @@ -357,7 +357,7 @@ mp3 mp3 transcode *
  > [lame] --silent -q $QUALITY$ $BITRATE$ $RESAMPLE$ --mp3input $FILE$ -
  > 
  > flc flc transcode *
  > -   # IFT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d}
  > +   # FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d}
  > [flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t flac -C 0 
$RESAMPLE$ -
  > 
  > # This example transcodes MP3s to MP3s, if the target machine has the
  > 

> > 
> 
> What this does is it defines a custom format called "tdlflc". Only
> this should transcode on stdin (IFT), but not regular flac.

Couldn't the problem happen with any flac file, as long as some flac
compression mode is being used? Maybe we could detect that level? 
Also, I don't fully remember the problem, but @bpa, doesn't that only
happens with Boom and some models, right? If it does, could we make a
transcode rule that only applies to these models?



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3

philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=113308

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2020-11-26 Thread philippe_44


migselv wrote: 
> Hi,
> 
> Has anyone gotten Shairtune2 to work when running the LMS docker image?
> If you managed to get it working so that your devices connected to LMS
> is visible using Airplay, then please let me know how you did it.
> So far I can only get it working by setting "--net host" in the docker
> run command, and then creating Iptables rules to allow all ports to go
> to the host IP, which is not ideal.
> 
> Thanks.

Finally I've decided to let user set ports. I'll release that soon



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2020-11-24 Thread philippe_44


soundcheck wrote: 
> As I said. That's not enough according to GPL. You're IMO not GPL
> compliant. That'd make you vulnerable.
> 
> I've seen what you've done, while I was in the process using your
> released packages. My intention was to keep my risk low by using your
> packages
> for the LocalPlayer plugin.
> I was even about to write a pull request of my LocalPlayer plugin
> adaptions, when I looked 
> up the license situation around the/your binaries. That stopped me from
> doing it.
> I then realized that the LocalPlayer plugin situation is even worse.
> 
> 
> You basically can't just offer links of references.
> You need to add all sources (physically) best with SHA checksums. And
> you also need to add your build recipes.
> And that you do for every package. 
> 
> Have a look at a typical e.g. Debian source package  "apt-get source
> flac". And don't miss to have a look at the .dsc file! 
> That .dsc files also refers to e.g. patches and the Makefiles/configure
> settings on a per CPU/OS architecture basis.
> 
> Just write a script that collects all the stuff and puts it together. It
> just hurts once. 
> You could even split the stuff into BIN and SRC packages. E.g. As Debian
> does.
> 
> Just take this as advise! I havn't invented all that. 
> Consider it as a trigger to have a closer look at the subject.

AFAIK the obligation is to provide source when it is requested, to
everyone who requests it. It does not come with an obligation to make
the source code delivered at the same time as the binary. Of course you
can, but otherwise what matters is to comply to a request if any.



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3

philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

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


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2020-09-02 Thread philippe_44

mcoste wrote: 
> -b 32:512 wouldn't play
> 
> I went with -b 2000:3000 (ie 2048000/3072000 in log file, vs. defaults
> in log 2097152/3528000) and same problem.
> Log: https://pastebin.ubuntu.com/p/fmRJmrHPBB/

Ah crap, need to verify what LMS sends a the min buffer size before
player is able to start. That might prevent the small streambuf value to
work. Try the smallest by 2x increment or I’ll check the code later and
don’t make the buffer size in LMS (second before start of stream) big.
This is just to verify on your side that you don’t have a issue with
idle tcp connection that some part of your network chain viciously
closes. 
BTW, have you tried my ‘reliable’ plugin?



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

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


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2020-09-01 Thread philippe_44


bpa wrote: 
> 30s "feels" timeout somewhere possibly TCP edge update but shouldn't
> exclude possibility within squeezelite.  Any network "optimizing"
> software or utility which may have tweaked network adaptor settings ?
> 
> Even with original 10mbit ethernet - player buffer were filled within
> 1-2secs.
> 
> If network is not delivering, then log should confirm that output buffer
> is emptied and waiting for input.

Maybe one thing to confirm that hypothesis would be to go very small
buffers, like -b 32:512 so ensure that there will be no long pause in
streams (mad min codec space values are 2k/206k) - not sure why 206k BTW
and @ralphy, could there be a chance that 2k min_space is a bit too
small for mad? I've never paid attention to what mad needs in term of
min chunk



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

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


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2020-08-31 Thread philippe_44


Arthur wrote: 
> as what mcoste allready discovered it's buffer related.
> 
> Now the complicated part, the codec should hold at least one mp3 frame
> input (advised 5) and a higher number on the output side.
> 
> So for a 2 second buffer i toke a 320 kbps bitrate => 655360 bits
> and for the output i doubled the size => 1310720 bits
> 
> C:\squeezelite\squeezelite-x64.exe -o 9 -M "ArthurPC" -b 655360:1310720
> -d all=debug
> 
> BUT THE MAIN QUESTION IS: what is the real max size of a MP3 frame ???
> 
> see ti.pdf (Texas Instruments - Bitstream Buffer in Audio Coprocessor)
> 
> Arthur

Size are in KB. So 1400 is actually 1.4MB



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

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


Re: [SlimDevices: Unix] IQ Audio Codec+ No Longer Streams Flac

2020-08-17 Thread philippe_44


paul- wrote: 
> Arecord reads the input device, and sends the data to sox in raw pcm. 
> sox is encoding the flac scream
> 
> ORDERING=little
> ENCODING=signed-integer
> CHLS=2
> outformat="--type flac --compression 4"
> BITS can be 16/24/32
> RATE can be any of the normally supported rates.
> 
> post="sox --type raw --bits ${BITS} --channels ${CHLS} --rate ${RATE}
> --encoding ${ENCODING} --endian ${ORDERING} - ${outformat} -"
> 
> 
> Ralphy made a comment by the commit that is causing the problems..
Got it - I've submitted the fix. I forgot, when I switched the Flac
header parsing to onStream instead of onBody, to return 0 at the end of
parseFlacHeader to tell LMS to close that socket. Meanwhile, you can
just edit Slim::Utils::Scanner::Remote.pm and add a "return 0" at the
very end of "parseFlacHeader"



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3

philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=112767

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


Re: [SlimDevices: Unix] IQ Audio Codec+ No Longer Streams Flac

2020-08-17 Thread philippe_44

ian_heys wrote: 
> My IQaudio Codec+ has stopped streaming flac but continues to stream MP3
> it's been like this for about a week and I haven't been able to find out
> the cause. Flac streams appear to start but are silent and usually stop
> after 16 seconds.
> 
> I think it might be related to an LMS nightly update but have tried all
> types of file type combinations.
> 
> Is anyone else using this codec to stream - I think I might be alone.
> 
> I'm up to date on LMS 8.0.0 nightlies on my server and pCp 6.1.0 on my
> "player". edit player/streamer

I’ve made a change in flac management so that seeking in remote streams
works on Boom and SB3. That means I have to parse the flac file on the
fly and I’ve probably left a mistake with some flac options (some fields
have a complicated coding). Would you mind either telling me how your
flac are encoded or better sending me a failing file?



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
--------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=112767

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


Re: [SlimDevices: Unix] Manjaro update kills LMS

2020-07-17 Thread philippe_44


albright wrote: 
> I don't know about perlbrew - can you say more about how it would work
> in this case?

You get it from there https://perlbrew.pl/. Select a version xx.y you
want that is compatible with LMS. Download it following the instruction
on the site

- set environment with : source ~/perl5/perlbrew/etc/bashrc
- install it with : perlbrew install -j 4 --multi --thread --64int
perl-5.xx.y
- switch to it with : perlbrew switch perl-5.xx.y
- verify with : perl -v

You can have as many Perls as you want. This is what I'm using to create
my plugin binaries that are specific to a Perl version

>From there, download a LMS version in a directory you like, go there and
start LMS with:

perl slimserver.pl --cachedir \cache --logdir \logs
--prefsdir \prefs

dir1,2 and 3 can be the same and you must have rw right there. Don't
start LMS as root user

You can even omit dir1,2,3 and it will creates them in the working
directory. You can also make them point to your existing LMS
installation with I think are (to be verified)

/var/log/squeezeboxserver
/var/lib/squeezeboxserver/cache
/var/lib/squeezeboxserver/prefs



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=112616

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


Re: [SlimDevices: Unix] Manjaro update kills LMS

2020-07-17 Thread philippe_44

albright wrote: 
> yes, at least for now I can downgrade. Hopefully, LMS will enable
> support for
> 5.32 when time permits ... Thanks for the help/advice

I’ve not tried in details, but you might be able to use perlbrew and get
the Perl version you want. At the end, LMS just needs the slimserver.pl
script to be launched. That’s the way I’m testing multiple LMS versions
on the same system.



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=112616

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


Re: [SlimDevices: Unix] Yamaha musiccast

2020-02-20 Thread philippe_44


Paul Webster wrote: 
> MusicCast is Yamaha specific and I don't remember seeing a plugin for it
> from LMS.
> However, they also support AirPlay ... so maybe you could integrate them
> with LMS by using the AirPlay plugin.
> If that worked the you might be able to use LMS to start playing on your
> real MusicCast system and sync it (via LMS) to your Raspberry Pi in the
> bathroom (assuming that is what you would want to do).

I works in AirPlay mode, I have a 20



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
----
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=111695

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


Re: [SlimDevices: Unix] PiCorePlayer + OLED (SH1106) + Menu possible?

2020-01-21 Thread philippe_44

You could the use the approach I’m taking with squeezeamp which is to
let LMS driver the UI. It requires programming though, I don’t think
squeezelite has any variant that handles LMS’ graphic display request as
I do in squeezeamp. Could be an interesting project, if not existing
today, to build a bridge between LMS graphic messages and LCDproc



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

philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=111460

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


Re: [SlimDevices: Unix] Jivelite on a Pirate Audio 240x240 screen

2020-01-20 Thread philippe_44

@chill: maybe at some pount I’ll will ask for your help on squeezeamp
and jive. Currently I’m finishing the porting is displays managed by
LMS, but I’m curious to see if we can get more w/o running out of code
and data  memory



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

philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=111502

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


Re: [SlimDevices: Unix] help me unravel deep networking problem with classic squeezebox

2019-09-21 Thread philippe_44

Reason why I asked about jumbo frames and MTU is because I had a sort of
similar problem a few years ago with a NAS that was activating such
jumbo frames when it should have not. But that was probably an old buggy
stack. I know it’s mainly a discussion with you and @bpa now :) but it
seems to me that the only different variable in your system is your NUC
so it feels like it has to be something related to its IP stack. Why a
precise song? Maybe because due to the compression ratio, the classic
starts to control flow at a different point of time that happens at the
wrong moment during some TCP/IP process (hence I was also asking for
window size values)

Good luck



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

philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=110986

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


Re: [SlimDevices: Unix] help me unravel deep networking problem with classic squeezebox

2019-09-20 Thread philippe_44


any chance that the NUC has this jumbo frames option enabled? Have you
looked at the options set in your NUC regarding MSS and MTU - any
potential issue with pMTUd? Similar questions with TCP window size



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

philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=110986

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


Re: [SlimDevices: Unix] Asset UPnP on QNAP - Audio format streaming - FLAC to WAV

2019-01-01 Thread philippe_44

I know this is not the comment you’re looking for and you can tell me
that if I don’t try to answer the question, I should not post but ...
really it will sound the same. This is a lossless format and any
perceived différence is as real as difference you hear between listening
with or without a few glasses of wine. The comments about cpu noise and
all is just BS. Now, everybody is free to use own time as one likes to.



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

philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=109967

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


  1   2   >