benh wrote: 
> So here is something interesting.  I have found a combination of players
> that don't work AT ALL.
> 
> I went through and created various group players in various combinations
> to see if there was a common player factor.
> 
> Two pCP/SL: 10 Second issue
> SB Radio and BOTH pCP/SL: 10 Second issue
> 
> SB3 and BOTH pCP/SL: No issue
> SB3 and Bedroom pCP/SL: No issue
> SB3 and Library pCP/SL: No issue
> SB Radio and Bedroom pCP/SL: No issue
> 
> SB Radio and Library pCP/SL: Track won't even start playing.  Here's the
> debug from that:
> 
> 

So, here is my take of the story, now that I have the file:

The file is incorrectly encoded toward the end (verified with ffmpeg).
Slimproto returns a decoding error when it reaches that part (verified
with my SqueezeESP32).  Remember that the decode error can happen long
*before* the audio reaches the DAC, in fact it entirely depends how big
is the output buffer. I think the error happens at the very last bytes
of the file.

When transcoding happens, the decoding error is not anymore raised by
the player, but in faad and I think faad simply ends the decoding and
passes everything it can to flac, to re-encode. So, the track is played
till the quasi-end, hence it "seems" to work.

When no transcoding happens (for example players all support mp4/aac),
then all players will send a decoding error but some might send it
sooner, some later, depending on their buffer's length. When LMS
receives the decoding error, it stops playback, even if there is data in
the DAC (output) buffer.

I would suspect that your pCP have different buffers and/or different
timing for raising the error, hence the Library pCP, when going directly
mp4/aac *and* with another player will cause the "early decoding error"
issue. I would have to look at LMS code, but I suspect things are
different when a player is standalone.



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=114439

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to