webrtc / samples

WebRTC Web demos and samples
https://webrtc.github.io/samples
BSD 3-Clause "New" or "Revised" License
13.94k stars 5.71k forks source link

When Chrome displays virtual camera colors, the colors are displayed incorrectly #1587

Closed Danjuanlab closed 1 year ago

Danjuanlab commented 1 year ago

Browser affected

Chrome Ver( 108.0.5359.99) Microsoft Edge Ver(108.0.1462.46)

Description

When using WebRTC's demo in Chrome to get the OBS virtual camera, the virtual camera color decoding is incorrect. OBS is a virtual camera with NV12 color format, 709 color space, limited color range, and transmission of images. But in Chrome, color, hue, and saturation have changed.The chrome seems to be decoding the image with the 601 color space

When I perform the operation I want to use in the Edge browser and preview the virtual camera screen, the color is displayed correctly. Also, I dragged and dropped the image directly into Chrome to preview it, and the color result displayed was correct.

Steps to reproduce

1.Put the picture into the OBS Studio software and do not make any settings about the output color, keep the default options of the software. and turn on the virtual camera 2.https://webrtc.github.io/samples/src/content/devices/input-output/ Open this URL in Chrome and Edge respectively, and pull the OBS virtual camera stream。 3.You'll notice that chrome's colors are displayed incorrectly.

Expected results

Chrome colors are displayed correctly

Actual results

Edge colors are displayed correctly, chrome colors are displayed incorrectly.

屏幕截图 2022-03-14 111906222

webrtc

fippo commented 1 year ago

can you file an issue on crbug.com and link it please? It is much harder to pull in the right folks here.

Danjuanlab commented 1 year ago

Uninstall chrome on the computer, clear the registry, and then reinstall chrome, the color problem is solved! I think it may be that some strange files left in the old version of chrome affected the previous color performance.

Danjuanlab commented 1 year ago

This display problem is because the hardware acceleration mode of chrome is disabled, waiting for chrome to fix it.