Hi,
In gstreamer, you can use nvvidconv plugin to convert to RGBA. And then call dump_dmabuf() to dump the data. Please refer to
Dump YUV buffer with libargus - #9 by DaneLLL
There are also sample code in
/usr/src/jetson_multimedia_api
Can also call NvBufferTransform() for NV12 to RGBA conversion.