I looked into this in the past as well, and found that Cineform was perfect for our needs. It was designed for archival, but it is a lossLESS codec with an AVI wrapper.
It's also very affordable.
GoPro bought them a while back in 2011.
From their tech page: http://cineform.com/technology
Full-frame (no blocks) Wavelet compression for highest image integrity
Unrestricted spatial resolution (4K and beyond)
Up to 12-bit arithmetic precision
RGBA, RGB, YUV, and RAW chroma formats
Standard wrapper interfaces including AVI and MOV for broadest compatibility
All you need is Studio Premium, unless you need "3D" features, then get the "Pro" version.
But either-way, to get the codec, Premium is only $300 bucks:) http://cineform.com/products/gopro-studio-premium