TAK 1.0.3 - Beta release 1
Reply #26 – 2007-12-07 06:14:54
Anyway, i have a question regarding the sts option. Other than the loss of compression efficiency, is there any problem in using say -sts60 for all files? I ask because i want to have a single tak preset that i can use on all files... i'm willing to sacrifice the tiny amount of compression for this. I will rework the relevant part of the pipe encoding section of my manual and post it here. Hopefully it will make some topics more clear. I myself have to think a bit more about it... For now a short answer: Personally i would use -sts10 for such an all-in-one setting (single short songs and cd images of up to about 80 minutes). I should make this the default...I encoded a 68 minutes song with sts3 and didn't even recognize any delay when seeking through the song over long distances. IMO you can simply make 10 the default, and there's btw no need to promote the sts option in the documentation too loud. The default is now 10 minutes and this setting is recommended for an audio duration of about 1 to 80 minutes. And here is the updated section of my manual:Adaptions for very short or long audio data TAK has to reserve about 5 bytes for each seek point in the seek table, which facilitates fast seeking on playback. By default one seek point is created per 1 second of audio data. If the audio length is not known in advance (that's when you have to specify the -ihs switch), the seek table size can not be exactly calculated. Again some space has to be reserved which in the end may be too big or too small. By default a seek table for 10 minutes is beeing created. Because it requires very little space and TAK can also compress it to cope with longer files, the default setting is fine for audio files with a duration of about 1 to 80 minutes. If you are dealing with very short files (less than 1 minute), you may use the set-seek-table-size option to set the seek table size to the minimum:takc -e -ihs -sts3 - Outfile reserves space for a seek table containing seek points for 3 minutes of audio data. If you are dealing with very long files (more than about 80 minutes), you are advised to increase the seek table size. It should never be less than about 1/8 of the audio duration, otherwise seeking may get very slow. Some example: For 300 minutes of audio data you should manually set the seek table size to 300 / 8 = 38 minutes:takc -e -ihs -sts38 - Outfile I hope this is better/more clear. Thomas