forgot to add the write_x264 function again