optimize the output videos as