See https://ryanpacini.com/posts/vifileformat/ for a detailed description of the VI FIle Format.
Another resource is https://github.com/tomsoftware/VI-Explorer