New issue
Advanced search Search tips

Issue 762443 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug-Regression



Sign in to add a comment

fake device mediastream changed color in Chrome 61

Project Member Reported by philipp....@googlemail.com, Sep 6 2017

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/60.0.3112.113 Chrome/60.0.3112.113 Safari/537.36

Steps to reproduce the problem:
1. start chrome with --use-fake-device-for-media-stream
2. go to https://webrtc.github.io/samples/src/content/getusermedia/gum/
3. the video shown is grey-ish as shown in the attached screenshot

What is the expected behavior?
the fake device is showing a green image.

What went wrong?
unclear. Seems only to affect fake devices. The video is transmitted the right way in Firefox. Also getting a snapshot of the video onto a canvas with this code still shows a green image:
const remoteVideo = document.getElementById("gum-local");                
const canvas = document.createElement("canvas");
                canvas.width = remoteVideo.videoWidth;
                canvas.height = remoteVideo.videoHeight;
                const context = canvas.getContext("2d");
                context.drawImage(remoteVideo, 0, 0, canvas.width, canvas.height);
var img = document.createElement("img"); img.src = canvas.toDataURL(); document.body.appendChild(img);

Probably some kind of alpha channel problem.

Did this work before? Yes 60.0.3112.113

Does this work in other browsers? Yes

Chrome version: 61.0.3163.79  Channel: n/a
OS Version: 
Flash Version: Shockwave Flash 16.0 r0
 
grey-ish fake media picture attached
oh-chrome.png
12.6 KB View Download
Components: -Blink>WebRTC Blink>GetUserMedia>Webcam
chfremer@: Can
Owner: chfremer@chromium.org
I tried to repro, but on my machine the result is slightly different. On builds before https://chromium.googlesource.com/chromium/src/+/1894d423068be735560e0171922c833c4091b5d1 I have the bright green image. Starting with that build, I get a still green but slightly darker background. Adding command-line flag --disable-features=ColorCorrectRendering restores the old behavior.

With builds after https://chromium.googlesource.com/chromium/src/+/0990d74ec6508fa3f8e7ab7047f75d95948db683 in order to get the old behavior I would need to do --disable-features=ColorCorrectRendering,video-color-management.

I was not able to get the gray background. Do the flags I mentioned above make any difference on your machine?
bright_green.png
13.1 KB View Download
dark_green.png
13.8 KB View Download
will give it a try tomorrow. Could not repro on Windows so might be linux specific (ubuntu 16.04)
--disable-features=ColorCorrectRendering,video-color-management gives the bright green variant. I *think* i've seen the dark green one before but could not reproduce it.
Labels: Needs-Feedback
Labels: Needs-Triage-M61
Status: Assigned (was: Unconfirmed)
Cc: emir...@chromium.org
+ emircan@ for input on whether or not this could be related to some alpha channel rendering work.

I am unable to reproduce the grey background.
still getting grey on 61.0.3163.100, 62.0.3202.9 shows the nice color in the newly attached picture.
chrome62.png
184 KB View Download
Labels: -Needs-Feedback

Sign in to add a comment