I'm trying to capture png files from my mt9p031 camera. It is i2c/12 bits. The gst-launch command that routes the camera output through bayer2rgb ! jpegenc works as expected, but the bayer2rgb ! pngenc does not. (I'm seeing vertical bars of no data in every other column?) I suspect that bayer2rgb outputs 8 bits and pngenc expects 16, but I see no way of changing bayer2rgb or pngenc to fix the problem. Does anyone have a fix? Alternatively, if there is some other lossless format that would work, I'd love to hear about it.