Still enjoying controlling my Sonos via uPnPBridge!
I don't have any problems now, so this question is purely for my own
learning experience to understand how/why LMS decides to transcode.
During my initial config, and having made no changes to the defaults in
either LMS or your plug-in, I observed the following:
1) 16/44 FLAC files played okay
2) 24/44 FLAC files played okay
3) 24/96 upwards wouldn't play, although I can't recall the exact issue.
I think LMS was immediately skipping to the next track - I spent a few
hours randomly tinkering and was seeing different problems depending on
what I changed!
Based on what we'd discussed last week, I initially thought that
removing flc from the plug-in supported codecs would be the instant fix
(i.e. it would convert to PCM and then your plug-in would truncate to 16
bit) but this was before I realised that LMS wasn't downsampling 96 or
192kHz down to 48kHz... and therefore Sonos couldn't play the files.
So I took a step back, did lots of Googling and eventually reset all
your plug-in settings to the Sonos defaults, then added a
custom-convert.conf file to LMS to force all FLAC files to be
downsampled to 16/44 using sox.
Code:
--------------------
flc flc * *
# FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d}
[flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t flac -C 0 -b
16 -r 44100 -
--------------------
And yes! All of a suddden my files above 48kHz were playing successfully
:cool:
Despite everything now working, I was still interested in seeing what
was going on behind the scenes... and this is where I get confused. The
observations below were made by looking at the temp file that gets
created by the plug-in when streaming to Sonos.
1) 16/44 flac source file --> 16/44 PCM temp file
2) 24/44 flac source file --> 16/44 PCM temp file
3) 24/96 flac source file --> 16/44 FLAC temp file
I fully understand why the 24/96 conversion happens (my custom-convert
script kicks in and I can see sox convert the file). What I don't
understand is why 16/44 and 24/44 are getting converted to PCM and don't
remain as native FLAC? My plug-in supported codecs are still set to
'aif,pcm,flc,mp3' so I'd have assumed LMS would use my custom-convert
script to convert ALL my flac files to 16/44 and then pass them natively
to your plug-in. For some reason they end up as PCM?
As mentioned, it's absolutely not a problem because everything works
brilliantly... I'm just curious about the technical side. I've attached
a full debug log where I played 3 songs (the play order being the same
as the 3 types above)
Thanks!
Pete
(log attached below)
20253
+-------------------------------------------------------------------+
|Filename: upnpbridge.log |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=20253|
+-------------------------------------------------------------------+
------------------------------------------------------------------------
FatPete's Profile: http://forums.slimdevices.com/member.php?userid=64294
View this thread: http://forums.slimdevices.com/showthread.php?t=103728
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins