Linux Not Recognizing Camera

Oli21

New Member
I just bought a new computer and installed Ubuntu, and I'm still having trouble with OBS recognizing my Canon M50 Mark2. any ideas?
 

tunnus

New Member
This is an old thread but I just spend quite some time to figure out how to connect canon dslr to obs so hope this helps somebody. I am still not 100% sure how this is suppose to be done, but I did so that
  • make a /dev/video loopback device with v4l2 (you have to check what is the video device name it makes in /dev/video
    Code:
    sudo modprobe v4l2loopback
  • use gphoto2 and ffmpeg to stream video to video loopback device (use the same video number from the step above). This has to be running all the time as it seems to feed the video stream to loopback device
    Code:
    gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video4
  • Now you can test the video is visible with vlc (again same video device number)
    Code:
    vlc v4l2:///dev/video2
=> now the obs studio detects the camera
 
Top