RenderHeads / UnityPlugin-AVProLiveCamera

AVPro Live Camera is a Unity plugin for webcams, TV cards and capture cards
https://renderheads.com/products/avpro-live-camera/
11 stars 0 forks source link

Problems with Elgato Facecam Pro #49

Open ToxMox opened 1 year ago

ToxMox commented 1 year ago

Chris over on the Unity forum asked me to post this here as it will likely require you guys acquiring an Elgato Facecam Pro (which was finally back in stock on Elgato's website the other day but now out of stock again)

Describe the bug Having some problems with the Elgato Facecam Pro:

The 3840x2160 [MJPG] mode is stuck at 30hz even when I specify 60hz
The 3840x2160 [Unknown] mode just doesn't work. I believe these "unknown" modes are h264 based on the attached DirectShow Capture Capabilities output. The 1920x1080 [Unknown] mode works

Screenshot showing [Unknown] mode not working: Unity_LRYYZJ9r9T

Screenshot showing only getting 30hz: Unity_I8xQgmCy85

Directshow Capabilities: ElgatoFacecamPro.txt

Relevant forum post: firefox_20230509_124724

My Setup:

Chris-RH commented 1 year ago

Thanks, this will be helpful in case anyone else runs into the same problem as it gives a few things to try. We hopefully have one ordered and on its way to the office, but I'm not sure exactly when it will arrive.

RichRH commented 1 year ago

Hi @ToxMox,

Thanks for reporting this - we finally managed to get our hands on the ellusive Facecam Pro and have reproduced the issues you're seeing.

Unfortunately there's no quick fix - 4K MJPG does indeed seem to be limited to 30hz (I suspect due to API/bandwidth limitations as 60hz is definitely the value being passed to the device - confirmed in debugger) and as you correctly suggest, the 'Unknown' format is indeed H.264, which the plugin doesn't directly support.

I think we're straddling 'enhancement' rather than 'bug' at this point but am hoping some work I'm doing on our other plugins may pave the way for the H.264 route to work, although fundamentally we really need to update the base API used by Live Camera to fully address this - on the TODO list!

Cheers,

ToxMox commented 1 year ago

Excellent, thank you! Very much looking forward to the fixes 😄

ToxMox commented 9 months ago

Hi there. I'm curious if there has been any progress or update on getting Media Foundation cameras supported?

ToxMox commented 6 months ago

@RichRH any update on this?

shealan commented 6 months ago

Any updates on this? We have just invested heavily in these cameras and discovering they don't play nicely with this package is going to cause a lot of problems for us.

RichRH commented 6 months ago

Hi @ToxMox / @shealan,

I'm afraid there's no update on this as of yet - 4K @ 30 is currently the limitation. We got as far as acquiring the camera and confirming the limitation but have been slammed with other work. It's still on the agenda but unfortunately couldn't give a timeframe at this point as it's pretty much a rewrite of the plugin (for Media Foundation support).

Cheers,

HectorZap commented 2 months ago

Hello, I have the same issue. Any updates/roadmap on this please? It's very frustrating having bought both the camera and the plugin to get the maximum possible quality and see it capped to 30 fps. Any update, and hopefully a timeline, would be very welcome. Thanks,

RichRH commented 2 months ago

Hi @HectorZap,

We share your frustration but as a small team have to choose our battles carefully, having to prioritise work based on severity and demand. Demand for this issue is certainly increasing and I can tell you that fundamental work has started on rewriting this plugin, but it will take some time and is contigent on a clear runway (contract projects etc..). I can't make any promises but late Autumn/early Winter is a realistic target.

Cheers,

HectorZap commented 1 month ago

Thanks a lot for your answer, and for your hard work! Looking forward to the update,