Vibhor Bhardwaj
Vibhor Bhardwaj

Reputation: 3101

How to capture a desired resolution video?

When I am using this code.For 8mp camera with SOME_VALUE=0 : video quality is higher then 2mp camera with SOME_VALUE=10

 Intent intent = new Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE);
        intent.putExtra(android.provider.MediaStore.EXTRA_VIDEO_QUALITY, SOME_VALUE);
        startActivityForResult(intent, REQUEST_VIDEO_CAPTURED);

So how can I make some consistency in video quality(like set resolutions) for any device using code?

Upvotes: 3

Views: 1304

Answers (1)

Gunaseelan
Gunaseelan

Reputation: 15525

I think you can achieve it by using

mVideoRecorder.setVideoSize(640, 480);

For more detail refer the following likns

  1. Link 1
  2. Link 2
  3. Link 3
  4. Link 4

Thanks.

Upvotes: 1

Related Questions