Linux getUserMedia does not support all modes of a camera

RESOLVED FIXED in Firefox 52

Status

()

Core
WebRTC: Audio/Video
P2
normal
Rank:
22
RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: pehrsons, Assigned: mchiang)

Tracking

unspecified
mozilla52
Points:
---

Firefox Tracking Flags

(firefox52 fixed)

Details

MozReview Requests

()

Submitter Diff Changes Open Issues Last Updated
Loading...
Error loading review requests:

Attachments

(1 attachment)

(Reporter)

Description

2 years ago
I hear reports that a camera that supports resolutions like 640x360 does not work with that resolution for Firefox getUserMedia.

On Ubuntu you can check for modes supported by your camera by installing v4l-utils and then running `v4l2-ctl --list-formats-ext`.

Our backend code hardcodes which resolutions to support, much like the old qtkit implementation on Mac did but a bit better: http://searchfox.org/mozilla-central/rev/950e13cca1fda6507dc53c243295044e8eda4493/media/webrtc/trunk/webrtc/modules/video_capture/linux/device_info_linux.cc#285

Shouldn't be too hard to fix? The code of v4l2-ctl for reference is here: https://git.linuxtv.org/v4l-utils.git/tree/utils/v4l2-ctl

Updated

2 years ago
Rank: 22
Priority: -- → P2
Assignee: nobody → mchiang
Comment hidden (mozreview-request)

Comment 2

2 years ago
mozreview-review
Comment on attachment 8793251 [details]
Bug 1302059 - use VIDIOC_ENUM_FMT & VIDIOC_ENUM_FRAMESIZES to query supported format & resolution;

https://reviewboard.mozilla.org/r/80046/#review79036

Thanks!
Attachment #8793251 - Flags: review?(rjesup) → review+
Keywords: checkin-needed

Comment 3

2 years ago
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/3b9eb7fee10b
use VIDIOC_ENUM_FMT & VIDIOC_ENUM_FRAMESIZES to query supported format & resolution; r=jesup
Keywords: checkin-needed

Comment 4

2 years ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/3b9eb7fee10b
Status: NEW → RESOLVED
Last Resolved: 2 years ago
status-firefox52: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
You need to log in before you can comment on or make changes to this bug.