FFmpegOut icon indicating copy to clipboard operation
FFmpegOut copied to clipboard

Wrong colors in Player

Open ThomasDebrunner opened this issue 5 years ago • 3 comments

I have the problem that as soon as I build the player and perform the recording from the player, the generated video seems to have wrong color information. I suspected the -pixel_format for the raw video for ffmpeg would be wrong, but none of the combinations of rgb and a resulted in correct colors.

The green part is supposed to be gray (#6c6c6c) and the blue part is supposed to be brown.

Screenshot

When running from the editor, everything works as expected. I have tried on both macOS catalina (metal) and Ubuntu (Vulkan). The mac has intel integrated graphics, the ubuntu has NVIDIA card with official nvidia drivers.

ThomasDebrunner avatar Nov 13 '19 17:11 ThomasDebrunner

Explicitly setting the TextureFormat in the AsyncGPUReadback fixed this issue for me. This behaviour is only occuring in the standalone versions.

See #44

dennistimmermann avatar Nov 15 '19 15:11 dennistimmermann

Thanks @dennistimmermann, that fixes the issue for me as well!

ThomasDebrunner avatar Nov 18 '19 09:11 ThomasDebrunner

Same issue here. Fix #44 helped! Please merge it.

bakwc avatar Feb 14 '21 10:02 bakwc