Video uploads - Black background, well.. not black

Just uploaded a simple video of a loading spinner to the catalog with a black background, once testing in game the actual background shows with a purple tint (see video and image below)- I wouldn’t be fussed about this really but considering each upload is 2000 robux, its quite annoying and frustrating.

Edit: Just noticing now that the video I uploaded actually does show the black background, but the actual case is the image at the top.


Expected behavior

Well, just simply keeping the uploaded black background as black.. not sure what else to say?
I know there’s things with codecs and bitrates etc.. but surely keeping a black background is a lot less bitrate intensive as applying colour?

A private message is associated with this bug report

Hi!

I looked into this. I admit I couldn’t see the issue with my eyes, but when I pulled it into a paint program, I could see that the background RGB values were (1,0,1) instead of (0,0,0). This is on a 0-255 scale. That is a very subtle purple tint (R = red, B = blue, so 0.4% red and 0.4% blue is 0.4% purple).

Unfortunately, I don’t think you can expect any video compression to guarantee that large fields of a constant color do not have a very subtle hue shift, even if the starting color is black.

I haven’t worked on Roblox’s video compression, but I have a lot of relevant experience. I have designed and implemented both video and still image compression algorithms. Whether or not it hue shifts a solid color depends very much on the internal implementation details of the compression algorithm. If there is a shift like this, I expect it’s either because it actually does use less bandwidth due to internal compression details, or because the compressor thinks it should finish faster rather than spend a lot of time trying to get these pixels slightly better from (1,0,1) to (0,0,0).

I understand that this can be counter intuitive. It’s just black, as you say. But, lossy compression simply doesn’t guarantee that any particular input will round trip losslessly, even if it is something as boring and seemingly trivial to compress as pure black.

And even if it happened to round trip today, it may not in the future. If somebody comes up with significantly better video compression in a year or two, we’d like to be free to give Roblox players that benefit.

So, if you use video compression, you should expect it to be close to the colors you gave it, but you should not expect any color to exactly match – not even pure black or pure white.

I’m sorry. I know this isn’t what you wanted to hear. But, I hope this explanation helps you understand the “why” behind the answer.

1 Like

I think it’s for the best you create the black part of the video as a standalone UI element and overlay it on top of the video, giving you a pure black color on top of the loading screen.