ynot1234567890 wrote: > Kinda new with LMS, can someone explain to me the following: > > This command works on the command line: sox -V6 thriller.flac -t wav -r > 44.1k -b 16 thriller_16_441.wav and convert a 88.2kHz, 24 bit file to > wav format 16bit, 44.1kHz. > > I try custom-convert.conf file like: > flc pcm * * > # FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d} > [sox] $FILE$ -t raw -r 44.1k -b 16 -c 2 -s -L - > > and it works well with flac upto 44.1/16 resulting in a PCM 1411 kbps > file but when I get to 88.1 or 96kHz the command returns a PCM stream of > 4233 kbps and it of course sounds like the chipmunks. > > Essentially it looks like resampling is not working with the hires flac > files. > > Any input would be appreciated.
LMS when output pcm ALWAYS reports to clients the samplerate of the original file. BUG or feature by design I don't know, but it's like that. To solve this, leaving LMS untouched, I've introduced a patch in Squeezelite (R2) that use data in the header to detect the actual sample rate. You could use option -W in squeezelite by Ralphy, squeezelite-R2 (https://github.com/marcoc1712/squeezelite-R2/releases) or Daphile. All of them includes R2 patch. Please note that you then have to produce WAV or AIFF, not raw pcm to let things works this way (just replace raw with wav in sox command). C-3PO plugin (https://github.com/marcoc1712/C-3PO) is a replacement for custom-convert.conf files and File Types, aimed to make things easier. I'm gonig to release a new version of Squeezelite-R2 and C-3PO capable of PCM to DSD transcoding and 'native' DSD playback (thanks to Daphile and Mans Rullgard). ____________________________________________________________ SB+, Klimo Merlino + Kent Gold, Monitor Audio Studio 20 Gold SE+, Klimo reference and DIS Interconnect. ------------------------------------------------------------------------ marcoc1712's Profile: http://forums.slimdevices.com/member.php?userid=34842 View this thread: http://forums.slimdevices.com/showthread.php?t=107012 _______________________________________________ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter