Webcam aspect ratio cuts part of the image
Categories
(Core :: WebRTC: Audio/Video, defect)
Tracking
()
People
(Reporter: ctardon, Unassigned)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0
Steps to reproduce:
Open new google meet meeting.
Join the meeting, and activate the webcam.
Actual results:
In Firefox and Firefox nightly (Mozilla/5.0 (X11; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0 ID:20211116093425) i see a truncated image with squared aspect ratio.
Expected results:
In Google Chrome, it shows the correct image without truncating it.
Comment 3•3 years ago
|
||
Does it show the correct image here? https://jsfiddle.net/jib1/4p5gqm0o/show
If not, are you able to find the resolution you expect by adjusting the slider upwards? If so, please report the dimensions when you find it. Thanks.
Yes, it shows the correct image. The dimensions are 1280x720
Comment 5•3 years ago
|
||
Thanks. In the comment 3 fiddle, if you drag the slider down to smaller resolutions you'll see the 4:3 modes. You'll see jumps in resolution. This is bug 1286945 which is that Firefox does not dynamically downscale camera resolutions to constraints yet, so you'll only see native ones.
It looks like Google Meet is using constraints on the camera track instead of scaleResolutionDownBy to downscale resolution in response to network conditions. So until we fix that bug (which the spec demands now) it'll depend on which resolution Google Meet is using. Incoming video will be 16:9 when it is receiving higher resolutions, and 4:3 if lower ones are used, if that's what the remote camera offers.
Workaround
Google Meet could work around this by using scaleResolutionDownBy, or simply by cropping the playback in CSS to make it look the same (at some loss of image quality for the amount of bandwidth spent).
But it's probably in our interest to fix bug 1286945 soon.
Description
•