Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Video Webcam Texture doesn't work with certain cameras (ERROR: Could not find specified video device)

Discussion in 'Audio & Video' started by vice39, May 25, 2017.

  1. vice39

    vice39

    Joined:
    Nov 11, 2016
    Posts:
    108
    I'm trying to get a PointGrey camera to work in Unity. The camera is registered as a DirectShow device and works in Skype and other video capture applications. Unity3d will list it in WebCamTexture.devices, however when I try to play the camera Unity will throw an error: Could not find specified video device

    Any ideas?

    Thanks.
     
  2. r618

    r618

    Joined:
    Jan 19, 2009
    Posts:
    1,319
    Unity's generic USB web/cam approach does not work with DirectShow devices such as PG cameras, unfortunately.
    PG SDK won't help either - their managed dlls contain unsafe/native code which Unity can't properly import, too.
    You need separate plugin - there is avpro live camera on the asset store, but their demo had some issues year ago [ https://forum.unity3d.com/threads/avpro-live-camera.137233/page-5#post-2556868 ]