stream encoding toolkit