The algorithm dosent need to be too complex. You basically look at each still frame as grayscale, generate a hashtable of brightness values mapping to monospaced characters, and convert each grayscale pixel to a character.