How to get camera stream data to virtual camera

Hi

I have a CSI camera. I have created virtual camera nodes using v4l2loopback. Now i am trying to save the stream data to a file using ffmpeg. But i am not able to. Is this possible?

Thanks