Search Unity

Question Hololens 2: 'No capture devices are available.'

Discussion in 'VR' started by ninjanosui, Jul 3, 2020.

  1. ninjanosui

    ninjanosui

    Joined:
    Jul 12, 2013
    Posts:
    54
    Is there anyway to fix this error? Im running 2019.4.2f1 and cant record videos/images.
     
  2. Flowkiii

    Flowkiii

    Joined:
    Mar 30, 2018
    Posts:
    5
    I have the same problem with Unity 2019.3.13f1. Have you already found a solution?
     
  3. ninjanosui

    ninjanosui

    Joined:
    Jul 12, 2013
    Posts:
    54
    Hi Flowkii, No ; I tried updating mrtk to 2.4 That adds the profiles but still giving me the same error.
    My whole app is useless without being to be able to record video and images
     
  4. Jeremy_35

    Jeremy_35

    Joined:
    Sep 13, 2013
    Posts:
    6
    Hi,
    I had the same issue with Unity 2019.2 and this is what I did (it works now) :

    - Uninstall the app from hololens
    - Check Webcam access in Player Settings
    - Delete the previous build (Visual Studio solution)
    - Build again and deploy
     
    ninjanosui and rockear like this.
  5. ninjanosui

    ninjanosui

    Joined:
    Jul 12, 2013
    Posts:
    54
    I tried even resetted the hololens. Can you share your visual studio permissions profile ? I might be able to spot the difference
     
  6. Flowkiii

    Flowkiii

    Joined:
    Mar 30, 2018
    Posts:
    5
    Thank you Jermey_35 it solved the problem for me. My problem was that i never deleted the previous build.

    @ninjanosui: You dont have to add anything to the visual studio permissions profile, it is enough when you add the Webcam and microphone access in the Player Settings of Unity. I also used the mrtk 2.4 and the Camera Settings Provider i use is the XR SDK Windows Mixed Reality Camera Settings with the Render from PV Camera active.
     
  7. ninjanosui

    ninjanosui

    Joined:
    Jul 12, 2013
    Posts:
    54
    Is this the profile ?
    Im still getting this error with it:
     
  8. Flowkiii

    Flowkiii

    Joined:
    Mar 30, 2018
    Posts:
    5
    Yes this is the right profile, but only if you use the XR-plugin Management of Unity for the Windows Mixed Reality plugin. But this is not longer the error that there is no available capture device. Now you have the problem that it is not compatible with the Media Foundation.
    For Capturing an Photo i used the UnityEngine.Windows.WebCam lib.
     
  9. ninjanosui

    ninjanosui

    Joined:
    Jul 12, 2013
    Posts:
    54
    Ok. Can you explain how to use the XR-Plugin management ? Cause when I try to enable it, it builds in 2d mode.
    And I get the messaget Legacy XR is disabled. Remove all XR SDK packages to re-enable
     
  10. ninjanosui

    ninjanosui

    Joined:
    Jul 12, 2013
    Posts:
    54
    I have got the xr input managements working by using a clean project.
    Stiil i get the same error:

    Exception thrown at 0x00007FFA006439EC (KernelBase.dll) in ER_Cleanup.exe: WinRT originate error - 0xC00DABE0 : 'No capture devices are available.'.
    'ER_Cleanup.exe' (Win32): Loaded 'C:\Windows\system32\UserMgrProxy.dll'.
    'ER_Cleanup.exe' (Win32): Loaded 'C:\Windows\system32\usermgrcli.dll'.
    Exception thrown at 0x00007FFA006439EC (KernelBase.dll) in ER_Cleanup.exe: 0x40080202: WinRT transform error (parameters: 0x000000008000000B, 0x0000000080070490, 0x0000000000000014, 0x000000FAE93FD510).
    The thread 0xfbc has exited with code 0 (0x0).

    'ER_Cleanup.exe' (Win32): Loaded 'C:\Windows\system32\deviceaccess.dll'.
    Exception thrown at 0x00007FFA006439EC (KernelBase.dll) in ER_Cleanup.exe: WinRT originate error - 0xC00DABED : 'Capture device that is present on the system is not supported by Media Foundation.'.
    'ER_Cleanup.exe' (Win32): Loaded 'C:\Windows\system32\Windows.Media.MediaControl.dll'.
    Exception thrown at 0x00007FFA006439EC (KernelBase.dll) in ER_Cleanup.exe: WinRT originate error - 0xC00DABED : 'Capture device that is present on the system is not supported by Media Foundation.'.
    Exception thrown at 0x00007FFA006439EC (KernelBase.dll) in ER_Cleanup.exe: WinRT originate error - 0xC00DABE0 : 'No capture devices are available.'.
    Exception thrown at 0x00007FFA006439EC in ER_Cleanup.exe: Microsoft C++ exception: Platform::COMException ^ at memory location 0x000000FAE85FDB60. HRESULT:0xC00DABED Capture device that is present on the system is not supported by Media Foundation.
    WinRT information: Capture device that is present on the system is not supported by Media Foundation.