Differentiation From First Principles Video Compressor