Rate Control for GOP-level Rate Adaptation in H.264 Video Coding