Get two video streams of different resolutions from a single camera with NVIDIA Gstreamer

You would use identity drop-allocation=true before v4l2sink in case of v4l2loopback.
Note that v4l2loopback nodes may result in significant CPU usage.
Try (here using BGRx):

gst-launch-1.0 nvarguscamerasrc gainrange='3 3' ispdigitalgainrange='3 3' exposuretimerange='1000000 1000000' ! 'video/x-raw(memory:NVMM), width=(int)4032, height=(int)3040, format=(string)NV12, framerate=(fraction)30/1' ! nvvidconv flip-method=0 ! 'video/x-raw(memory:NVMM)' ! tee name=mytee ! queue ! nvvidconv ! video/x-raw, format=BGRx !  identity drop-allocation=1 ! v4l2sink device=/dev/video1        mytee. ! queue ! nvvidconv ! 'video/x-raw(memory:NVMM),width=640,height=480' ! nvvidconv ! video/x-raw, format=BGRx ! identity drop-allocation=1 ! v4l2sink device=/dev/video2
1 Like