snapcrafters / obs-studio

This is a community-supported modified build of OBS Studio.
https://snapcraft.io/obs-studio
118 stars 35 forks source link

gphoto2 capture not working #102

Closed KristijanZic closed 2 years ago

KristijanZic commented 3 years ago

How can I test this in obs? When I create a gPhoto live preview capture source I get no preview. Not even sure if OBS recognises my dslr.

But it's working when I do it manually like this: gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0 and view trough VLC Video source.

However the gphoto2 plugin in obs is not showing any preview.

I gave OBS all permissions and did snap connect obs-studio:raw-usb

flexiondotorg commented 3 years ago

I don't have a camera that is gPhoto compatible so I can not test this. I need someone with a compatible camera to do some debugging and help identify why this is not working in the snap.

If someone doesn't step forward, I'll remove the gPhoto plugin from the snap since it isn't currently of any use.

starkmapper commented 3 years ago

I've been playing with this plugin and would like to help. I'm a c++ coder, but have 0 experience with snap, so I’m not sure how much help I would be...

I do have the gphoto plugin working on ubuntu 21.04 with the "official" OBS 27.0.1 from PPA.

I also rebuild the gphoto plugin, since v0.3 crashes OBS after switching to and from scenes. (https://github.com/Atterratio/obs-gphoto/pull/15)

If it works is a nice plugin though, but it needs some more work to become stable...

flexiondotorg commented 3 years ago

@starkmapper Thanks for the offer of assistance.

If you have compatible hardware, then the assistance I am seeking is someone who can test/debug the OBS snap with the built-in gphoto2 plugin to try and identify why it doesn't work and what is required to make it function 🙂

The gphoto plugin in this snap is built from this fork:

starkmapper commented 3 years ago

I've been migrating from Ubuntu to manjaro, so progress is slow, but here's what I've got so far:

Next steps: