I tried adding my Canon EOS M50 as a webcam using v4l2 loopback like this:
gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0
It works but the picture is 512x288.
On the other hand SparkoCam on a Windows box can squeeze 1080p liveview out of it with decent fps and full control over ISO etc. The picture is very sharp and does not look upscaled (although I didn't do a pixel by pixel analysis yet). Anyway: how can I achieve the same or similar results with gphoto2?