From what I have read the only lossless format iPod supports is apple’s own ALAC. There are free open source software audio converters that can transfer to ALAC format. One such is: KABUU
Disclaimer: I have not used this software and it may or may not meet your needs.