gphoto2 install on Plasma6

I want to connect my dslr as a webcam and it seems I need gphoto2 and ffmpeg to make this happen. I don’t see either in the discover app. should I install from source? Is there another work around in KDE?

It would help if you could say which distribution you are using.

i see a snap for the command line tool in my kubuntu repositories.