Converting avi in order to play them on casio exilim camera

Hi boys and gals! I was wondering if any of you know how to convert an avi file in such a manner it can be played back using a casio exilim ex-m2 camera? The camera continuesly tells me that the file cannot be played no matter size and length. Can anyone help me?