Hi,
It is fine when I run the pipeline below using nvv4l2camerasrc and /dev/video0:
GST_DEBUG=3 gst-launch-1.0 nvv4l2camerasrc device=/dev/video0 ! 'video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, framerate=(fraction)30/1, format=(string)UYVY' ! nvvideoconvert ! 'video/x-raw(memory:NVMM), format=(string)NV12' ! fakesink
But when I clone /dev/video0 into /dev/video2 using v4l2sink (like the below command), then running the pipeline again with device=/dev/video2, it will log the errors like the image:
gst-launch-1.0 v4l2src device=/dev/video0 ! 'video/x-raw, width=1920, height=1080, framerate=(fraction)30/1, format=UYVY' ! v4l2sink device=/dev/video2
However, if I use v4l2src instead of nvv4l2camerasrc to get data from the clone /dev/video2, it works fine:
gst-launch-1.0 v4l2src device=/dev/video2 ! 'video/x-raw, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, format=(string)UYVY' ! fakesink
My question: Is there a way to use nvv4l2camerasrc to get data from virtual device created by v4l2loopback ?
For more information, it also logs errors when I try to clone device using nvv4l2camerasrc:
gst-launch-1.0 nvv4l2camerasrc device=/dev/video0 ! 'video/x-raw(memory:NVMM), width=1920, height=1080,framerate=30/1, format=UYVY' ! nvvideoconvert ! identity drop-allocation=true ! v4l2sink device=/dev/video2