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

2021-08-04 Thread bpa


In this 2006 post Sean Adams says this feature is only for SB1 - it
should nto be needed for BS2 or Sb3.

seanadams wrote: 
> Right, however this is ONLY needed with Squeezebox1. SB2 and SB3 do not
> drop the s/pdif signal, so there is no resyncing invovled.  If sync is
> lost during silence, then sending more silence would not make a
> difference.  Maybe I should not have assumed that he had a new
> Squeezebox... unless it is an SB1, this is almost certainly a bug in the
> receiver.



https://forums.slimdevices.com/showthread.php?26307-Beginning-of-Song-Gets-Cut-Off=128324=1#post128324



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
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-04 Thread bpa


The way to see who needs it is to look for post with "start chopped" or
"truncated"

The feature was introduced around 10-May-2004 nightlies of 5.1.6 - and
still didn't solve user problem.

https://forums.slimdevices.com/showthread.php?6014-Beginning-of-songs-chopped-off-and-unable-to-seek-with-5-1-6-on-Windows=16130=1#post16130



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
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-04 Thread bpa


schup011 wrote: 
>  Couldn't those lines in the code be tracked back when they were
> introduced or changed in order to understand what the reason for
> introducing this feature was?

I'm sure somebody could spend time and look back at Slimserver 5.* & 6.*
but does it help ?  It won't really explain why the feature was added
nor who actually needs it today and their finite time can be spent
fixing other problem which affect more users.

My gut feeling is that not many users actually need the feature today. I
think digital input have improved and don't need time to sync up.
If it was really needed today, I would have expected a few Flac,AAC,Ogg
& WMA users to have asked for it but I can't remember any requests

Currently some users may do play with this setting if they are trying to
solve a problem and if problem is "solved", setting is likely a placebo
as they are unlikely to be only playing MP3.
My strategy would be 
(i)  remove the setting from Web page and so prevent new users setting
non zero values. 
(ii) existing users would keep their non-zero setting in prefs. No
visible setting will make then ask what happened so actual users will be
come visible and can be investigated.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
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-04 Thread schup011


mherger wrote: 
> > The fact it only applies to MP3 is inconsistent but nobody cared too
> > much - however it only works for 44.1k - play non 44.1k and you get
> slow
> > playback or chipmunks.
> 
> Does that apply to formats other than mp3, too? Would they fail to play?

I can confirm what bpa describes. I also have tested with flac and
everything works fine. 

In my case, only the 48 kHz MP3 failed and was too slow. I could even
let run two players the same MP3 48 kHz radio stream, one with the
startup time to 1s, one with no start up time, without sync, and the one
without start up time would run away from the other.

Couldn't those lines in the code be tracked back when they were
introduced or changed in order to understand what the reason for
introducing this feature was?



schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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-04 Thread bpa


mherger wrote: 
> > The fact it only applies to MP3 is inconsistent but nobody cared too
> > much - however it only works for 44.1k - play non 44.1k and you get
> slow
> > playback or chipmunks.
> 
> Does that apply to formats other than mp3, too? Would they fail to play?
OP has said they have tested with AAC and there is no problem.

It seems that silence is ONLY added when format is MP3. All calculations
in code assume a 44.1kHz stream. 

The issue may now be noticeable because of s/w players using ALSA which
have a sample rate defined when opened. I wonder whether old h/w player
(e.g. SB1) can change sample rate on the fly when natively decoded. MP3
frames have sample rate in the frame header,  so that a rate change
between silence frame and audio frames could be a passed onto DAC

Just by looking at LMS code, the current implementation looks like it
checks for MP3 format and then uses a file called lbrsilence.mp3 to add
the required number of MP3 frames of audio silence.

There are no equivalent "silence" files for Flac, WMA or OGG which I
think would be necessary if the other SB2/SB3 native formats also added
silence.

Strangely there are two other files which seem to be unused: silence.mp3
and silentpacket.mp3



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
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-04 Thread Michael Herger

The fact it only applies to MP3 is inconsistent but nobody cared too
much - however it only works for 44.1k - play non 44.1k and you get slow
playback or chipmunks.


Does that apply to formats other than mp3, too? Would they fail to play?
___
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-03 Thread bpa


slartibartfast wrote: 
> From the description it only applies to mp3

The fact it only applies to MP3 is inconsistent but nobody cared too
much - however it only works for 44.1k - play non 44.1k and you get slow
playback or chipmunks.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
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-03 Thread slartibartfast

mherger wrote: 
> > 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
> 
> And it does so for mp3 only? Other formats would play correctly as 
> expected?
> 
> > 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â€[emoji769]ve
> never
> > investigated that part.
> 
> I'm wondering whether this is something SliMP3 and/or SB1 needed. Would 
> recent players or Squeezelite work without those files? I'd rather 
> disable this for recent players than add new files.From the description it 
> only applies to mp3[image:
https://uploads.tapatalk-cdn.com/20210803/99d839bcb6cc3319dfab945e9309dcbf.jpg]

Sent from my Pixel 3a using Tapatalk





slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609
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-03 Thread bpa


mherger wrote: 
> I'm wondering whether this is something SliMP3 and/or SB1 needed. Would 
> recent players or Squeezelite work without those files? I'd rather 
> disable this for recent players than add new files.

This issue has been noticed before 
2020
https://forums.slimdevices.com/showthread.php?113304-Streaming-problem=996281=1#post996281
2018
https://forums.slimdevices.com/showthread.php?109252-I-inadvertently-broke-MP3-playback=917005=1#post917005
2018
https://forums.slimdevices.com/showthread.php?109778-Playing-tracks-in-with-different-sample-rates-in-radom-mix=926245=1#post926245
2016
https://forums.slimdevices.com/showthread.php?106445-PiCorePlayer-not-playing-mp3=867418=1#post867418

I think this is a setting introduced for digital outputs where some
DAC/AV receivers used to chop off start of track/stream as they needed
time to get going.
So probably for SB1 - first player to have digital output.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
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-03 Thread schup011

mherger wrote: 
> > 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
> 
> And it does so for mp3 only? Other formats would play correctly as 
> expected?
> 
> > 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.
> 
> I'm wondering whether this is something SliMP3 and/or SB1 needed. Would
> 
> recent players or Squeezelite work without those files? I'd rather 
> disable this for recent players than add new files.
My pCP setup works fine without. I have set the time to 0. Before, I
thought it would be useful, but never investigated whether I really
needed it.



schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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-03 Thread Michael Herger

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


And it does so for mp3 only? Other formats would play correctly as 
expected?



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.


I'm wondering whether this is something SliMP3 and/or SB1 needed. Would 
recent players or Squeezelite work without those files? I'd rather 
disable this for recent players than add new files.

___
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 Michael Herger

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?
___
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 schup011


bpa wrote: 
> I'm pretty sure it is legacy (and not just MP3 but also just 44.1kHz) as
> native Flac only appeared with SB2 and native AAC with Touch/Radio.
> 
> Now it seems the uneven way of handling formats could result in more
> "false" reports.
> 
> If the added "silence" is still necessary for current DACs - I feel
> users would have been demanding it as they would have needed it to play
> Flac and AAC.

I agree and obviously I have never needed it even if I thought I would.
But my example shows that this has to be solved somehow as it gave
really weird results - Philippe's lazyman solution should be sufficient
for most users, but documentation should then also tell that this
feature works only for mp3 44.1 kHz.



schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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 bpa


philippe_44 wrote: 
> Yes, we could have 3 files, for 32, 44.1 and 48 but ... see below
> 
> 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.

I'm pretty sure it is legacy (and not just MP3 but also just 44.1kHz) as
native Flac only appeared with SB2 and native AAC with Touch/Radio.

Now it seems the uneven way of handling formats could result in more
"false" reports.

If the added "silence" is still necessary for current DACs - I feel
users would have been demanding it as they would have needed it to play
Flac and AAC.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
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 schup011


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 .



schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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 bpa


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.
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 ?



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
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 schup011


philippe_44 wrote: 
> 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
> > 
Code:

  >   > 
  > $client->streamingSong->currentTrack->samplerate
  > 

> > 
> as well if you prefer

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.



schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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 bpa


bpa wrote: 
> The setting is really a server based solution because of h/w based
> players. 
> 
> With s/w based players like squeezelite with a lot more
> control/knowledge of the output stream , it would make more sense to
> have a command line option - it is a compromise but since not many
> people have the problem, it might be the easiest way.

Thinking a bit more - this approach would probably fail if players are
synced.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
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 bpa


The setting is really a server based solution because of h/w based
players. 

With s/w based players like squeezelite with a lot more
control/knowledge of the output stream , it would make more sense to
have a command line option - it is a compromise but since not many
people have the problem, it might be the easiest way.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
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 schup011


philippe_44 wrote: 
> 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
> block and reprogram themselves. AFAIK (and I'd need to verify that) LMS
> inserts fix silence frames when some silence is required at the
> beginning and the silence files (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

Couldn't LMS modify the header of those silence files when using them
and recalculate the length that it fits to the desired length?



schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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-02 Thread schup011


It's really funny and I wonder why I haven't noticed that before. I just
always wondered why there were some jumps and left out music.

And I only realized that something is wrong when I listened to a live
performance of "Tristan und Isolde" with my favourite tenor Jonas
Kaufmann. I thought: "Oh my, he is not in a good shape today, his voice
sounds so extremely deep". ;) Then I checked my recording from DVB-S and
everything was normal...



schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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 bpa


schup011 wrote: 
> You are my hero!
> 
> It was the silence. I had entered it because sometimes my Marantz was a
> little late in starting. *I set it to zero - and everything is playing
> ok.
> *
> So it seems that we have tracked down the problem. I think it could be
> reproduced now with adding the "Audio startup time" to 1s. 

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.

> Of course would be great to have it working also with the silence. So
> either LMS must modify the silence header for the final sample rate or
> resend the header when the silence is over, or Squeezelite be fixed to
> recognize the "on-the-fly" sample rate change.
> 
> Who can fix this?

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.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
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 schup011


bpa wrote: 
> The log looks OK to me - except for 
> 
> 
> This is odd because IIRC (needs to check) the silence samples LMS uses
> is encoded into 44.1Khz (file silence.mp3 or lbrsilence.mp3)?
> 
> Have you asked LMS to insert a delay (aka silence) through the "audio
> startup time" setting ?
> 
> edit:
> 
> Silence played fast or slow should make no difference but this is a
> weird problem so must consider everything.

You are my hero!

It was the silence. I had entered it because sometimes my Marantz was a
little late in starting. *I set it to zero - and everything is playing
ok.
*
So it seems that we have tracked down the problem. I think it could be
reproduced now with adding the "Audio startup time" to 1s. Of course
would be great to have it working also with the silence. 

Who can fix this?



schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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 bpa


schup011 wrote: 
> Maybe, LMS - before that - does strange things with the data and
> corrupts them somehow - see post #43.

The log looks OK to me - except for 

> 
> [21-08-02 14:07:49.5340] Slim::Player::Source::_readNextChunk (314)
> Sending 12246 bytes of silence.
> 
This is odd because IIRC (needs to check) the silence samples LMS uses
is encoded into 44.1Khz (file silence.mp3 or lbrsilence.mp3)?

Have you asked LMS to insert a delay (aka silence) through the "audio
startup time" setting ?



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
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 schup011


Here is the same as in post #36, but with a 48 kHz mp3 file, instead of
a stream:


Code:


  [16:06:18.255587] codec_open:264 codec open: 'm'
  [16:06:18.255618] codec_open:281 closing codec: 'f'
  [16:06:18.255860] connect_socket:164 connecting to 192.168.0.161:9000
  [16:06:18.256142] stream_sock:600 header: GET 
/stream.mp3?player=b8:27:eb:74:ea:41 HTTP/1.0
  
  
  [16:06:18.256176] sendSTAT:195 STAT: STMc
  [16:06:18.256260] process_strm:384 set fade mode: 0, channels: 0, invert: 0
  [16:06:18.257108] process:528 audg
  [16:06:18.257152] process_audg:440 audg gainL: 3328 gainR: 3328 adjust: 0
  [16:06:18.257182] set_volume:233 setting internal gain left: 65536 right: 
65536
  [16:06:18.288231] stream_thread:331 headers: len: 491
  HTTP/1.1 200 OK
  Server: Logitech Media Server (8.1.1 - 1610364019)
  Connection: close
  Content-Type: audio/mpeg
  Set-Cookie: Squeezebox-albumView=; path=/
  Set-Cookie: Squeezebox-expandPlayerControl=true; path=/
  Set-Cookie: Squeezebox-expanded-MY_MUSIC=1; path=/
  Set-Cookie: Squeezebox-expanded-FAVORITES=1; path=/
  Set-Cookie: Squeezebox-expanded-PLUGINS=1; path=/
  Set-Cookie: Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME=1; path=/
  Set-Cookie: Squeezebox-expanded-RADIO=1; path=/
  
  
  [16:06:18.288349] sendRESP:226 RESP
  [16:06:18.405621] mad_decode:235 mad_frame_decode error: bad main_data_begin 
pointer
  [16:06:18.407177] mad_decode:247 setting track_start
  [16:06:18.407262] mad_decode:276 gapless: skipping 529 frames at start
  [16:06:19.400020] sendSTAT:195 STAT: STMt
  [16:06:20.400647] sendSTAT:195 STAT: STMt
  [16:06:21.002235] process:528 strm
  [16:06:21.002322] process_strm:280 strm command t
  [16:06:21.002357] sendSTAT:195 STAT: STMt
  [16:06:22.003548] sendSTAT:195 STAT: STMt
  [16:06:23.004889] sendSTAT:195 STAT: STMt
  [16:06:24.005577] sendSTAT:195 STAT: STMt
  [16:06:25.006909] sendSTAT:195 STAT: STMt
  [16:06:26.001616] process:528 strm
  [16:06:26.001706] process_strm:280 strm command t
  [16:06:26.001740] sendSTAT:195 STAT: STMt
  [16:06:27.002940] sendSTAT:195 STAT: STMt
  [16:06:27.096859] _output_frames:153 track start sample rate: 44100 
replay_gain: 0
  
  




schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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 bpa


schup011 wrote: 
> Have a look at post #36.
I think that may be "Normal".

MP3 audio data is made up of many frames. Each frame has a  header
(indicated by a unique byte sequence - 0xFF, 0xF? I think) which have
details of the stream and then the audio data.

MP3 Files will always start with a header.
MP3 stream are continuous so when players  "joins" the broadcast - it
could be in the middle of the audio data part but player doesn't know
stream or file. So decoder will look at first few bytes which is likely
to NOT be a header so decoder will fail and so decoder will then skip
data by looking for 0xFF, 0xF? sequence to find next MP3 header & frame.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
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 schup011


bpa wrote: 
> to save time - can you which post/log this is shown.  MP3 frame are
> invalid without sample rate and cannot be decoded. It cannot be
> guessed.
> 
> 

Have a look at post #36.



schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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 schup011


Here is how LMS reacts for the two different streams (mp3 codec not
excluded in Squeezelite). Looks weird.

First, on 14:07:44, the "problematic" mp3 stream was requested. Then
after a few seconds, it played, but too slow.
Second, on 14:08:05, the aac stream of the same radio was requested.
After a few seconds it played ok.

35403

Also here, something looks not really ok. Many iterative checks of how
to transcode


+---+
|Filename: server.log-4.txt |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=35403|
+---+


schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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 bpa


schup011 wrote: 
> Yeah, the log shows that it does not find the sample rate and maybe
> guesses it from the first data
to save time - can you which post/log this is shown.  MP3 frame are
invalid without sample rate and cannot be decoded. It cannot be
guessed.

> The thing I am really confused about is that with flac or aac, 48 kHz
> rates are no problem. So as data out to the HDMI is PCM anyway, the
> Marantz should not notice whether it was mp3 or aac or flac originally.

The HDMI interface is an ALSA interface to squeezelite. Depending on the
HDMI interface capabilities and the ALSA device opened - the ALSA can
resample streams which are incompatible.
The interface expects PCMs frames and also when opening the ALSA device
parameters about the PCM stream such as sample size (e.g. 16bit, 24bit),
channels and how fast to play the frames.
For some reason after decoding MP3 frames, squeezelite decides to open
the ALSA device with 44.1khz and not 48kHz. 48kHz MP3 is unusual and so
perhaps there is a bug where the 48kHz gets "lost".

A squeezelite bug should be replicable and so show up on other systems.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
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 schup011


bpa wrote: 
> The strange thing is that within the MP3 audio frame header, the sample
> rate of the audio stream is specified.
> The HDMI output device should be opened with the rate found in the MP3
> frame.
> 
> Can you confirm the hardware which is running PCP - what version of a Pi
> hardware so that maybe others can test ?
> What model of Marantz - with HDMI there is negotiation as to what rates
> are supported by HDMI device.

Yeah, the log shows that it does not find the sample rate and maybe
guesses it from the first data

It is a RasPi Model 3B with Marantz SR 6013, JiveLite on official 7''
touchscreen, LMS 8.1 and SqueezeLite updated to current version:


Code:

piCorePlayer | piCorePlayer v6.1.0 | www v0009 | linux 4.19.122-pcpCore_v7 
| piCore v10.3pCP | Squeezelite v1.9.9-1386-pCP



The thing I am really confused about is that with flac or aac, 48 kHz
rates are no problem...



schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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 bpa


schup011 wrote: 
> You can verify with the radio stream:
> https://streams.br.de/br-klassik_3.m3u
> 
> But I think is a very typical one. And it happens only with the HDMI
> audio out system Could be a performance or timing problem??

The strange thing is that within the MP3 audio frame header, the sample
rate of the audio stream is specified.
The HDMI output device should be opened with the rate found in the MP3
frame.

Can you confirm the hardware which is running PCP - what version of a Pi
hardware so that maybe others can test ?
What model of Marantz - with HDMI there is negotiation as to what rates
are supported by HDMI device.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
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 schup011


philippe_44 wrote: 
> And it does that will *all* your 48kHz files? Can you upload one
> somewhere? I'll verify that with my squeezelite port on esp32 as well,
> or any of my bridges.

You can verify with the radio stream:
https://streams.br.de/br-klassik_3.m3u

But I think is a very typical one. And it happens only with the HDMI
audio out system Could be a performance or timing problem??



schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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 schup011


philippe_44 wrote: 
> And it does that will *all* your 48kHz files? Can you upload one
> somewhere? I'll verify that with my squeezelite port on esp32 as well,
> or any of my bridges.

It does only occur with 48 kHz mp3 files or streams. I will check
whether the Squeezelite log looks the same with the 48 kHz mp3 radio
stream.

To my knowledge, I have only this one file with 48 kHz mp3, because
usually, in my library, I only have flac. There are some CD downloads
with mp3, but those are 44.1 kHz.



schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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 schup011


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):


Code:


  [01:53:10.304747] codec_open:265 codec open: 'm'
  [01:53:10.304764] codec_open:283 closing codec: 'a'
  [01:53:10.304855] _tcp_connect:486 connecting to 192.168.0.161:9000
  [01:53:10.305040] stream_sock:577 header: GET 
/stream.mp3?player=b8:27:eb:74:ea:41 HTTP/1.0
  
  
  [01:53:10.305059] sendSTAT:189 STAT: STMc
  [01:53:10.305098] process_strm:377 set fade mode: 0
  [01:53:10.305136] process:521 audg
  [01:53:10.305150] process_audg:433 audg gainL: 5120 gainR: 5120 adjust: 0
  [01:53:10.305165] set_volume:233 setting internal gain left: 65536 right: 
65536
  [01:53:10.695850] stream_thread:247 headers: len: 491
  HTTP/1.1 200 OK
  Server: Logitech Media Server (8.1.1 - 1610364019)
  Connection: close
  Content-Type: audio/mpeg
  Set-Cookie: Squeezebox-albumView=; path=/
  Set-Cookie: Squeezebox-expandPlayerControl=true; path=/
  Set-Cookie: Squeezebox-expanded-MY_MUSIC=1; path=/
  Set-Cookie: Squeezebox-expanded-FAVORITES=1; path=/
  Set-Cookie: Squeezebox-expanded-PLUGINS=1; path=/
  Set-Cookie: Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME=1; path=/
  Set-Cookie: Squeezebox-expanded-RADIO=1; path=/
  
  
  [01:53:10.695964] sendRESP:220 RESP
  [01:53:10.767566] mad_decode:232 mad_frame_decode error: bad main_data_begin 
pointer
  [01:53:10.767941] mad_decode:244 setting track_start
  [01:53:10.767977] mad_decode:273 gapless: skipping 529 frames at start
  [01:53:10.776657] _output_frames:64 start buffer frames: 28271
  [01:53:10.776740] _output_frames:149 track start sample rate: 44100 
replay_gain: 0
  [01:53:10.778614] sendSTAT:189 STAT: STMs
  [01:53:10.778753] sendSTAT:189 STAT: STMt
  [01:53:10.786830] output_thread:687 open output device: sysdefault:CARD=ALSA
  [01:53:10.790258] alsa_open:351 opening device at: 44100
  [01:53:10.792448] alsa_open:422 opened device sysdefault:CARD=ALSA using 
format: S32_LE sample rate: 44100 mmap: 1
  [01:53:10.793086] alsa_open:513 buffer: 80 period: 4 -> buffer size: 3536 
period size: 884
  [01:53:11.779859] sendSTAT:189 STAT: STMt
  [01:53:12.001033] process:521 strm
  [01:53:12.001122] process_strm:274 strm command t
  [01:53:12.001156] sendSTAT:189 STAT: STMt
  
  [01:53:21.007184] sendSTAT:189 STAT: STMt
  
  



It seems as if it has a decode error at the start and then recognizes
the sample rate wrongly. Thus it opens ALSA with 44.1kHz

In contrast, for the aac, it correctly recognizes the sample rate and
therefore also opens ALSA with 48kHz:


Code:


  [01:52:07.241529] _tcp_connect:486 connecting to 192.168.0.161:9000
  [01:52:07.241715] stream_sock:577 header: GET 
/stream.mp3?player=b8:27:eb:74:ea:41 HTTP/1.0
  
  
  [01:52:07.241734] sendSTAT:189 STAT: STMc
  [01:52:07.241777] process_strm:377 set fade mode: 0
  [01:52:07.241817] process:521 audg
  [01:52:07.241832] process_audg:433 audg gainL: 5120 gainR: 5120 adjust: 0
  [01:52:07.241846] set_volume:233 setting internal gain left: 65536 right: 
65536
  [01:52:07.247271] process:521 strm
  [01:52:07.247327] process_strm:274 strm command t
  [01:52:07.247344] sendSTAT:189 STAT: STMt
  [01:52:07.332506] stream_thread:247 headers: len: 490
  HTTP/1.1 200 OK
  Server: Logitech Media Server (8.1.1 - 1610364019)
  Connection: close
  Content-Type: audio/aac
  Set-Cookie: Squeezebox-albumView=; path=/
  Set-Cookie: Squeezebox-expandPlayerControl=true; path=/
  Set-Cookie: Squeezebox-expanded-MY_MUSIC=1; path=/
  Set-Cookie: Squeezebox-expanded-FAVORITES=1; path=/
  Set-Cookie: Squeezebox-expanded-PLUGINS=1; path=/
  Set-Cookie: Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME=1; path=/
  Set-Cookie: Squeezebox-expanded-RADIO=1; path=/
  
  
  [01:52:07.332671] sendRESP:220 RESP
  [01:52:07.377480] process:521 strm
  [01:52:07.377543] process_strm:274 strm command t
  [01:52:07.377561] sendSTAT:189 STAT: STMt
  [01:52:07.682540] process:521 strm
  [01:52:07.682634] process_strm:274 strm command t
  [01:52:07.682670] sendSTAT:189 STAT: STMt
  [01:52:07.987431] process:521 strm
  [01:52:07.987524] process_strm:274 strm command t
  [01:52:07.987558] sendSTAT:189 STAT: STMt
  [01:52:08.292152] process:521 strm
  [01:52:08.292245] process_strm:274 strm command t
  [01:52:08.292282] sendSTAT:189 STAT: STMt
  [01:52:08.597032] process:521 strm
  [01:52:08.597124] process_strm:274 strm command t
  [01:52:08.597159] sendSTAT:189 STAT: STMt
  [01:52:08.901677] process:521 strm
  [01:52:08.901775] process_strm:274 strm command t
  [01:52:08.901808] sendSTAT:189 STAT: STMt
  [01:52:09.206823] process:521 strm
  [01:52:09.206921] process_strm:274 strm command t
  [01:52:09.206955] sendSTAT:189 STAT: STMt
  [01:52:09.511378] process:521 strm
  [01:52:09.511475] process_strm:274 strm command t
  [01:52:09.511508] sendSTAT:189 STAT: STMt
  

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

2021-08-01 Thread schup011


philippe_44 wrote: 
> 
> 
> So it fails. Put the 'player.source' loglevel to 'debug' and try again

It was at debug all the time, for all those excerpts from the log except
for the very first one in post #19.



schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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 schup011


philippe_44 wrote: 
> 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

Not really.

The original problem was that 48 kHz MP3 were played too slowly,
probably as if they were 44.1 kHz. The problem does not occur with flac
48 or aac 48.

Then it was proposed to force LMS to transcode instead of Squeezelite.
Therefore, I used the Squeezelite settings to exclude MP3 from the
codecs it would use. 

But this does not work either because LMS somehow can't find a
conversion rule. So with that Squeezelite setting, the MP3 files are not
played at all anymore.



schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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 schup011


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?



schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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 schup011

Code:

[21-08-01 23:04:58.6796] Slim::Player::StreamingController::_eventAction 
(272) b8:27:eb:74:ea:41: Play in STOPPED-IDLE -> 
Slim::Player::StreamingController::_StopGetNext
  [21-08-01 23:04:58.6805] Slim::Player::StreamingController::_eventAction 
(283) params: index => 0 seekdata => undef
  [21-08-01 23:04:58.6835] Slim::Player::StreamingController::_Stop (610) Song 
queue is now 0
  [21-08-01 23:04:58.6845] Slim::Player::StreamingController::_setPlayingState 
(2377) new playing state STOPPED
  [21-08-01 23:04:58.6853] 
Slim::Player::StreamingController::_setStreamingState (2386) new streaming 
state IDLE
  [21-08-01 23:04:58.6890] Slim::Player::Song::new (109) index 0 -> 
file:///mnt/intenso/Musik/P029/01-01.mp3
  [21-08-01 23:04:58.6906] Slim::Player::Song::new (144) live=2
  [21-08-01 23:04:58.6916] 
Slim::Player::StreamingController::_setStreamingState (2386) new streaming 
state TRACKWAIT
  [21-08-01 23:04:58.6926] Slim::Player::Song::DESTROY (154) 
DESTROY(Slim::Player::Song=ARRAY(0x95efcd0)) live=1: index=0, 
url=file:///mnt/intenso/Musik/P029/01-01.mp3
  [21-08-01 23:04:58.6968] Slim::Player::StreamingController::_playersMessage 
(796) Aktueller Titel: file:///mnt/intenso/Musik/P029/01-01.mp3
  [21-08-01 23:04:58.7078] Slim::Player::Song::getNextSong (223) 
file:///mnt/intenso/Musik/P029/01-01.mp3
  [21-08-01 23:04:58.7084] Slim::Player::StreamingController::_nextTrackReady 
(744) b8:27:eb:74:ea:41: nextTrack will be index 0
  [21-08-01 23:04:58.7090] Slim::Player::StreamingController::_eventAction 
(272) b8:27:eb:74:ea:41: NextTrackReady in STOPPED-TRACKWAIT -> 
Slim::Player::StreamingController::_Stream
  [21-08-01 23:04:58.7095] Slim::Player::StreamingController::_Stream (1210) 
Song queue is now 0
  [21-08-01 23:04:58.7099] Slim::Player::StreamingController::_Stream (1213) 
b8:27:eb:74:ea:41: preparing to stream song index 0
  [21-08-01 23:04:58.7105] Slim::Player::Song::open (360) 
file:///mnt/intenso/Musik/P029/01-01.mp3
  [21-08-01 23:04:58.7124] Slim::Player::TranscodingHelper::getConvertCommand2 
(485) Error: Didn't find any command matches for type: mp3
  [21-08-01 23:04:58.7129] Slim::Player::Song::open (384) seek=false time=0 
canSeek=0SEEK_ERROR_TRANSCODED
  [21-08-01 23:04:58.7141] Slim::Player::TranscodingHelper::getConvertCommand2 
(485) Error: Didn't find any command matches for type: mp3
  [21-08-01 23:04:58.7146] Slim::Player::Song::open (415) Error: Couldn't 
create command line for mp3 playback for 
[file:///mnt/intenso/Musik/P029/01-01.mp3]
  [21-08-01 23:04:58.7152] Slim::Player::StreamingController::_playersMessage 
(796) Problem: Dateityp kann nicht wiedergegeben werden für:: 
file:///mnt/intenso/Musik/P029/01-01.mp3
  [21-08-01 23:04:58.7199] Slim::Player::StreamingController::_willRetry (1408) 
no retry data
  [21-08-01 23:04:58.7204] 
Slim::Player::StreamingController::_setStreamingState (2386) new streaming 
state IDLE
  [21-08-01 23:04:58.7210] Slim::Player::StreamingController::nextsong (889) 
The next song is number 0, was 0
  [21-08-01 23:04:58.7215] Slim::Player::StreamingController::_eventAction 
(302) b8:27:eb:74:ea:41: NextTrackReady - new state STOPPED-IDLE
  




schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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 schup011


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

Ok. I just have Custom Clock Helper, Custom Browse, Material, Music
Information Screen, YouTube, Title Switcher, Full text search.

I will post the log, to me it looks like the one before.



schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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 schup011


philippe_44 wrote: 
> You should submit a log now with lame installed and a copy of your
> convert.conf and custom-convert.conf just to be sure
Ok, will do. Could you tell me where on a pCP system I can find the two
conf files? I have never touched them.



schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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] piCorePlayer: Radio is streamed with wrong frequency

2021-08-01 Thread schup011


paul- wrote: 
> I really get into trouble with transcoding rules.  Not sure why it's not
> going mp3->flc.   But I now see the MP3->MP3 case.  It needs lame.
> 
> Have you installed extension pcp-lame.tcz  (That is not installed by
> default)

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.



schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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 paul-


I really get into trouble with transcoding rules.  Not sure why it's not
going mp3->flc.   But I now see the MP3->MP3 case.  It needs lame.

Have you installed extension pcp-lame.tcz  (That is not installed by
default)



piCorePlayer a small player for the Raspberry Pi in RAM. 
Homepage: https://www.picoreplayer.org

Please 'donate'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)
if you like the piCorePlayer

paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858
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 schup011


This is how it looks like if I play a FLAC:


Code:


  21-08-01 19:56:59.6679] Slim::Player::StreamingController::_eventAction (272) 
b8:27:eb:74:ea:41: Play in STOPPED-IDLE -> 
Slim::Player::StreamingController::_StopGetNext
  [21-08-01 19:56:59.6683] Slim::Player::StreamingController::_eventAction 
(283) params: index => 0 seekdata => undef
  [21-08-01 19:56:59.6698] Slim::Player::StreamingController::_setPlayingState 
(2377) new playing state STOPPED
  [21-08-01 19:56:59.6702] 
Slim::Player::StreamingController::_setStreamingState (2386) new streaming 
state IDLE
  [21-08-01 19:57:02.1721] Slim::Player::Song::new (109) index 0 -> 
file:///mnt/intenso/Musik/K008%20%20%20%20Giacomo%20Puccini%20-%20Jonas%20Kaufmann%20-%20Nessun%20Dorma%20-%20The%20Puccini%20Album%20-%20Orchestra%20dell%27Accademia%20Nazionale%20di%20Santa%20Cecilia,%20Antonio%20Pappano,%20Jonas%20Kaufmann/08%20Giacomo%20Puccini%20-%20Tosca%20-%20Akt%20.flac
  [21-08-01 19:57:02.1739] Slim::Player::Song::new (144) live=3
  [21-08-01 19:57:02.1748] 
Slim::Player::StreamingController::_setStreamingState (2386) new streaming 
state TRACKWAIT
  [21-08-01 19:57:02.2105] Slim::Player::StreamingController::_playersMessage 
(796) Aktueller Titel: 
file:///mnt/intenso/Musik/K008%20%20%20%20Giacomo%20Puccini%20-%20Jonas%20Kaufmann%20-%20Nessun%20Dorma%20-%20The%20Puccini%20Album%20-%20Orchestra%20dell%27Accademia%20Nazionale%20di%20Santa%20Cecilia,%20Antonio%20Pappano,%20Jonas%20Kaufmann/08%20Giacomo%20Puccini%20-%20Tosca%20-%20Akt%20.flac
  [21-08-01 19:57:02.2224] Slim::Player::Song::getNextSong (223) 
file:///mnt/intenso/Musik/K008%20%20%20%20Giacomo%20Puccini%20-%20Jonas%20Kaufmann%20-%20Nessun%20Dorma%20-%20The%20Puccini%20Album%20-%20Orchestra%20dell%27Accademia%20Nazionale%20di%20Santa%20Cecilia,%20Antonio%20Pappano,%20Jonas%20Kaufmann/08%20Giacomo%20Puccini%20-%20Tosca%20-%20Akt%20.flac
  [21-08-01 19:57:02.2235] Slim::Player::StreamingController::_nextTrackReady 
(744) b8:27:eb:74:ea:41: nextTrack will be index 0
  [21-08-01 19:57:02.2241] Slim::Player::StreamingController::_eventAction 
(272) b8:27:eb:74:ea:41: NextTrackReady in STOPPED-TRACKWAIT -> 
Slim::Player::StreamingController::_Stream
  [21-08-01 19:57:02.2246] Slim::Player::StreamingController::_Stream (1210) 
Song queue is now 0
  [21-08-01 19:57:02.2250] Slim::Player::StreamingController::_Stream (1213) 
b8:27:eb:74:ea:41: preparing to stream song index 0
  [21-08-01 19:57:02.2256] Slim::Player::Song::open (360) 
file:///mnt/intenso/Musik/K008%20%20%20%20Giacomo%20Puccini%20-%20Jonas%20Kaufmann%20-%20Nessun%20Dorma%20-%20The%20Puccini%20Album%20-%20Orchestra%20dell%27Accademia%20Nazionale%20di%20Santa%20Cecilia,%20Antonio%20Pappano,%20Jonas%20Kaufmann/08%20Giacomo%20Puccini%20-%20Tosca%20-%20Akt%20.flac
  [21-08-01 19:57:02.2681] Slim::Player::TranscodingHelper::enabledFormat (231) 
Checking to see if flc-flc-*-* is enabled
  [21-08-01 19:57:02.2687] Slim::Player::TranscodingHelper::checkBin (264) 
Checking formats for: flc-flc-*-*
  [21-08-01 19:57:02.2692] Slim::Player::TranscodingHelper::enabledFormat (231) 
Checking to see if flc-flc-*-* is enabled
  [21-08-01 19:57:02.2696] Slim::Player::TranscodingHelper::checkBin (272)
enabled
  [21-08-01 19:57:02.2700] Slim::Player::TranscodingHelper::checkBin (274)   
Found command: -
  [21-08-01 19:57:02.2708] Slim::Player::TranscodingHelper::getConvertCommand2 
(488) Matched: flc->flc via: -
  [21-08-01 19:57:02.2713] Slim::Player::Song::open (384) seek=false time=0 
canSeek=1
  [21-08-01 19:57:02.2727] Slim::Player::TranscodingHelper::enabledFormat (231) 
Checking to see if flc-flc-*-* is enabled
  [21-08-01 19:57:02.2733] Slim::Player::TranscodingHelper::checkBin (264) 
Checking formats for: flc-flc-*-*
  [21-08-01 19:57:02.2737] Slim::Player::TranscodingHelper::enabledFormat (231) 
Checking to see if flc-flc-*-* is enabled
  [21-08-01 19:57:02.2741] Slim::Player::TranscodingHelper::checkBin (272)
enabled
  [21-08-01 19:57:02.2745] Slim::Player::TranscodingHelper::checkBin (274)   
Found command: -
  [21-08-01 19:57:02.2753] Slim::Player::TranscodingHelper::getConvertCommand2 
(488) Matched: flc->flc via: -
  [21-08-01 19:57:02.2757] Slim::Player::Song::open (414) Transcoder: 
streamMode=I, streamformat=flc
  [21-08-01 19:57:02.2764] Slim::Player::Song::open (470) Opening stream (no 
direct streaming) using Slim::Player::Protocols::File 
[file:///mnt/intenso/Musik/K008%20%20%20%20Giacomo%20Puccini%20-%20Jonas%20Kaufmann%20-%20Nessun%20Dorma%20-%20The%20Puccini%20Album%20-%20Orchestra%20dell%27Accademia%20Nazionale%20di%20Santa%20Cecilia,%20Antonio%20Pappano,%20Jonas%20Kaufmann/08%20Giacomo%20Puccini%20-%20Tosca%20-%20Akt%20.flac]
  [21-08-01 19:57:02.2780] Slim::Player::Protocols::File::open (80) duration: 
[176.96] size: [13348576] endian [] offset: [0] for 

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

2021-08-01 Thread schup011

paul- wrote: 
> Need more of the log.  Make sure you have set player.source logging to
> info or debug.

Here is another one (tried to play a 48kHz mp3 from my library):


Code:


  [21-08-01 19:34:52.1620] Slim::Player::StreamingController::_eventAction 
(272) b8:27:eb:74:ea:41: Play in STOPPED-IDLE -> 
Slim::Player::StreamingController::_StopGetNext
  [21-08-01 19:34:52.1625] Slim::Player::StreamingController::_eventAction 
(283) params: seekdata => undef index => 0
  [21-08-01 19:34:52.1637] Slim::Player::StreamingController::_setPlayingState 
(2377) new playing state STOPPED
  [21-08-01 19:34:52.1641] 
Slim::Player::StreamingController::_setStreamingState (2386) new streaming 
state IDLE
  [21-08-01 19:34:52.1666] Slim::Player::Song::new (109) index 0 -> 
file:///mnt/intenso/Musik/P029/01-01.mp3
  [21-08-01 19:34:52.1676] Slim::Player::Song::new (144) live=3
  [21-08-01 19:34:52.1680] 
Slim::Player::StreamingController::_setStreamingState (2386) new streaming 
state TRACKWAIT
  [21-08-01 19:34:52.1705] Slim::Player::StreamingController::_playersMessage 
(796) Aktueller Titel: file:///mnt/intenso/Musik/P029/01-01.mp3
  [21-08-01 19:34:52.1805] Slim::Player::Song::getNextSong (223) 
file:///mnt/intenso/Musik/P029/01-01.mp3
  [21-08-01 19:34:52.1812] Slim::Player::StreamingController::_nextTrackReady 
(744) b8:27:eb:74:ea:41: nextTrack will be index 0
  [21-08-01 19:34:52.1817] Slim::Player::StreamingController::_eventAction 
(272) b8:27:eb:74:ea:41: NextTrackReady in STOPPED-TRACKWAIT -> 
Slim::Player::StreamingController::_Stream
  [21-08-01 19:34:52.1822] Slim::Player::StreamingController::_Stream (1210) 
Song queue is now 0
  [21-08-01 19:34:52.1827] Slim::Player::StreamingController::_Stream (1213) 
b8:27:eb:74:ea:41: preparing to stream song index 0
  [21-08-01 19:34:52.1832] Slim::Player::Song::open (360) 
file:///mnt/intenso/Musik/P029/01-01.mp3
  [21-08-01 19:34:52.1850] Slim::Player::TranscodingHelper::getConvertCommand2 
(485) Error: Didn't find any command matches for type: mp3
  [21-08-01 19:34:52.1856] Slim::Player::Song::open (384) seek=false time=0 
canSeek=0SEEK_ERROR_TRANSCODED
  [21-08-01 19:34:52.1867] Slim::Player::TranscodingHelper::getConvertCommand2 
(485) Error: Didn't find any command matches for type: mp3
  [21-08-01 19:34:52.1874] Slim::Player::Song::open (415) Error: Couldn't 
create command line for mp3 playback for 
[file:///mnt/intenso/Musik/P029/01-01.mp3]
  [21-08-01 19:34:52.1881] Slim::Player::StreamingController::_playersMessage 
(796) Problem: Dateityp kann nicht wiedergegeben werden für:: 
file:///mnt/intenso/Musik/P029/01-01.mp3
  [21-08-01 19:34:52.1918] Slim::Player::StreamingController::_willRetry (1408) 
no retry data
  [21-08-01 19:34:52.1924] 
Slim::Player::StreamingController::_setStreamingState (2386) new streaming 
state IDLE




schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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 paul-


Need more of the log.  Make sure you have set player.source logging to
info or debug.



piCorePlayer a small player for the Raspberry Pi in RAM. 
Homepage: https://www.picoreplayer.org

Please 'donate'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)
if you like the piCorePlayer

paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858
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 schup011


paul- wrote: 
> It does for me.   You will need to check the logging.Player.source
> is a start.

Here you are (situation: codec mp3 excluded at Squeezelite settings
page, then have chosen the mentioned mp3 radio stream to play):


Code:


  [21-08-01 19:27:29.3568] Slim::Player::StreamingController::_Stream (1213) 
b8:27:eb:74:ea:41: preparing to stream song index 0
  [21-08-01 19:27:29.3573] Slim::Player::Song::open (360) 
https://br-edge-3008-dus-ts-cdn.cast.addradio.de/br/brklassik/live/mp3/mid?_art=dj0yJmlwPTUuMTQ2LjE5Mi4xMDQmaWQ9aWNzY3hsLTdvcWZhbW5vYiZ0PTE2Mjc5MjQ4Mzcmcz03ODY2ZjI5YyMyOWUxMmY4MmVkYWMyZGU4MTEzZjZjYjM2OTNmNThlOA
  [21-08-01 19:27:29.3603] Slim::Player::TranscodingHelper::getConvertCommand2 
(485) Error: Didn't find any command matches for type: mp3
  [21-08-01 19:27:29.3609] Slim::Player::Song::open (384) seek=false time=0 
canSeek=0SEEK_ERROR_MP3_UNKNOWN_DURATION
  [21-08-01 19:27:29.3618] Slim::Player::TranscodingHelper::getConvertCommand2 
(485) Error: Didn't find any command matches for type: mp3
  [21-08-01 19:27:29.3623] Slim::Player::Song::open (415) Error: Couldn't 
create command line for mp3 playback for 
[https://br-edge-3008-dus-ts-cdn.cast.addradio.de/br/brklassik/live/mp3/mid?
  



In the LMS file types settings, MP3 can only be chosen "native" or
"disabled". Here, it was "native".



schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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 paul-


It does for me.   You will need to check the logging.Player.source
is a start.



piCorePlayer a small player for the Raspberry Pi in RAM. 
Homepage: https://www.picoreplayer.org

Please 'donate'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)
if you like the piCorePlayer

paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858
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 schup011


paul- wrote: 
> sox is installed by default with lms on pCP.
> 
> exclude codec will force lms to transcode

Somehow, my LMS won't transcode. At least, if I exclude the mp3 codec,
the stream does not play anymore at all.



schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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 paul-


sox is installed by default with lms on pCP.

exclude codec will force lms to transcode



piCorePlayer a small player for the Raspberry Pi in RAM. 
Homepage: https://www.picoreplayer.org

Please 'donate'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)
if you like the piCorePlayer

paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858
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 schup011


paul- wrote: 
> I set my player to not allow mp3 to be sent to it, then tried to play
> that stream.  Seems the encoding is all over the place.
> 
> Sometimes LMS would use sox to convert to flac, and other times, it
> would try to use wmadec (Which does not work on a linux system)

So how could I set my player to not allow mp3 to be sent to it?

Previously sox was mentioned. What is that and how can I check whether
it is installed / working?



schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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 paul-


I set my player to not allow mp3 to be sent to it, then tried to play
that stream.  Seems the encoding is all over the place.

Sometimes LMS would use sox to convert to flac, and other times, it
would try to use wmadec (Which does not work on a linux system)



piCorePlayer a small player for the Raspberry Pi in RAM. 
Homepage: https://www.picoreplayer.org

Please 'donate'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)
if you like the piCorePlayer

paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858
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 schup011

paul- wrote: 
> Restrict at the player…..On the squeezelite settings page.

As described before, I tried to restrict to 44.1 kHz (not really what I
want to do, because I want to have both 44.1 and 48 with high quality),
but then the 48 did not play at all...



schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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 paul-


Restrict at the player..On the squeezelite settings page.



piCorePlayer a small player for the Raspberry Pi in RAM. 
Homepage: https://www.picoreplayer.org

Please 'donate'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)
if you like the piCorePlayer

paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858
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 schup011


paul- wrote: 
> I would restrict to one sample rate.   44.1 or 48

Well, I have both a lots of ripped CDs (44.1kHz) and radio recordings
(48kHz). I usually don't use 48kHz mp3 in my library (only flac), but
radio streams ofter occur to be mp3 48kHz.



schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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 schup011


paul- wrote: 
> Could the mp3 have invalid headers?

That could be, I cannot really tell. 

But what I can say is that those 48 kHz mp3 streams work on the
"KitchenPlayer" that has a JustBoom DAC and on the Android
SqueezePlayer. They only are too slow on the player with the HDMI audio
output. And it does not matter whether it is a mp3 from radio or one in
my music library.



schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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 paul-


Sorry, I just reread the OP.   Try to restrict to one sample rate.  44.1
or 48.



piCorePlayer a small player for the Raspberry Pi in RAM. 
Homepage: https://www.picoreplayer.org

Please 'donate'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)
if you like the piCorePlayer

paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858
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 schup011


AAC is no problem. I have only problems with 48 kHz mp3.



schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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 paul-

There was a few releases of squeezelite with broken aac.Make sure
you are on the latest.

For streaming aac, it’s probably best to be on LMS 8.2. And pCP 8.0.0



piCorePlayer a small player for the Raspberry Pi in RAM. 
Homepage: https://www.picoreplayer.org

Please 'donate'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)
if you like the piCorePlayer

paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858
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 schup011


bpa wrote: 
> Since this fails and -r 44100,48000 works it seems to indicat that your
> LMS resampling is broken or disabled.
> 
> What is your LMS version ? Are you using PCP for LMS or another system ?
> is sox installed ?
> 
> 
> 
> These are distractions.
> Direct stream is for URL to play direct to Squeezelite - only possible
> if it is a compaitbl stream if LMS has to resample - then it will not
> play direct.
> Proxy means LMS gets involved as a relay.

This is the LMS:


Code:

Logitech Media Server Version: 8.1.1 - 1610364019 @ Thu Jan 14 06:27:45 CET 
2021
  Hostname: piCorePlayer
  IP-Adresse des Servers: 192.168.0.161
  Server-HTTP-Portnummer: 9000
  Betriebssystem: piCore - DE - utf8
  Plattformarchitektur: armv8l-linux
  Perl-Version: 5.28.2 - arm-linux-gnueabihf-thread-multi-64int
  Audio::Scan: 1.02
  IO::Socket::SSL: 2.066
  Datenbankversion: DBD::SQLite 1.58 (sqlite 3.22.0)
  Anzahl erkannter Player: 2



and the LMS setting under "File types" does give for mp3 only the choice
"native" or "disabled" (German "deaktiviert").



schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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 bpa


schup011 wrote: 
> I tried -r 44100, but then only 44.1 kHz streams are played. LMS just
> does not play the other ones (I press play, then it shortly checks the
> stream and control goes back to stopped after 1-2s without having played
> anything). 

Since this fails and -r 44100,48000 works it seems to indicat that your
LMS resampling is broken or disabled.

What is your LMS version ? Are you using PCP for LMS or another system ?
is sox installed ?


> BTW: I tried both "Direct streaming" and "Streaming via Proxy" as LMS
> settings for this specific player.
These are distractions.
Direct stream is for URL to play direct to Squeezelite - only possible
if it is a compaitbl stream if LMS has to resample - then it will not
play direct.
Proxy means LMS gets involved as a relay.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
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 schup011


bpa wrote: 
> Sorry I wrote it down backwards.
> 
> What model Marantz is your receiver ?
> 
> 
> 
> Normally the supported rates are obtained from the ALSA device 
> The option "-r" can override what rates are supported  so "-r
> 44100,48000" says both 44.1kHz and 48kHz are supported. In your case you
> should try "-r 44100" so that stream that are not 44.1Khz will be
> resampled by LMS.
> 
> 
> 
> I think the stream from Squeezelite to Marantz will always be PCM -
> Squeezelite will decode MP3, Flac , AAC etc into PCM samples. 
> So it will be up to Squeezelite to open the ALSA device with the right
> speed as determined from the audio codec header in the audio stream from
> LMS (assuming that LMS is sending MP3 or Flac to squeezelite and has not
> been disabled in LMS)

I tried -r 44100, but then only 44.1 kHz streams are played. LMS just
does not play the other ones (I press play, then it shortly checks the
stream and control goes back to stopped after 1-2s without having played
anything). 

With -r 44100,48000 the 48 kHz streams play again, but with the problem
I had described before (too slow).

So if this occurs only with mp3 and the output to the HDMI interface is
always supposed to be PCM, doesn't that mean that this problem must lie
in Squeezelite, as flac and aac work without problems? 

BTW: I tried both "Direct streaming" and "Streaming via Proxy" as LMS
settings for this specific player.



schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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 bpa


schup011 wrote: 
> Hm... all 44.1 play well, the 48 ones don't. And any FLAC is working
> well, no matter whether 44.1 or 48.
Sorry I wrote it down backwards.

What model Marantz is your receiver ?

> Anyway, what could be the correct squeezelite parameters?

Normally the supported rates are obtained from the ALSA device 
The option "-r" can override what rates are supported  so "-r
44100,48000" says both 44.1kHz and 48kHz are supported. In your case you
should try "-r 44100" so that stream that are not 44.1Khz will be
resampled by LMS.

> EDIT: What does "native support" mean? What is sent over the HDMI
> interface? Is it still the encoded stream or already decoded?
> Is the stream that arrives at the Marantz over HDMI from a 48 kHz mp3
> different from one 48 kHz flac?

I think the stream from Squeezelite to Marantz will always be PCM -
Squeezelite will decode MP3, Flac , AAC etc into PCM samples. 
So it will be up to Squeezelite to open the ALSA device with the right
speed as determined from the audio codec header in the audio stream from
LMS (assuming that LMS is sending MP3 or Flac to squeezelite and has not
been disabled in LMS)



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
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 schup011


bpa wrote: 
> It seems your Marantz cannot play 44.1kHz natively but LMS hasn't been
> told this (i.e squeezelite reports it has 44.1Khz capability).  
> 
> If this is the case you to provide squeezelite parameters to tell LMS
> that only 48kHz is supported on Marantz player.

I tried the Squeezelite option for max. sample rate and put this to
44100. But then, no 48 kHz stream is working anymore, regardless whether
aac, mp3 or flac. Before, all aac and flac were working flawlessly.



schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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 schup011


bpa wrote: 
> It seems your Marantz cannot play 44.1kHz natively but LMS hasn't been
> told this (i.e squeezelite reports it has 44.1Khz capability).  
> 
> If this is the case you to provide squeezelite parameters to tell LMS
> that only 48kHz is supported on Marantz player.

Hm... all 44.1 play well, the 48 ones don't. Anyway, what could be the
correct squeezelite parameters?



schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557
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 bpa


schup011 wrote: 
> I suspect this has to do with the Marantz HDMI and seems to be connected
> with 48kHz, mp3. The 44.1 kHz mp3 streams from my music collection work
> flawlessly, also the 48 kHz flacs. Is it possible to transcode such mp3
> 48 kHz?
> 
> EDIT: Just discovered that also 48 kHz mp3 from my music library play
> wrong. I usually don't have them, only flac. But I generated one, and it
> is the same as with the radio.

It seems your Marantz cannot play 44.1kHz natively but LMS hasn't been
told this (i.e squeezelite reports it has 44.1Khz capability).  

If this is the case you to provide squeezelite parameters to tell LMS
that only 48kHz is supported on Marantz player.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
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