You can convert .avi to .mp4 without changing the codec, only changing the container and not losing any quality on Windows 10. You can do it with XMedia Recode, it’s free, here is a tutorial someone made on how to do it: