Convert AVI to M4V

What is the best way to convert .avi videos to .m4v format?