I write this code in order to automatically extract scripts from an arbitary video