add mp4 output support to the api