Could be something peculiar to Nvidia GPUs, or maybe it’s just Firefox, but I never see this colour anywhere else, only when something causes a glitch in the rendering of video content. Sometimes it’s not just the video player that goes green, but the entire viewport of the browser window. I’m mainly curious why it’s that colour, rather than just black or white or something like that.

  • HEX: 004d00
  • RGB: rgb(0, 77, 0)

Cheers!

  • ChaoticNeutralCzech@feddit.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    29 days ago

    This happens when I try HW decoding on VLC on an old AMD card, the video has extra letterbox bars of this color (can be cropped manually by pressing C). At first I thought it’s some default in the ITU-R BT.709 (YCbCr) colorspace used in most video codecs but those RGB values map to an uneven 55, 106, 100

      • ChaoticNeutralCzech@feddit.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        19 days ago

        Oh, turns out it really is YCbCr, I should have done the conversion the other way around! The gamuts of both spaces are different so doing the raw matrix multiplication on YCbCr(0, 0, 0) results in RGB(-179.2, 134.9, -225.9). This is obviously outside valid subpixel values in RGB24 (integers 0-255) so the values get set to RGB(0, 135, 0). There will be gamma correction applied, for example the ITU-R BT.601’s gamma correction will change it to RGB(0, 74, 0) - not quite OP’s measured value but very close, and we don’t know the video’s color profile or hardware gamma settings (yes, GPUs can apply various corrections to HW-decoded video before sending it to the screenbuffer that OP saved by screenshotting) so there is some margin of error.

  • Petter1@discuss.tchncs.de
    link
    fedilink
    arrow-up
    0
    ·
    29 days ago

    I recall seeing such green on screenshots of DRM protected video on iOS (back when I still had Netflix installed)

    I assume that this is DRM protection as well, probably the same, as those streaming apps are mostly just JS these days anyway

  • tenchiken@anarchist.nexus
    link
    fedilink
    English
    arrow-up
    0
    ·
    29 days ago

    The Video itself is rendered off screen in a special area of memory, then the browser simply uses a predefined color to tell the driver where to display the video. The driver then takes care of things like stretching to fit etc.

    It’s not actually that shade typically, and you are just seeing a side effect of the glitch.

    • Azzu@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      1
      ·
      29 days ago

      That doesn’t really answer the question though. Obviously it’s the side effect of some kind of glitch, but why is it always this green, why not orange or blue

      • lath@lemmy.world
        link
        fedilink
        arrow-up
        1
        arrow-down
        1
        ·
        29 days ago

        It’s the green screen which allows blending, melding, switching and superimposing layers. You see, the way it works is that I don’t know, but it got you reading this far and wasted a few moments of your time which could have been spent doing something else, like gardening.

        But really the answer is probably because it’s very nearly in the middle of the VGA color palette.