PasTim wrote: > For one of my devices I'm using C-3PO to transcode to 48000 pcm in all > cases. It's headphones connected via USB (and alsa) to a laptop running > sequeezelite (a fairly recent ralphy - v1.8.7-1083). For some reason > the headphones don't like other sample rates, so the squeezelite (with > -W) is set to only accept 48000:48000 and C-3PO supplies it (as below). > This all works well. > > > Code: -------------------- > > > flc-pcm-*-00:00:00:00:00:90 > [flac] -dcs --totally-silent $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t wav -b 24 --buffer 65536 --multi-threaded - rate -h -I -b 90.7 48000 > "/usr/share/squeezeboxserver/Bin/x86_64-linux/flac" -dcs --totally-silent -- "/storage/music/flac/Classical/S/Strauss, R/Four Last Songs/Schwarzkopf Ackermann/1-07 - Four Last Songs No.4 Op.posth - Im Abendrot.flac" | "/usr/share/squeezeboxserver/Bin/x86_64-linux/sox" -q -t wav - -t wav -b 24 --buffer 65536 --multi-threaded - rate -h -I -b 90.7 48000 & | > -------------------- > > > > However, I noticed that the CPU load on my server is very high indeed. > C3PO/sox takes a little over 50% of my "Intel(R) Atom(TM) CPU D525 @ > 1.80GHz, 4 cores" (i.e. the equivalent of 2 cores flat out) for almost > the whole length of even a short track. As I said, it all works, but > it does seem a little marginal. > > BUT - Having written the above I thought I should check sox. I found > that an update to LMS had overwritten your version of sox, so I've > replaced it again with version v14.4.2, and the load seems lower, for > a shorter period of time, and single-threaded, even though I have > ticked the multi-thread option. Does any of that make any sense? > .
Yes, it make sense and I'm aware of a BUG with some version of SOX in setting the multithread option, maybe your is one of them, I've got an open issue for that and I'll chedt it sooner or later... in my old dual core, the same conversion takes > 50% of CPU. You could use less CPU reducing the squezelite input buffer. ________________________________________________________________________ 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
