In order to get the proper resolution try something like this... increment it until the nearest number that can be divided by 16:
computedVideoSize=self.view.frame.size.width;
while (computedVideoSize%16>0) { // find the right resolution that can be divided by 16
computedVideoSize++;
}