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

Format error in OBS virtual camera output #51

Closed Tea6098 closed 1 year ago

Tea6098 commented 1 year ago

Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE

Describe the bug When I use AV Pro Live Camera to select OBS Virtual Camera and call 'Start' method, the screen does not display, and the returned format does not match the verification. I need to reselect the format to establish a successful connection.

Your Setup (please complete the following information):

To Reproduce Steps to reproduce the behavior:

  1. Install an OBS program.
  2. Add new scene and new window source.
  3. Start virtual camera.
  4. Open the CameraExplorerDemo scene
  5. Start OBS virtual camera. (Failed)
  6. Select any mode selection (Succeed)

Logs image

Screenshots It is the same with logs

Videos https://drive.google.com/file/d/1WYklC3F4yf9pZMYsjXwWO_W5uvDIAqb0/view?usp=sharing

Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE Instead email the link to us unitysupport@renderheads.com

Chris-RH commented 1 year ago

Why does OBS Virtual Camera / VirtualCam crash or not work correctly?

This virtual device is quite buggy in our experience. We have noted that if you just try to start the device it will not produce frames. Instead you must select one of the modes. In our testing there were only I420 and NV12 format modes. The I420 modes worked, but if you switched between modes it would crash internally with a stack overflow exception. The NV12 modes didn’t produce any frames. There is another virtual camera plugin for OBS which appears in the menu and produces virtual devices called “OBS-Camera”. We found that this virtual device worked much better