custom mp4 file writing works