While trying to record the screen using gstreamer and encode the output to h264, an RGBx to RGBA conversion issue arises when using XorgImageSrc as the source. This article explains how to resolve the issue by adjusting the pipeline.