Some Pipewire webcam / camera improvements
Categories
(Core :: WebRTC, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox119 | --- | fixed |
People
(Reporter: rmader, Assigned: rmader)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
Some improvements that came up during testing. Webrtc changes will also be proposed upstream.
Assignee | ||
Comment 1•1 year ago
|
||
Assignee | ||
Comment 2•1 year ago
|
||
Depends on D183650
Assignee | ||
Comment 3•1 year ago
|
||
Depends on D183651
Assignee | ||
Comment 4•1 year ago
|
||
Comment 5•1 year ago
|
||
@rmader, with this patch set there is one remaining issue: the width and height are swapped when getting the webrtc track settings.
For instance I get that on the PPP:
{
"deviceId":"6meR3wfblEzfaZwr5+FBRA2WVOtGrpgycgPioTFj/rg=",
"frameRate":0,
"groupId":"tImRBoCnx0o/1WCWi8RsmONAJzk0alUkawBsrp6GcyI=",
"height":480,
"width":640
}
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Assignee | ||
Comment 6•1 year ago
|
||
(In reply to [:fabrice] Fabrice Desré from comment #5)
@rmader, with this patch set there is one remaining issue: the width and height are swapped when getting the webrtc track settings.
Thanks - this might be an upstream bug in the rotation support but didn't dig yet.
Comment 7•1 year ago
|
||
(In reply to [:fabrice] Fabrice Desré from comment #5)
@rmader, with this patch set there is one remaining issue: the width and height are swapped when getting the webrtc track settings.
What are the dimensions of the rendered frames in this case?
The spec says
On systems where it's desirable to sometimes automatically flip the X and Y axis of the resulting captured video in response to ongoing environmental factors, the width, height and aspectRatio constraints and capabilities MUST remain unaffected in all algorithms and be considered in the primary orientation only, except for the getSettings() algorithm where settings for these constrainable properties MUST be flipped if necessary to match the returned dimensions of the captured video at any point in time.
and looking at code we seem to match that.
Comment 8•1 year ago
|
||
(In reply to Andreas Pehrson [:pehrsons] from comment #7)
(In reply to [:fabrice] Fabrice Desré from comment #5)
@rmader, with this patch set there is one remaining issue: the width and height are swapped when getting the webrtc track settings.
What are the dimensions of the rendered frames in this case?
They were 640x480 iirc. I would have to back out the patches from my fork to verify.
The spec says
On systems where it's desirable to sometimes automatically flip the X and Y axis of the resulting captured video in response to ongoing environmental factors, the width, height and aspectRatio constraints and capabilities MUST remain unaffected in all algorithms and be considered in the primary orientation only, except for the getSettings() algorithm where settings for these constrainable properties MUST be flipped if necessary to match the returned dimensions of the captured video at any point in time.
and looking at code we seem to match that.
Right, I think Robert's patch in https://phabricator.services.mozilla.com/D183652 addresses correctly the problem.
Comment 9•1 year ago
|
||
Great, thanks for confirming. Robert, are you pushing these patches upstream, or can I help in some way?
Assignee | ||
Comment 10•1 year ago
|
||
(In reply to Andreas Pehrson [:pehrsons] from comment #9)
Great, thanks for confirming. Robert, are you pushing these patches upstream, or can I help in some way?
Yep, will do now.
(In reply to [:fabrice] Fabrice Desré from comment #5)
@rmader, with this patch set there is one remaining issue: the width and height are swapped when getting the webrtc track settings.
I somewhat suspect this to have to do with https://searchfox.org/mozilla-central/source/third_party/libwebrtc/modules/video_capture/video_capture_impl.cc#249-254 - we don't use it all all, but Chromium probably does? Anyhow, will submit the changes as is and wait for feedback.
Assignee | ||
Comment 11•1 year ago
|
||
Comment 12•1 year ago
|
||
Comment 13•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4c2505f53328
https://hg.mozilla.org/mozilla-central/rev/214fd339fda5
https://hg.mozilla.org/mozilla-central/rev/1db7a958b945
Description
•