Not sure if this is the correct community, but I have a question about video encoding and decoding.
I have a video that gets served in MP4 or WebM formats, depending on browser support. I noticed that in chrome, the WebM is noticeably darker than when viewing the files locally in VLC, or even another browser such as Firefox:
The original issue was with videos that I was re-encoding myself with
ffmpeg -i input.mp4 -c:v libvpx-vp9 -b:v 2M output.webm
I thought it might be related to the CLI options I was passing in, so I tried playing around with some other encoding option (such as using Constant Quality (CQ) mode and two-pass encoding) but still saw the brightness differences in Chrome. After that, I noticed these same issues on media that was automatically encoded from cloudinary, and I figured if I am seeing the differences there, it probably doesn't have anything to do with my encoding option flags.
Before I go too much down the rabbit hole here, is there anything I can control with this? Or is this just an issue with the decoder Chrome happens to be using (which is different that what VLC or Firefox is using).
chrome://flags/#disable-accelerated-video-decode, the option was set to Enable (which I think means it was using hardware video decoding, the option name is a bit confusing...). Setting that to Disable and then relaunching Chrome, and the WebM video displays the same as the MP4. So it seems like a bug with GPU decoding?