v4l2loopback-sourcecd /usr/src/v4l2loopback-0.12.3/sudo makesudo modprobe v4l2loopbackmodprobe v4l2loopback devices=2 (untested but in the docs)import virtualvideofvd.init_output(2, 1280, 720, fps=30) the first parameter (2) is the video #|pix_record| is the magic sauce. Send it codec 33 and open file /dev/video[NUMBER]For code completion to work you need to downgrade openCV :(
pip install --force-reinstall --no-cache -U opencv-python==4.5.5.62