generate stream index for terminal recordings (#2419)