@Dharini right now 'video' output is capped at 4K. You may use 'still' output and send CameraControl message to issue a capture, which will send 12MP ImgFrame out. Then connect that to VideoEncoder.
Another option is using 'isp' output, but it hasn't landed into main yet.