FatPete wrote: 
> Thanks Philippe. I've just tried this now (ensuring plugin wasn't
> running and Applying changes at each step) but somehow LMS is still
> correctly downsampling 24/192 flac so that my Sonos can play it. I
> haven't restored my custom-convert.conf file yet.
> 
> Here's what I see when playing a 24/192 file:
> 
> > 
Code:
--------------------
  >   > 
  > [10:06:25.864161] sq_callback:297 [0x74b440]:
  > artist:DeVotchKa
  > album:This Night Falls Forever
  > title:Straight Shot
  > genre:Alternative
  > duration:322.800
  > size:0
  > cover:http://192.168.1.10:9000/music/7f044116/cover.jpg
  > offset:0
  > [10:06:25.864344] SQ_CALLBACK:324 [0X74B440]: CURRENT URI SET 
HTTP://192.168.1.10:49153/BRIDGE-1.FLAC
  > [10:06:25.864480] AVTSETURI:91 [0X74B440]: UPNP SETURI 
HTTP://192.168.1.10:49153/BRIDGE-1.FLAC (COOKIE 0X1)
  > [10:06:25.864849] PROCESS_START:1140 [0X6C8080]: CODEC:C, CH:0, S:0, R:0
  > [10:06:25.865052] sendSTAT:160 [0x6c8080]: STAT:[STMc] msplayed 0
  > [10:06:26.032405] AVTSetPlayMode:167 [0x74b440]: uPNP set play mode (cookie 
0x2)
  > [10:06:26.032718] AVTPlay:151 [0x74b440]: uPNP play (cookie 0x3)
  > [10:06:26.032951] CtrlSetMute:282 [0x74b440]: uPNP mute 0 (cookie 0x3)
  > [10:06:26.033526] CtrlSetVolume:253 [0x74b440]: uPNP volume 11 (cookie 0x4)
  > [10:06:26.043990] output_http_thread:135 [0x6c8080]: got HTTP connection 19
  > [10:06:26.047709] output_http_thread:181 [0x6c8080]: drain is 131072 
(waited 183)
  > [10:06:26.049027] handle_http:478 [0x6c8080]: received GET /bridge-1.flac 
HTTP/1.1
  > [10:06:26.049367] handle_http:481 [0x6c8080]: HTTP headers
  > CONNECTION: close
  > Host: 192.168.1.10:49153
  > ACCEPT: */*
  > USER-AGENT: Linux UPnP/1.0 Sonos/44.2-54281 (ZPS11)
  > 
  > [10:06:26.059277] handle_http:565 [0x6c8080]: responding:
  > HTTP/1.1 200 OK
  > Server: squeezebox-bridge
  > Connection: close
  > Content-Type: audio/flac
  > Transfer-Encoding: chunked
  > 
--------------------
> > 
> 
> For a normal 16/44 file:
> 
> > 
Code:
--------------------
  >   > 
  > [10:12:58.826432] sq_callback:297 [0x74b440]:
  > artist:Interpol
  > album:Marauder
  > title:If You Really Love Nothing
  > genre:Alternative
  > duration:265.640
  > size:0
  > cover:http://192.168.1.10:9000/music/d60b741f/cover.jpg
  > offset:0
  > [10:12:58.826832] SQ_CALLBACK:324 [0X74B440]: CURRENT URI SET 
HTTP://192.168.1.10:49153/BRIDGE-2.WAV
  > [10:12:58.827074] AVTSETURI:91 [0X74B440]: UPNP SETURI 
HTTP://192.168.1.10:49153/BRIDGE-2.WAV (COOKIE 0X9A)
  > [10:12:58.827517] PROCESS_START:1140 [0X6C8080]: CODEC:P, CH:2, S:16, 
R:44100
  > [10:12:58.827809] sendSTAT:160 [0x6c8080]: STAT:[STMc] msplayed 0
  > [10:12:58.930009] AVTSetPlayMode:167 [0x74b440]: uPNP set play mode (cookie 
0x9b)
  > [10:12:58.930250] AVTPlay:151 [0x74b440]: uPNP play (cookie 0x9c)
  > [10:12:58.930342] CtrlSetVolume:253 [0x74b440]: uPNP volume 9 (cookie 0x9c)
  > [10:12:58.937763] output_http_thread:135 [0x6c8080]: got HTTP connection 17
  > [10:12:58.988013] _output_new_stream:419 [0x6c8080]: encoding in PCM 
r:44100 s:16 f:w
  > [10:12:58.988132] _output_new_stream:420 [0x6c8080]: HTTP -3, estimated len 
46858940
  > [10:12:58.988164] output_http_thread:181 [0x6c8080]: drain is 529200 
(waited 161)
  > [10:12:58.988786] handle_http:478 [0x6c8080]: received GET /bridge-2.wav 
HTTP/1.1
  > [10:12:58.988919] handle_http:481 [0x6c8080]: HTTP headers
  > CONNECTION: close
  > Host: 192.168.1.10:49153
  > ACCEPT: */*
  > USER-AGENT: Linux UPnP/1.0 Sonos/44.2-54281 (ZPS11)
  > 
  > [10:12:58.989370] handle_http:565 [0x6c8080]: responding:
  > HTTP/1.1 200 OK
  > Server: squeezebox-bridge
  > Connection: close
  > Content-Type: audio/wav
  > Transfer-Encoding: chunked
  > 
--------------------
> > 
> 
> Here's my bridge config:
> 
> > 
Code:
--------------------
  >   > 
  > <squeeze2upnp>
  > <decode_log>warn</decode_log>
  > <log_limit>-1</log_limit>
  > <upnp_socket>?</upnp_socket>
  > <slimproto_log>info</slimproto_log>
  > <upnp_log>info</upnp_log>
  > <output_log>info</output_log>
  > <main_log>info</main_log>
  > <util_log>warn</util_log>
  > <common>
  > <send_metadata>1</send_metadata>
  > <sample_rate>48000</sample_rate>
  > <send_coverart>1</send_coverart>
  > <streambuf_size>524288</streambuf_size>
  > <stream_length>-3</stream_length>
  > <raw_audio_format>raw,wav,aif</raw_audio_format>
  > <volume_feedback>1</volume_feedback>
  > <enabled>1</enabled>
  > <roon_mode>0</roon_mode>
  > <accept_nexturi>1</accept_nexturi>
  > <codecs>flc,aif,pcm,mp3</codecs>
  > <forced_mimetypes>HASH(0x7a53d58)</forced_mimetypes>
  > <output_size>4194304</output_size>
  > <flac_header>1</flac_header>
  > <max_volume>100</max_volume>
  > <auto_play>0</auto_play>
  > <server>?</server>
  > <mode>thru</mode>
  > <L24_format>1</L24_format>
  > <resample_options/>
  > <min_gapless>10</min_gapless>
  > <send_icy>1</send_icy>
  > <volume_on_play>1</volume_on_play>
  > <seek_after_pause>0</seek_after_pause>
  > </common>
  > <slimmain_log>warn</slimmain_log>
  > <stream_log>warn</stream_log>
  > <device>
  > <accept_nexturi>1</accept_nexturi>
  > <codecs>aif,pcm,flc,mp3</codecs>
  > <enabled>1</enabled>
  > <stream_length>-3</stream_length>
  > <raw_audio_format>wav,aiff</raw_audio_format>
  > <sample_rate>48000</sample_rate>
  > <name>TV</name>
  > <send_metadata>1</send_metadata>
  > <seek_after_pause>0</seek_after_pause>
  > <udn>uuid:RINCON_5CAAFD32C25001400</udn>
  > <mode>thru</mode>
  > <L24_format>2</L24_format>
  > <mac>bb:bb:36:34:70:74</mac>
  > <flac_header>1</flac_header>
  > <max_volume>100</max_volume>
  > <friendly_name>TV</friendly_name>
  > </device>
  > </squeeze2upnp>
  > 
--------------------
> > 
> 
> As I mentioned, this isn't actually affecting me negatively because my
> 24/192 flacs are playing successfully on my Sonos. The downsampling is
> taking place somewhere so I can only assume LMS is doing its job when
> it spots that my Sonos players max out at 48000Hz, whereas previously
> I had to use custom-convert.conf to do this?

This seems to be in order and the bridge operates in thru mode - the max
sample rate is 48000 so you expect LMS to downsample tracks above that
rate which it does. I don’t why the flc-flc rule did not apply before.
Was it player specific, as per our discussion with @PasTim?



LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos
PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi
B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010,
AppleTV 4, Airport Express, GGMM E5
------------------------------------------------------------------------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=103728

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to