I am recording the video using camera x in my android app. I have successfully reduced the resolution of the video using:
videoCapture = new VideoCapture.Builder() .setCameraSelector(cameraSelector) .setTargetResolution(new Size(480,640)) .build();
even though the quality of the video is reduced, its size is still the same as 1080p video.