timeIndex converter

This tool converts the single-column timeIndex array used in the very first IVT implementation to the current double-column version used in subsequent versions. Only use this tool if your original timeIndex arrays have single entries on each line.

The original version indexed the raw timescale of the video. Subsequent versions index in tenths of a second. If you are converting an early version to work with an updated one, this tool automates this conversion by inserting the first column and adjusting the values in the second.

If you have not already done so, make a new directory with the new IVT files and place copies of your arrays.js and timeIndex.js files in it. Make sure to save your originals in case you need them later. Place this file in the /js directory.

Since this converter converts the time indexes from raw timescale to tenths of a second, it uses a conversion factor. The default is 60, but if that doesn't produce synchronization, you may need to start over with a different factor. You can calculate it by opening your old application, going to a page, and noting its timecode. Multiply the hrs, mins, and secs, to get a total time in tenths of a second, and then look in the relevant timeIndex for the index number for that page. Divide this number by the tenths of a second total you calculated, and round to the nearest likely integer (if 31, try 30).

Run the conversion and copy the results from the pop-up window. Replace the contents of the timeIndex.js file with this result and the conversion will be complete.