<br>sorry i forgot to add the initialization of the output file.<br>output = mp4_output;<br>opt.use_dts_compress = 1;<br>output.open_file("video.mp4",&p_handle,&opt); <br>