Coder Social home page Coder Social logo

Comments (6)

jojizaidi avatar jojizaidi commented on May 30, 2024

I was able to get the camera to work. I changed the Graphics API To use OpenGLES2.

Now when I start recording I get this error :

[AVProMovieCapture] Start File Capture: 2732x2048 @ 30fps [BGRA32] vcodec:'H264' to file: '/var/mobile/Containers/Data/Application/3BEE81C5-C7A6-4711-9ACF-207F34E6F3F0/Documents/ScreenCapture_2019-12-19_11-30-52_2732x2048.mp4'
RenderHeads.Media.AVProMovieCapture.CaptureBase:PrepareCapture()
RenderHeads.Media.AVProMovieCapture.CaptureBase:StartCapture()
RenderHeads.Media.AVProMovieCapture.CaptureGUI:MyWindow(Int32)
UnityEngine.WindowFunction:Invoke(Int32)
UnityEngine.WindowFunction:Invoke(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)

(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

Failed to create video capture
RenderHeads.Media.AVProMovieCapture.CaptureBase:PrepareCapture()
RenderHeads.Media.AVProMovieCapture.CaptureBase:StartCapture()
RenderHeads.Media.AVProMovieCapture.CaptureGUI:MyWindow(Int32)
UnityEngine.WindowFunction:Invoke(Int32)
UnityEngine.WindowFunction:Invoke(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)

(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

int CreateRecorderVideo(const unichar *, uint, uint, int, int, _Bool, int, _Bool, int, int, int, int, _Bool, _Bool, _Bool, _Bool) - Failed to create video recorder, error: (null)
RenderHeads.Media.AVProMovieCapture.CaptureBase:PrepareCapture()
RenderHeads.Media.AVProMovieCapture.CaptureBase:StartCapture()
RenderHeads.Media.AVProMovieCapture.CaptureGUI:MyWindow(Int32)
UnityEngine.WindowFunction:Invoke(Int32)
UnityEngine.WindowFunction:Invoke(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)

(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

[AVProMovieCapture] Failed to create recorder
RenderHeads.Media.AVProMovieCapture.CaptureBase:PrepareCapture()
RenderHeads.Media.AVProMovieCapture.CaptureBase:StartCapture()
RenderHeads.Media.AVProMovieCapture.CaptureGUI:MyWindow(Int32)
UnityEngine.WindowFunction:Invoke(Int32)
UnityEngine.WindowFunction:Invoke(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)

(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

No recorder for handle -1
RenderHeads.Media.AVProMovieCapture.CaptureBase:SetupErrorHandler()
RenderHeads.Media.AVProMovieCapture.CaptureBase:PrepareCapture()
RenderHeads.Media.AVProMovieCapture.CaptureBase:StartCapture()
RenderHeads.Media.AVProMovieCapture.CaptureGUI:MyWindow(Int32)
UnityEngine.WindowFunction:Invoke(Int32)
UnityEngine.WindowFunction:Invoke(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)

(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

from unityplugin-avpromoviecapture.

MorrisRH avatar MorrisRH commented on May 30, 2024

Unfortunately both AVPro Movie Capture and Vuforia use the same names for a couple of functions and it's a bit random as to which get linked in.
Should MovieCapture get linked in then Vuforia fails to initialise correctly (tries to start as OpenGLES when Metal is being used) and you get the black screen.
Should Vuforia get linked in then the camera feed works but you can't capture.

Using OpenGLES will allow Vuforia to function regardless of which functions the linker decides to link.

We're working on a fix...

It's unrelated to what you're seeing in the logs, but AVPro Movie Capture only supports Metal.

from unityplugin-avpromoviecapture.

jojizaidi avatar jojizaidi commented on May 30, 2024

from unityplugin-avpromoviecapture.

AndrewRH avatar AndrewRH commented on May 30, 2024

This should be fixed in the upcoming 4.0.3 version :)

from unityplugin-avpromoviecapture.

jojizaidi avatar jojizaidi commented on May 30, 2024

from unityplugin-avpromoviecapture.

AndrewRH avatar AndrewRH commented on May 30, 2024

I'm closing this issue, if you're still having problems (once 4.0.3 is released) please reopen this ticket or create a new one. Thanks!

from unityplugin-avpromoviecapture.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.