@woo @jbm For audio archiving I'd recommend FLAC or Apple Lossless (both are well documented open-source and royalty-free formats).
libavcodec supports both.
I think FLAC is more flexible with non-standard sample rates but in practice both codecs will work for basically anything you throw at it.