modprobe v4l2loopback devices=2 # as root # then ffmpeg -f v4l2 -i /dev/video0 -f v4l2 /dev/video1 -f v4l2 /dev/video2