I also referred sample code “gstVideoEncode” given in argus examples.
But it has also renderer enabled.
Please look at the argus sample code “tegra_multimedia_api/argus/samples/gstVideoEncode/main.cpp”.
So is there a way to avoid using g_display and disable renderer ?
Try refering the argus sample code “tegra_multimedia_api/samples/10_camera_recording” where you can get the reference for disabling display and record the video.