Converting .avi to .rec format

Hi

I am trying to convert .avi files to .rec files for downloading to my Topfield PVR and would be grateful for advice on how best to do this.

Cheers