Page MenuHomeFreeBSD

www/chromium: Un-remove v4l video capture support
ClosedPublic

Authored by cem on Apr 7 2020, 7:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 5, 11:32 AM
Unknown Object (File)
Sat, Oct 5, 10:08 AM
Unknown Object (File)
Sat, Oct 5, 6:06 AM
Unknown Object (File)
Wed, Oct 2, 2:27 PM
Unknown Object (File)
Tue, Oct 1, 4:02 AM
Unknown Object (File)
Fri, Sep 27, 7:13 PM
Unknown Object (File)
Fri, Sep 27, 3:34 PM
Unknown Object (File)
Mon, Sep 23, 11:47 PM

Details

Summary

This support was removed in r416521. The revision message did not document the
removal nor justify patching out a major port feature.

This restores that support.

PR 245250

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

We may be missing a DEPEND line on libv4l. Poudriere testport should shake that out, when someone gets a chance.

In D24330#535212, @cem wrote:

We may be missing a DEPEND line on libv4l. Poudriere testport should shake that out, when someone gets a chance.

It just needs header files from multimedia/v4l_compat - chromium opens the device and issues ioctl()s directly (there is a build dependency already)

It just needs header files from multimedia/v4l_compat - chromium opens the device and issues ioctl()s directly (there is a build dependency already)

Even better, thanks!

Thanks Conrad. poudriere testport for 11i386 and 12amd64 passed.

This revision is now accepted and ready to land.Apr 7 2020, 11:32 PM
This revision was automatically updated to reflect the committed changes.

I have tried this and indeed it now allows me to enable the webcam. However, it the picture is flashed over with a green background few times a second and it produces the following (possibly unrelated) error message one the console:

31511:100555:0409/193333.725369:ERROR:gl_surface_presentation_helper.cc(259)] GetVSyncParametersIfAvailable() failed for 1 times!

I have tried this and indeed it now allows me to enable the webcam. However, it the picture is flashed over with a green background few times a second and it produces the following (possibly unrelated) error message one the console:

31511:100555:0409/193333.725369:ERROR:gl_surface_presentation_helper.cc(259)] GetVSyncParametersIfAvailable() failed for 1 times!

Thanks. Would you mind filing a PR to track this issue? I can't promise I am familiar enough with Chrome to debug, and I don't have working webcam myself, but maybe someone else can investigate. I know @kevans had some success using his webcam after this change, but perhaps he had similar problems?

I guess other interesting diagnostics might be, can you reproduce the problem in other webcam-consuming applications (cheese is the only one I know of)?

FWIW, Matthias has an update to Chrome stable 81.x is in the works; if this is some upstream chrome bug, that update may address it. (Maybe not.)

Here is another data point. The webcam in chromium-80.0.3987.163_1 works for me when using https://meet.jit.si/.

I have tried this and indeed it now allows me to enable the webcam. However, it the picture is flashed over with a green background few times a second and it produces the following (possibly unrelated) error message one the console:

31511:100555:0409/193333.725369:ERROR:gl_surface_presentation_helper.cc(259)] GetVSyncParametersIfAvailable() failed for 1 times!

I'll try this out again when I return home (~8 hours); I do not recall seeing any weird artifacts or anything of the sort, but I didn't test it for long.