Comments (6)
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.
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.
from unityplugin-avpromoviecapture.
This should be fixed in the upcoming 4.0.3 version :)
from unityplugin-avpromoviecapture.
from unityplugin-avpromoviecapture.
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)
- [Question] Getting duration of video? HOT 2
- [Bug] Sound not release after capture audio with miscrophone HOT 1
- [Enhancement] Offline render with Ray tracing and Path tracing
- [Bug] Exception: AndroidJavaException: java.lang.ClassNotFoundException: com.renderheads.AVPro.MovieCapture.Manager HOT 1
- [Bug] so Load error on some android devices HOT 2
- [Bug] Shader compilation failure on OpenGLES 3.0 capable hardware HOT 13
- [Bug] Typo "RelativeToPeristentData" in Enum CaptureBase.OutputPath HOT 2
- [Bug] Crash occurs when stop capture on Samsung Galaxy Tab A9+ HOT 21
- [Bug] Timestamp issues when capturing video from camera HOT 2
- [Enhancement] Offline render with audio
- [Bug] Captures failing with "Application Entry Point" set to "GameActivity" HOT 1
- [Enhancement] Add error explanation when StartCapture returns false HOT 2
- [Bug] Transparent PNG Recording crashes on 5.2.1+ HOT 2
- [Bug] Built a Windows 32bit target with IL2CPP and it crashes on CaptureBase.Awake() HOT 2
- [Bug] Xcode 15 Crash HOT 4
- [Question] Using AVPro Video Player and AVPro Movie Capture in one scene (on iOS) HOT 3
- [Bug] Screen capture on Windows producing very dark video HOT 3
- [Bug] iOS Front Camera Issue: 180-Degree Rotation or Horizontal Mirroring When FlipVertically is Enabled. HOT 2
- Movie Capture with microphone sound only HOT 2
- [Question] Any plans on adding WebGL support? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unityplugin-avpromoviecapture.