Huey11 wrote: > Hi, so I managed to read through the whole thread. Enlightening on > parts, but as I just thought I understand it now turns out I still do > not... > > So to keep it simple: I would like to start to upsample all my flacs. I > kept most settings default, even the enable stdin, target sample rate at > closest synchronous supported and I checked all output sample rates up > until 192000 (my spdif limit). > 28782 > So indeed I see the sox cmd piped to the flac in the resulting command: > > Code: -------------------- > > flc pcm * [mac address here] > # I noArgs, D RESAMPLE=-r %d, R noArgs, F noArgs > > [flac] -dcs --totally-silent $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t wav -b 24 --buffer 8192 - gain -h rate -v -I -b 90.7 -f 192000 > -------------------- > > > and in the pcp_squeezelite.log I can see all flacs upsampled to > 192000. Whether I throw a 44.1kHz, 48, 88.2 or 192 at it. > > So now I disable the stdin, resulting command: > > Code: -------------------- > > flc pcm * [mac address here] > # F noArgs, R noArgs, D RESAMPLE=-r %d > > [C-3PO] -c $CLIENTID$ -p "/srv/squeezebox/prefs/plugin/C3PO.prefs" -l "/srv/squeezebox/logs" -x "/usr/sbin" -i flc -o wav $START$ $END$ $RESAMPLE$ $FILE$ -------------------- > > > I would now expect that it would resample to 176400 (although reading > in the thread I even got the impression since I also checked 88200 > this is closest, so it might become this). In effect though: nothing > happens. > > So I uncheck all target sample rates except 176400 and 192000 > (3CPO.log at lms mentions them as true/1, $maxsamplerate 192000). I > would expect upsampling to 176400 but in effect again: nothing > happens. > > Only when I check only 176400 or 192000 (resulting command mentions > the explicit one target sample rate) I get sound again... > > So is my expectation that the source file is inspected, a multiple > that matches the highest target sample rate allowed is chosen (ie > 176400 for 44.1/88.2, 192000 for 48/96) and used as as target sample > rate wrong? > > And if not: where am I going wrong in my settings?
In the above situation You should get an INFO message at top of the page: StdIn (es. Qobuz) enabled, will resample at the max allowed sample rate. This is because I could not investigate the incoming stream for the actual sample rate, so I fault back to the maximum allowed one. When STDIN is disabled, you could choose between the absolute closest one, synchronous or asynchronous (meaning multiple of the actual sample rate or not). The actual output sample rate will then depend on which ones you selected. i.e. if you select 44.1, 48, 192 with input sample rate 44.1, selecting closest -> 44.1, closest synchronous -> 44.1, closest asynchronous -> 48. with input sample rate 96, selecting closest -> 192, closest synchronous -> 192, closest asynchronous -> n/a. BUT THIS ONLY WITH STDIN DISABLED!!! ________________________________________________________________________ Author of C-3PO plugin, Squeezelite-R2, Falcon Web interface - See www.marcoc1712.it ------------------------------------------------------------------------ marcoc1712's Profile: http://forums.slimdevices.com/member.php?userid=34842 View this thread: http://forums.slimdevices.com/showthread.php?t=105309 _______________________________________________ Squeezecenter mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/squeezecenter
