Firefox does not NV12 for webcams

Bug #1906454 reported by Benjamin Drung
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
firefox (Ubuntu)
New
Low
Unassigned

Bug Description

I use a Sony Alhpa camera attached to Elgato Cam Link 4K as webcam. The only color format that is working with Cam Link 4K is NV12. Sadly Firefox does not support NV12 (despite the source code containing several third party libraries that refer to NV12). Looking at the kernel log for the uvcvideo kernel module, I can see that Firefox tries to use these formats:

* MJPG (0x47504a4d)
* YU12 (0x32315559)
* YUYV (0x56595559)
* UYVY (0x59565955)

Please add support for NV12 (0x3231564e) so that the Elgato Cam Link 4K can be used directly as webcam input.

ProblemType: Bug
DistroRelease: Ubuntu 20.10
Package: firefox 83.0+build2-0ubuntu0.20.10.1
ProcVersionSignature: Ubuntu 5.8.0-29.31-generic 5.8.14
Uname: Linux 5.8.0-29-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
AddonCompatCheckDisabled: False
ApportVersion: 2.20.11-0ubuntu50.2
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC2: skipper 4512 F.... pulseaudio
 /dev/snd/controlC0: skipper 4512 F.... pulseaudio
 /dev/snd/pcmC0D1p: skipper 4512 F...m pulseaudio
 /dev/snd/controlC1: skipper 4512 F.... pulseaudio
BuildID: 20201112153044
CasperMD5CheckResult: skip
Channel: Unavailable
CurrentDesktop: Unity:Unity7:ubuntu
Date: Tue Dec 1 23:24:23 2020
ForcedLayersAccel: False
IncompatibleExtensions:
 Deutsch (DE) Language Pack - <email address hidden>
 English (GB) Language Pack - <email address hidden>
 English (South Africa) Language Pack - <email address hidden>
 Default - {972ce4c6-7e08-4474-a285-3208198ce6fd}
IpRoute:
 default via 192.168.3.1 dev eth0 proto dhcp metric 100
 169.254.0.0/16 dev eth0 scope link metric 1000
 192.168.3.0/24 dev eth0 proto kernel scope link src 192.168.3.20 metric 100
 192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1 linkdown
PrefErrors: Unexpected character ',' before close parenthesis @ /usr/lib/firefox/omni.ja:greprefs.js:354
PrefSources: prefs.js
Profiles: Profile0 (Default) - LastVersion=83.0/20201112153044 (In use)
RunningIncompatibleAddons: True
SourcePackage: firefox
UpgradeStatus: Upgraded to groovy on 2020-11-29 (2 days ago)
dmi.bios.date: 04/27/2013
dmi.bios.release: 4.6
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 3904
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: P8H67-M PRO
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: Rev X.0x
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr3904:bd04/27/2013:br4.6:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnP8H67-MPRO:rvrRevX.0x:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.family: To be filled by O.E.M.
dmi.product.name: System Product Name
dmi.product.sku: SKU
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer

Revision history for this message
Benjamin Drung (bdrung) wrote :
Changed in firefox (Ubuntu):
importance: Undecided → Low
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for the report, sounds like they are blocking the support on sandybridge which is the cpu on your machine, https://hg.mozilla.org/releases/mozilla-beta/rev/7195b1005f8c

Revision history for this message
Benjamin Drung (bdrung) wrote :

I tried it as well on my work laptop which has a Intel Core i7-8850H CPU (Coffee Lake-H) which show the same result.

Revision history for this message
Olivier Tilloy (osomon) wrote :

The commit linked to in comment #2 is Windows-specific.

Revision history for this message
Olivier Tilloy (osomon) wrote :

I could not find a related upstream bug report for this.

Benjamin, would you mind filing one at https://bugzilla.mozilla.org/enter_bug.cgi#h=dupes%7CFirefox, and sharing the link to it here?

Thanks in advance!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.