Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
1146 Discussions

Android sdk, cannot change video resolution

Vincenzo_N_
Beginner
707 Views

Hi,

When try to make video calls i write:

LocalCameraStreamParameters msp = new LocalCameraStreamParameters(true,true);

msp.setResolution(1280,720);

But in logcat i read:

D/WooGeen-LocalCameraStreamParameters﹕ Creating media constraints, width: 1280, height: 720, fps: 30
D/WEBRTC-JC﹕ startCapture: 640x480@24000:24000

Why does it not change video resolution?

I really like your work! Thanks!

0 Kudos
6 Replies
Chunbo_H_Intel1
Employee
707 Views

Hi Vincenzo,

It seems the camera on your phone does not support 720p media streaming. In this case, our application will choose most close resolution automatically.

0 Kudos
Vincenzo_N_
Beginner
707 Views

I think it does, any help?

07-06 14:50:40.539    3617-3632/? D/MediaCodecVideoDecoder﹕ SDK version: 15
07-06 14:50:40.687    3617-3632/? D/WEBRTC-JC﹕ Camera 0, Facing back, Orientation 0
07-06 14:50:40.710    3617-3632/? D/WEBRTC-JC﹕ [
    {
    "mfpsRanges": [
    {
    "min_mfps": 5000,
    "max_mfps": 5000
    },
    {
    "min_mfps": 10000,
    "max_mfps": 10000
    },
    {
    "min_mfps": 15000,
    "max_mfps": 15000
    },
    {
    "min_mfps": 20000,
    "max_mfps": 20000
    },
    {
    "min_mfps": 5000,
    "max_mfps": 24000
    },
    {
    "min_mfps": 24000,
    "max_mfps": 24000
    }
    ],
    "sizes": [
    {
    "height": 1080,
    "width": 1920
    },
    {
    "height": 720,
    "width": 1280
    },
    {
    "height": 720,
    "width": 960
    },
    {
    "height": 480,
    "width": 800
    },
    {
    "height": 576,
    "width": 720
    },
    {
    "height": 480,
    "width": 720
    },
    {
    "height": 576,
    "width": 768
    },
    {
    "height": 480,
    "width": 640
    },
    {
    "height": 480,
    "width": 640
    },
    {
    "height": 240,
    "width": 432
    },
    {
    "height": 240,
    "width": 320
    },
    {
    "height": 288,
    "width": 352
    },
    {
    "height": 160,
    "width": 240
    },
    {
    "height": 144,
    "width": 176
    },
    {
    "height": 120,
    "width": 160
    },
    {
    "height": 96,
    "width": 128
    },
    {
    "height": 1920,
    "width": 1088
    },
    {
    "height": 1280,
    "width": 720
    },
    {
    "height": 800,
    "width": 480
    },
    {
    "height": 720,
    "width": 576
    },
    {
    "height": 768,
    "width": 576
    },
    {
    "height": 720,
    "width": 480
    },
    {
    "height": 640,
    "width": 480
    },
    {
    "height": 352,
    "width": 288
    },
    {
    "height": 320,
    "width": 240
    },
    {
    "height": 240,
    "width": 160
    },
    {
    "height": 176,
    "width": 144
    },
    {
    "height": 160,
    "width": 120
    },
    {
    "height": 128,
    "width": 96
    }
    ],
    "orientation": 0,
    "front_facing": false,
    "name": "Camera 0, Facing back, Orientation 0"
    }
    ]

0 Kudos
Vincenzo_N_
Beginner
707 Views

up

0 Kudos
Chunbo_H_Intel1
Employee
707 Views

Hi Vincenzo,

We may need more information:

  • WebRTC Android SDK version (there is a bug in the old version which may leads to use lower resolution than specified)

  • Phone model and Android version (we may test on real device if we have one)

0 Kudos
Vincenzo_N_
Beginner
707 Views

SOLVED!!!

My device camera doesn't support 30fps, i changed to 24fps.

0 Kudos
Chunbo_H_Intel1
Employee
707 Views

Great to hear that! Thanks

0 Kudos
Reply