read the movies from the ktlx format and returns their index in samples