Found the solution. Since i'm using the front camera, I need the get the camcorder profile from the front camera. I achieved thas by doing this:
mrec.setProfile(CamcorderProfile.get(1, CamcorderProfile.QUALITY_HIGH));
Instead of this:
mrec.setProfile(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH));