Bug 191868

Summary: Colours are slightly shifted when using Canvas.captureStream()
Product: WebKit Reporter: Adam <adam>
Component: WebRTCAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: eric.carlson, jer.noble, jonlee, simon.fraser, thorton, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Safari 12   
Hardware: Mac   
OS: macOS 10.13   
Attachments:
Description Flags
Canvas and Video element with 2 slightly different colours none

Description Adam 2018-11-20 15:33:32 PST
Created attachment 355368 [details]
Canvas and Video element with 2 slightly different colours

If you draw on a canvas and use canvas.captureStream the resulting colours in the video are slightly different than the colours on the Canvas. This is also the case a bit in Chrome and Firefox but in Safari it is quite a bit different.

See https://output.jsbin.com/rebesum where a new random colour is drawn every 1 second on both a Canvas and a Video. It's more noticeable with some colours than others.
Comment 1 Radar WebKit Bug Importer 2018-11-20 18:42:52 PST
<rdar://problem/46193273>