In ffmpeg you can use thee Constant Rate Factor (CRF) instead of setting an average bit rate when transcoding from one codec into h264. Is there an equivalent way of not setting the bit rate but rather a quality level when transcoding video with AVFoundation?