cliveb wrote: > > Then I saw this in the default convert.conf file: > > Code: -------------------- > > > flc flc transcode * > # 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 $RESAMPLE$ - > -------------------- > > > I tried adding the line *# FT:{START=--skip=%t}U:{END=--until=%v}* to > my custom-convert entry, but then whenever I tried seeking, it > restarted the song. > > Does anyone understand enough about this to explain exactly what needs > to be put into the custom-convert file so that the rule continues to > be used after a seek? OK, I think I've sorted this out so will post my findings here in case it helps anyone else.
My mistake was not understanding what's going on in the default convert.conf file. All I did was add the #FT line to my custom file. It looks as if when you seek during playback, LMS starts a whole new decoding operation, and expects the conversion rule to cope with starting at the seek position. Of course the rule in my file didn't have anything in it to define where to begin, and so the song started again from the start. As far as I can tell, there isn't an option in sox to start at a specific place in the file, so we have to run a flac decode starting at the seek position and pipe its output through sox to re-encode to flac and do any other processing required - in my case the EQ for room correction. So my custom convert file ended up as: Code: -------------------- flc flc * b8:27:eb:e0:f9:75 # FT:{START=--skip=%t}U:{END=--until=%v} [flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q --multi-threaded --no-clobber -t wav - -t flac -C 0 - equalizer 54.3 2.831q -19.2 equalizer 71.1 3.982q +9.0 equalizer 75.2 7.677q -5.4 equalizer 89.3 11.271q -5.5 equalizer 148 13.429q -13.3 equalizer 202 5.0q -6.2 equalizer 225 5.0q +6.3 -------------------- The mac address is there so the EQ is only applied to the relevant player, of course, and the various equalizer settings are for the room that player is in. >From the tests I've done so far, the seeking now works properly, and the room EQ is maintained after a seek. Until recently: Transporter -> ATC SCM100A, now sold :-( House move forced change to: piCorePlayer(RPi2/HiFiBerry DIGI2 Pro) -> Meridian 218 -> Meridian M6 ------------------------------------------------------------------------ cliveb's Profile: http://forums.slimdevices.com/member.php?userid=348 View this thread: http://forums.slimdevices.com/showthread.php?t=114806 _______________________________________________ audiophiles mailing list audiophiles@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/audiophiles