RenderHeads / UnityPlugin-AVProMovieCapture

AVPro Movie Capture is a Unity Plugin for advanced video capture to AVI/MP4/MOV files
https://renderheads.com/products/avpro-movie-capture/
48 stars 8 forks source link

Android Codecs Not Found #274

Closed vvilarrubla closed 1 year ago

vvilarrubla commented 1 year ago

Hi, I've downloaded the trial version to test in my app. In editor (Unity 2020, Windows 10) it works just fine. But when I try the scene ScreenCapture from the Demos folder in Android, the plug in is unable to find video and audio codecs. I checked writing permissions and they look fine.

[UPDATE] I tried the package in an empty project and it works fine. I'm looking what is happening in my project to see what could be affecting the load of the codecs. My project uses URP to render. But I couldn't find anything that shows that this is an issue. Here is a screenshot of the demo scene when is build as a single scene in my project
image

Here is de LogCat: ``` 2023-04-17 15:38:34.247 968-1298 Pageboost system_server I start alp : com.Wildbytes.ARPullMadridTest 2023-04-17 15:38:34.247 968-1303 Pageboost system_server I alp for : com.Wildbytes.ARPullMadridTest , 0 2023-04-17 15:38:34.249 1341-1341 StartingSurfaceDrawer com.android.systemui D preloadSplashScreenAppIcon com.Wildbytes.ARPullMadridTest 2023-04-17 15:38:34.269 968-1025 ActivityManager system_server I Start proc 28797:com.Wildbytes.ARPullMadridTest/u0a694 for activelaunch {com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity} 2023-04-17 15:38:34.269 968-1025 ActivityManager system_server D [SecIpm] it's a ML_TYPE_EMPTYPROCESS protected process com.Wildbytes.ARPullMadridTest 2023-04-17 15:38:34.289 28797-28797 USNET pid-28797 E USNET: appName: com.Wildbytes.ARPullMadridTest 2023-04-17 15:38:34.295 968-1300 ActivityManager system_server I DSS OFF for com.Wildbytes.ARPullMadridTest 2023-04-17 15:38:34.299 968-1300 ActivityManager system_server D attachApplicationLocked() app=ProcessRecord{cbde51b 28797:com.Wildbytes.ARPullMadridTest/u0a694} app.isolatedEntryPoint=null instr2=null 2023-04-17 15:38:34.302 28797-28797 ActivityThread pid-28797 D handleBindApplication()++ app=com.Wildbytes.ARPullMadridTest 2023-04-17 15:38:34.316 28797-28797 GraphicsEnvironment pid-28797 V ANGLE Developer option for 'com.Wildbytes.ARPullMadridTest' set to: 'default' 2023-04-17 15:38:34.318 28797-28797 LoadedApk pid-28797 D LoadedApk::makeApplication() appContext.mOpPackageName=com.Wildbytes.ARPullMadridTest appContext.mBasePackageName=com.Wildbytes.ARPullMadridTest 2023-04-17 15:38:34.355 28797-28816 RPullMadridTes pid-28797 W ClassLoaderContext type mismatch. expected=PCL, found=DLC (PCL[] | DLC[];PCL[/data/app/~~2J2S5dqgXzM2LWinD2Ebqw==/com.Wildbytes.ARPullMadridTest-PBj1ohUNhRveqtv28Se27w==/base.apk*149094161]) 2023-04-17 15:38:34.355 968-3717 ActivityTaskManager system_server I START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity bnds=[39,1356][285,1693]} from uid 10112 2023-04-17 15:38:34.356 968-3717 ActivityTaskManager system_server D TaskLaunchParamsModifier:task=null activity=ActivityRecord{270a956 u0 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity display-from-option=0 display-id=0 display-windowing-mode=1 suggested-display-area=DefaultTaskDisplayArea@86158157 2023-04-17 15:38:34.356 968-3717 [secipm] system_server D mSecIpmManager Preload com.Wildbytes.ARPullMadridTest dex files 2023-04-17 15:38:34.356 968-3717 ActivityTaskManager system_server D TaskLaunchParamsModifier:task=null activity=ActivityRecord{270a956 u0 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity t-1} display-from-option=0 display-id=0 display-windowing-mode=1 suggested-display-area=DefaultTaskDisplayArea@86158157 inherit-from-source=fullscreen activity-options-fullscreen=Rect(0, 0 - 0, 0) non-freeform-display display-area=DefaultTaskDisplayArea@86158157 maximized-bounds 2023-04-17 15:38:34.357 968-2390 PkgPredict...Controller system_server D create a new DexPreloadTask pkg:com.Wildbytes.ARPullMadridTest path:/data/app/~~2J2S5dqgXzM2LWinD2Ebqw==/com.Wildbytes.ARPullMadridTest-PBj1ohUNhRveqtv28Se27w== 2023-04-17 15:38:34.358 968-2390 PkgPredict...Controller system_server D /data/app/~~2J2S5dqgXzM2LWinD2Ebqw==/com.Wildbytes.ARPullMadridTest-PBj1ohUNhRveqtv28Se27w==/oat/arm64/base.art is already preloaded 2023-04-17 15:38:34.359 1815-1982 AppIconSolution com.sec.android.app.launcher I getThemeIconWithBG called with public API, pkg = com.Wildbytes.ARPullMadridTest 2023-04-17 15:38:34.359 968-3717 ActivityTaskManager system_server D TaskLaunchParamsModifier:task=Task{3392073 #41646 type=standard A=10694:com.Wildbytes.ARPullMadridTest U=0 visible=false mode=fullscreen translucent=true sz=0} activity=ActivityRecord{270a956 u0 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity t-1} display-from-option=0 display-id=0 display-windowing-mode=1 suggested-display-area=DefaultTaskDisplayArea@86158157 inherit-from-source=fullscreen activity-options-fullscreen=Rect(0, 0 - 0, 0) non-freeform-display display-area=DefaultTaskDisplayArea@86158157 maximized-bounds 2023-04-17 15:38:34.359 1815-1982 AppIconSolution com.sec.android.app.launcher I return adaptive icon for com.Wildbytes.ARPullMadridTest, isNight = true 2023-04-17 15:38:34.361 1815-1982 LauncherActivityInfo com.sec.android.app.launcher I packageName: com.Wildbytes.ARPullMadridTest, useThemeIcon: false, height: 288, width: 288, density: 640 2023-04-17 15:38:34.362 624-737 SurfaceFlinger surfaceflinger I id=2390 createSurf (0x0),-1 flag=80004, ActivityRecord{270a956 u0 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity t41646}#0 2023-04-17 15:38:34.363 1341-1486 StartingSurfaceDrawer com.android.systemui D addSplashScreen com.Wildbytes.ARPullMadridTest theme=7f0b0006 task=41646 suggestType=1 2023-04-17 15:38:34.367 624-737 SurfaceFlinger surfaceflinger I id=2391 createSurf (0x0),-1 flag=80004, a638d2e Splash Screen com.Wildbytes.ARPullMadridTest#0 2023-04-17 15:38:34.368 968-968 Pageboost system_server I package com.Wildbytes.ARPullMadridTest 2023-04-17 15:38:34.370 968-1300 MARsPolicyManager system_server D onPackageResumedFG pkgName = com.Wildbytes.ARPullMadridTest, userId = 0 2023-04-17 15:38:34.372 968-1300 WindowManager system_server D rotationForOrientation, orientationSource=ActivityRecord{270a956 u0 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity t41646} 2023-04-17 15:38:34.372 968-1300 WindowManager system_server D rotationForOrientation, orientationSource=ActivityRecord{270a956 u0 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity t41646} 2023-04-17 15:38:34.373 968-1300 WindowManager system_server D rotationForOrientation, orientationSource=ActivityRecord{270a956 u0 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity t41646} 2023-04-17 15:38:34.374 968-1300 SGM:PkgDataHelper system_server D notifyAppCreate(), pkgName: com.Wildbytes.ARPullMadridTest, userId: 0, sendRet: true 2023-04-17 15:38:34.375 968-1167 SGM:GameManager system_server D onLooperPrepared(), msg: MSG_APP_CREATE, pkgName: com.Wildbytes.ARPullMadridTest, userId: 0 2023-04-17 15:38:34.376 968-1300 SGM:GameManager system_server D sendRunningComponentFocus(), pkgName: com.Wildbytes.ARPullMadridTest, userId: 0 2023-04-17 15:38:34.378 968-1167 SGM:GameManager system_server D onLooperPrepared(), msg: MSG_TASK_FOCUSED, pkgName: com.Wildbytes.ARPullMadridTest, userId: 0 2023-04-17 15:38:34.378 968-1167 SGM:GameManager system_server D handleTaskFocused(), pkgName: com.Wildbytes.ARPullMadridTest, userID:0 2023-04-17 15:38:34.378 968-1167 SGM:GameManager system_server D handleResume(). pkgName: com.Wildbytes.ARPullMadridTest, userId: 0, isTunableApp: null 2023-04-17 15:38:34.378 968-1167 SGM:GameManager system_server D notifyFocusInOut(). of pkg: com.Wildbytes.ARPullMadridTest, type: 4, isMinimized: false, isTunableApp: false, userId: 0 2023-04-17 15:38:34.379 968-1014 ActivityManager system_server V Changed top to ProcessRecord{cbde51b 28797:com.Wildbytes.ARPullMadridTest/u0a694} 2023-04-17 15:38:34.380 968-1765 WindowManager system_server V Relayout Window{a638d2e u0 Splash Screen com.Wildbytes.ARPullMadridTest}: viewVisibility=0 req=1080x2280 d0 2023-04-17 15:38:34.380 624-737 SurfaceFlinger surfaceflinger I id=2392 createSurf (1080x2280),-3 flag=40004, Splash Screen com.Wildbytes.ARPullMadridTest$_1341#0 2023-04-17 15:38:34.380 968-1765 WindowManager system_server D makeSurface duration=0 name=Splash Screen com.Wildbytes.ARPullMadridTest$_1341 2023-04-17 15:38:34.391 968-3717 WindowManager system_server D finishDrawingWindow: Window{a638d2e u0 Splash Screen com.Wildbytes.ARPullMadridTest} mDrawState=DRAW_PENDING 2023-04-17 15:38:34.395 968-1015 WindowManager system_server D createAnimationAdapter(): container=Task{3392073 #41646 type=standard A=10694:com.Wildbytes.ARPullMadridTest U=0 visible=true mode=fullscreen translucent=false sz=1} 2023-04-17 15:38:34.397 968-1015 WindowManager system_server D Add container=Task{3392073 #41646 type=standard A=10694:com.Wildbytes.ARPullMadridTest U=0 visible=true mode=fullscreen translucent=false sz=1} 2023-04-17 15:38:34.404 968-1015 WindowManager system_server I container=Task{3392073 #41646 type=standard A=10694:com.Wildbytes.ARPullMadridTest U=0 visible=true mode=fullscreen translucent=false sz=1} Target: mode=0 taskId=41646 isTranslucent=false clipRect=[0,0][0,0] contentInsets=[0,117][0,144] prefixOrderIndex=52 position=[0,0] sourceContainerBounds=[0,0][1080,2280] screenSpaceBounds=[0,0][1080,2280] localBounds=[0,0][1080,2280] windowConfiguration={ mBounds=Rect(0, 0 - 1080, 2280) mAppBounds=Rect(0, 116 - 1080, 2136) mMaxBounds=Rect(0, 0 - 1080, 2280) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=standard mAlwaysOnTop=undefined mRotation=ROTATION_0 mPopOver=undefined mFreeformTaskPinningState=unpinned} leash=Surface(name=Surface(name=Task=41646)/@0xab628c - animation-leash of app_transition)/@0x547cdd5 taskInfo=TaskInfo{userId=0 taskId=41646 displayId=0 isRunning=true baseIntent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity } baseActivity=ComponentInfo{com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity} topActivity=ComponentInfo{com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity} origActivity=null realActivity=ComponentInfo{com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity} numActivities=1 lastActiveTime=44525754 supportsSplitScreenMultiWindow=false supportsMultiWindow=false resizeMode=0 isResizeable=false token=WCT{RemoteToken{f7a719a Task{3392073 #41646 type=standard A=10694:com.Wildbytes.ARPullMadridTest U=0 visible=true mode=fullscreen translucent=false sz=1}}} topActivityType=1 pictureInPictureParams=PictureInPictureParams( aspectRatio=null sourceRectHint=null hasSetActions=false isAutoPipEnabled=false isSeamlessResizeEnabled=true) displayCutoutSafeInsets=null topActivityInfo=ActivityInfo{cdb7acb com.unity3d.player.UnityPlayerActivity} launchCookies=[android.os.BinderProxy@cdf52a8] positionInParent=Point(0, 0) parentTaskId=-1 isFocused=false isVisible=true topActivityInSizeCompat=false locusId= null topLaunchHome=false launchSplitWindowingMode=0 isPairTask=false pairedTaskIds=[] pairWindowingMode=0 pairDockSide=0 isAnimatingByRecent=false originallySupportedSplitScreen=false isAnimatingFreeformToFullscreen=false topActivityInFixedAspectRatio=false isTopTransparentActivity=true} windowType=-1container=Task{a77c7d #1 type=home ?? U=0 visible=false mode=fullscreen translucent=true sz=1} Target: mode=1 taskId=41613 isTranslucent=false clipRect=[0,0][0,0] contentInsets=[0,117][0,144] prefixOrderIndex=48 position=[0,0] sourceContainerBounds=[0,0][1080,2280] screenSpaceBounds=[0,0][1080,2280] localBounds=[0,0][1080,2280] windowConfiguration={ mBounds=Rect(0, 0 - 1080, 2280) mAppBounds=Rect(0, 116 - 1080, 2136) mMaxBounds=Rect(0, 0 - 1080, 2280) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=home mAlwaysOnTop=undefined mRotation=ROTATION_0 mPopOver=undefined mFreeformTaskPinningState=unpinned} leash=Surface(name=Surface(name=Task=1)/@0xc56f182 - animation-leash of app_transition)/@0x19db919 2023-04-17 15:38:34.422 968-1014 SGM:GameManager system_server D identifyGamePackage. com.Wildbytes.ARPullMadridTest, mCurrentUserId: 0, callerUserId: 0, callingMethodInfo: com.samsung.android.game.SemGameManager.isGamePackage(SemGameManager.java:104) 2023-04-17 15:38:34.422 968-1014 SGM:PkgDataHelper system_server D getGamePkgData(). com.Wildbytes.ARPullMadridTest 2023-04-17 15:38:34.422 968-1014 SGM:SemGameManager system_server D isGamePackage(), pkgName=com.Wildbytes.ARPullMadridTest, ret=false 2023-04-17 15:38:34.423 968-1014 SGM:GameManager system_server D noteResumeComponent(), received pkgName: com.Wildbytes.ARPullMadridTest, userId: 0 2023-04-17 15:38:34.423 968-1167 SGM:GameManager system_server D onLooperPrepared(), msg: MSG_APP_RESUME, pkgName: com.Wildbytes.ARPullMadridTest, userid: 0 2023-04-17 15:38:34.423 968-1167 SGM:GameManager system_server D handleResume(). pkgName: com.Wildbytes.ARPullMadridTest, userId: 0, isTunableApp: null 2023-04-17 15:38:34.423 968-1167 SGM:GameManager system_server D notifyFocusInOut(). of pkg: com.Wildbytes.ARPullMadridTest, type: 4, isMinimized: false, isTunableApp: false, userId: 0 2023-04-17 15:38:34.427 968-1014 GameSDK@LifeCycle system_server I noteResumeComponent(): package name : com.Wildbytes.ARPullMadridTest 2023-04-17 15:38:34.427 8220-8220 Utils com...ndroid.app.cocktailbarservice I HomePackage : com.sec.android.app.launcher, resumePackageName : com.Wildbytes.ARPullMadridTest 2023-04-17 15:38:34.428 968-1014 SGM:GameManager system_server D identifyGamePackage. com.Wildbytes.ARPullMadridTest, mCurrentUserId: 0, callerUserId: 0, callingMethodInfo: com.android.server.ssrm.fgapps.GameAppUtils.isGame(GameAppUtils.java:84) 2023-04-17 15:38:34.428 968-1014 SGM:PkgDataHelper system_server D getGamePkgData(). com.Wildbytes.ARPullMadridTest 2023-04-17 15:38:34.428 968-1014 SGM:GameManager system_server D identifyGamePackage. com.Wildbytes.ARPullMadridTest, mCurrentUserId: 0, callerUserId: 0, callingMethodInfo: com.android.server.ssrm.SortingMachine.isGame(SortingMachine.java:162) 2023-04-17 15:38:34.428 968-1014 SGM:PkgDataHelper system_server D getGamePkgData(). com.Wildbytes.ARPullMadridTest 2023-04-17 15:38:34.430 28797-28828 FA pid-28797 I To enable faster debug mode event logging run: adb shell setprop debug.firebase.analytics.app com.Wildbytes.ARPullMadridTest 2023-04-17 15:38:34.445 624-624 SurfaceFlinger surfaceflinger D Display 0 HWC layers: CLIENT | 0x78b24a2010 | 0100 | RGBx_8888 | 0.0 0.0 1080.0 2280.0 | 0 0 1080 2280 | Wallpaper BBQ wrapper#0 CLIENT | | 0000 | Unknown | 0.0 0.0 0.0 0.0 | 0 0 1080 2280 | OneUiHome-BlurLayer#0 (backgroundBlurRadius) CLIENT | 0x78b24a26d0 | 0100 | RGBA_8888 | 0.0 0.0 1080.0 2280.0 | 0 0 1080 2280 | com.sec.android.app.launcher/com.sec[...].activities.LauncherActivity$_1815#0 CLIENT | 0x78b24848b0 | 0100 | RGBA_8888 | 0.0 756.0 1080.0 1860.0 | 78 1380 246 1552 | Splash Screen com.Wildbytes.ARPullMadridTest$_1341#0 DEVICE | 0x78b248f4d0 | 0100 | RGBA_8888 | 0.0 0.0 1080.0 117.0 | 0 0 1080 117 | StatusBar$_1341#0 DEVICE | 0x78b24a2a30 | 0100 | RGBA_8888 | 0.0 0.0 67.0 411.0 | 1013 545 1080 956 | com.samsung.android.app.cocktailbars[...]arservice.CocktailBarService$_8220#0 DEVICE | 0x78b247f570 | 0100 | RGBA_8888 | 0.0 0.0 1080.0 144.0 | 0 2136 2023-04-17 15:38:34.460 28797-28797 InsetsSourceConsumer pid-28797 D setRequestedVisible: visible=false, type=21, host=com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity, from=android.view.InsetsSourceConsumer.hide:242 android.view.InsetsController.collectSourceControls:1215 android.view.InsetsController.controlAnimationUnchecked:1077 android.view.InsetsController.applyAnimation:1456 android.view.InsetsController.applyAnimation:1437 android.view.InsetsController.hide:1006 android.view.InsetsController.hide:981 android.view.ViewRootImpl.controlInsetsForCompatibility:3134 android.view.ViewRootImpl.setView:1547 android.view.WindowManagerGlobal.addView:509 2023-04-17 15:38:34.460 28797-28797 InsetsSourceConsumer pid-28797 D setRequestedVisible: visible=false, type=20, host=com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity, from=android.view.InsetsSourceConsumer.hide:242 android.view.InsetsController.collectSourceControls:1215 android.view.InsetsController.controlAnimationUnchecked:1077 android.view.InsetsController.applyAnimation:1456 android.view.InsetsController.applyAnimation:1437 android.view.InsetsController.hide:1006 android.view.InsetsController.hide:981 android.view.ViewRootImpl.controlInsetsForCompatibility:3134 android.view.ViewRootImpl.setView:1547 android.view.WindowManagerGlobal.addView:509 2023-04-17 15:38:34.460 28797-28797 InsetsSourceConsumer pid-28797 D setRequestedVisible: visible=false, type=1, host=com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity, from=android.view.InsetsSourceConsumer.hide:242 android.view.InsetsController.collectSourceControls:1215 android.view.InsetsController.controlAnimationUnchecked:1077 android.view.InsetsController.applyAnimation:1456 android.view.InsetsController.applyAnimation:1437 android.view.InsetsController.hide:1006 android.view.InsetsController.hide:981 android.view.ViewRootImpl.controlInsetsForCompatibility:3134 android.view.ViewRootImpl.setView:1547 android.view.WindowManagerGlobal.addView:509 2023-04-17 15:38:34.460 28797-28797 InsetsSourceConsumer pid-28797 D setRequestedVisible: visible=false, type=0, host=com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity, from=android.view.InsetsSourceConsumer.hide:242 android.view.InsetsController.collectSourceControls:1215 android.view.InsetsController.controlAnimationUnchecked:1077 android.view.InsetsController.applyAnimation:1456 android.view.InsetsController.applyAnimation:1437 android.view.InsetsController.hide:1006 android.view.InsetsController.hide:981 android.view.ViewRootImpl.controlInsetsForCompatibility:3134 android.view.ViewRootImpl.setView:1547 android.view.WindowManagerGlobal.addView:509 2023-04-17 15:38:34.462 624-644 SurfaceFlinger surfaceflinger I id=2398 createSurf (0x0),-1 flag=80004, b12db25 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity#0 2023-04-17 15:38:34.468 968-1382 WindowManager system_server V Relayout Window{b12db25 u0 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity}: viewVisibility=0 req=1080x2280 d0 2023-04-17 15:38:34.469 624-737 SurfaceFlinger surfaceflinger I id=2399 createSurf (1x1),-3 flag=40004, com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity$_28797#0 2023-04-17 15:38:34.469 968-1382 WindowManager system_server D makeSurface duration=1 name=com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity$_28797 2023-04-17 15:38:34.470 968-1382 WindowManager system_server V Changing focus from null to Window{b12db25 u0 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity} displayId=0 Callers=com.android.server.wm.RootWindowContainer.updateFocusedWindowLocked:583 com.android.server.wm.WindowManagerService.updateFocusedWindowLocked:6484 com.android.server.wm.WindowManagerService.relayoutWindow:2749 com.android.server.wm.Session.relayout:242 2023-04-17 15:38:34.477 968-1015 InsetsSourceProvider system_server D updateVisibility: serverVisible=true, clientVisible=false, source=InsetsSource: {mType=ITYPE_NAVIGATION_BAR, mFrame=[0,2136][1080,2280], mVisible=false, mWindowFrame=[0,2136][1080,2280]}, controlTarget=Window{b12db25 u0 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity}, from=com.android.server.wm.InsetsSourceProvider.setClientVisible:428 com.android.server.wm.InsetsSourceProvider.updateClientVisibility:413 com.android.server.wm.InsetsStateController.onInsetsModified:508 com.android.server.wm.InsetsStateController.lambda$notifyPendingInsetsControlChanged$6$InsetsStateController:689 com.android.server.wm.InsetsStateController$$ExternalSyntheticLambda1.run:2 com.android.server.wm.WindowAnimator.executeAfterPrepareSurfacesRunnables:345 com.android.server.wm.WindowAnimator.animate:226 com.android.server.wm.WindowAnimator.lambda$new$1$WindowAnimator:106 com.android.server.wm.WindowAnimator$$ExternalSyntheticLambda0.doFrame:2 android.view.Choreographer$CallbackRecord.run:1106 2023-04-17 15:38:34.477 968-1015 InsetsSourceProvider system_server D updateVisibility: serverVisible=true, clientVisible=false, source=InsetsSource: {mType=ITYPE_STATUS_BAR, mFrame=[0,0][1080,117], mVisible=false, mWindowFrame=[0,0][0,0]}, controlTarget=Window{b12db25 u0 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity}, from=com.android.server.wm.InsetsSourceProvider.setClientVisible:428 com.android.server.wm.InsetsSourceProvider.updateClientVisibility:413 com.android.server.wm.InsetsStateController.onInsetsModified:508 com.android.server.wm.InsetsStateController.lambda$notifyPendingInsetsControlChanged$6$InsetsStateController:689 com.android.server.wm.InsetsStateController$$ExternalSyntheticLambda1.run:2 com.android.server.wm.WindowAnimator.executeAfterPrepareSurfacesRunnables:345 com.android.server.wm.WindowAnimator.animate:226 com.android.server.wm.WindowAnimator.lambda$new$1$WindowAnimator:106 com.android.server.wm.WindowAnimator$$ExternalSyntheticLambda0.doFrame:2 android.view.Choreographer$CallbackRecord.run:1106 2023-04-17 15:38:34.481 624-644 SurfaceFlinger surfaceflinger I id=2402 createSurf (0x0),-1 flag=20004, Bounds for - com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity@0#0 2023-04-17 15:38:34.482 624-644 SurfaceFlinger surfaceflinger I id=2403 createSurf (0x0),-1 flag=80004, SurfaceView - com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity@5c09653@0#0 2023-04-17 15:38:34.482 624-644 SurfaceFlinger surfaceflinger I id=2404 createSurf (0x0),-1 flag=40400, SurfaceView - com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity@5c09653@0(BLAST)#0 2023-04-17 15:38:34.483 624-644 SurfaceFlinger surfaceflinger I id=2405 createSurf (0x0),-1 flag=20404, Background for SurfaceView - com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity@5c09653@0#0 2023-04-17 15:38:34.492 968-1382 InputDispatcher system_server D Focus request (0): b12db25 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity but waiting because NOT_VISIBLE 2023-04-17 15:38:34.496 968-1300 WindowManager system_server D finishDrawingWindow: Window{b12db25 u0 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity} mDrawState=DRAW_PENDING 2023-04-17 15:38:34.497 968-1015 WindowManager system_server I Reparenting to leash, surface=Surface(name=b12db25 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity)/@0x748f952, leashParent=Surface(name=ActivityRecord{270a956 u0 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity t41646})/@0xd755423 2023-04-17 15:38:34.498 624-737 SurfaceFlinger surfaceflinger I id=2406 createSurf (0x0),-1 flag=24000, Surface(name=b12db25 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity)/@0x748f952 - animation-leash of starting_reveal#0 2023-04-17 15:38:34.498 968-1015 WindowManager system_server D makeSurface duration=1 leash=Surface(name=Surface(name=b12db25 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity)/@0x748f952 - animation-leash of starting_reveal)/@0xa9ad20 2023-04-17 15:38:34.500 968-1011 PkgPredict...erviceImpl system_server I reportToNAP uid:10694 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity thisTime:143 2023-04-17 15:38:34.508 968-1382 InputDispatcher system_server D Focus entered window (0): b12db25 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity 2023-04-17 15:38:34.516 624-624 SurfaceFlinger surfaceflinger D Display 0 HWC layers: CLIENT | 0x78b24a2010 | 0100 | RGBx_8888 | 0.0 0.0 1080.0 2280.0 | 0 0 1080 2280 | Wallpaper BBQ wrapper#0 CLIENT | | 0000 | Unknown | 0.0 0.0 0.0 0.0 | 0 0 1080 2280 | OneUiHome-BlurLayer#0 (backgroundBlurRadius) CLIENT | 0x78b249ccd0 | 0100 | RGBA_8888 | 0.0 0.0 1080.0 2280.0 | 0 0 1080 2280 | com.sec.android.app.launcher/com.sec[...].activities.LauncherActivity$_1815#0 CLIENT | | 0002 | Unknown | 0.0 0.0 0.0 0.0 | 54 929 498 1818 | Background for SurfaceView - com.Wil[...]ayer.UnityPlayerActivity@5c09653@0#0 CLIENT | 0x78b24a0ab0 | 0100 | RGBA_8888 | 0.0 0.0 1080.0 2280.0 | 54 881 498 1818 | com.Wildbytes.ARPullMadridTest/com.u[...].player.UnityPlayerActivity$_28797#0 CLIENT | 0x78b24848b0 | 0100 | RGBA_8888 | 0.0 0.0 1080.0 2280.0 | 54 881 498 1818 | Splash Screen com.Wildbytes.ARPullMadridTest$_1341#0 DEVICE | 0x78b249b0b0 | 0100 2023-04-17 15:38:34.520 3341-3341 GoogleInpu...hodService com...gle.android.inputmethod.latin I GoogleInputMethodService.onStartInput():1930 onStartInput(EditorInfo{inputType=0x0(NULL) imeOptions=0x0 privateImeOptions=null actionName=UNSPECIFIED actionLabel=null actionId=0 initialSelStart=-1 initialSelEnd=-1 initialCapsMode=0x0 hintText=null label=null packageName=com.Wildbytes.ARPullMadridTest fieldId=2131034210 fieldName=null extras=Bundle[{displayId=0}]}, false) 2023-04-17 15:38:34.522 968-1385 MdnieScena...rolService system_server D packageName : com.Wildbytes.ARPullMadridTest className : com.unity3d.player.UnityPlayerActivity 2023-04-17 15:38:34.532 968-1011 ActivityTaskManager system_server I Displayed com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity: +143ms 2023-04-17 15:38:34.532 968-1011 Pageboost system_server I Launch time gathered : pid 28797 com.Wildbytes.ARPullMadridTest 143 2023-04-17 15:38:34.537 28797-28839 Unity pid-28797 I ApplicationInfo com.Wildbytes.ARPullMadridTest version 4.0 build 9b2fd6d2-1577-49bf-8b3b-0e34f63bcddd 2023-04-17 15:38:34.542 968-1382 WindowManager system_server V Relayout Window{b12db25 u0 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity}: viewVisibility=0 req=1080x2280 d0 2023-04-17 15:38:34.546 28797-28797 ViewRootIm...rActivity] pid-28797 I updateBoundsLayer: t = android.view.SurfaceControl$Transaction@cf7717f sc = Surface(name=Bounds for - com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity@0)/@0x12a354c frame = 2 2023-04-17 15:38:34.560 968-1765 WindowManager system_server V Relayout Window{b12db25 u0 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity}: viewVisibility=0 req=1080x2280 d0 2023-04-17 15:38:34.563 968-3715 WindowManager system_server V Relayout Window{a638d2e u0 Splash Screen com.Wildbytes.ARPullMadridTest}: viewVisibility=8 req=1080x2280 d0 2023-04-17 15:38:34.563 968-3715 WindowManager system_server I Reparenting to leash, surface=Surface(name=a638d2e Splash Screen com.Wildbytes.ARPullMadridTest)/@0x1abfa98, leashParent=Surface(name=ActivityRecord{270a956 u0 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity t41646})/@0xd755423 2023-04-17 15:38:34.563 624-737 SurfaceFlinger surfaceflinger I id=2408 createSurf (0x0),-1 flag=24000, Surface(name=a638d2e Splash Screen com.Wildbytes.ARPullMadridTest)/@0x1abfa98 - animation-leash of window_animation#0 2023-04-17 15:38:34.564 968-3715 WindowManager system_server D makeSurface duration=1 leash=Surface(name=Surface(name=a638d2e Splash Screen com.Wildbytes.ARPullMadridTest)/@0x1abfa98 - animation-leash of window_animation)/@0x62432f1 2023-04-17 15:38:34.568 968-1300 WindowManager system_server I Cancelling animation restarting=false, leash=Surface(name=Surface(name=b12db25 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity)/@0x748f952 - animation-leash of starting_reveal)/@0xa9ad20 2023-04-17 15:38:34.568 968-1300 WindowManager system_server I Reparenting to original parent: Surface(name=ActivityRecord{270a956 u0 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity t41646})/@0xd755423, destroy=false, surface=Surface(name=b12db25 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity)/@0x748f952 2023-04-17 15:38:34.568 968-1300 InputManager-JNI system_server W Input channel object 'a638d2e Splash Screen com.Wildbytes.ARPullMadridTest (client)' was disposed without first being removed with the input manager! 2023-04-17 15:38:34.570 968-1765 WindowManager system_server D finishDrawingWindow: Window{b12db25 u0 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity} mDrawState=HAS_DRAWN 2023-04-17 15:38:34.574 624-624 Layer surfaceflinger I id=2406 removeFromCurrentState Surface(name=b12db25 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity)/@0x748f952 - animation-leash of starting_reveal#0 (147) 2023-04-17 15:38:34.609 968-1765 WindowManager system_server D rotationForOrientation, orientationSource=ActivityRecord{270a956 u0 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity t41646} 2023-04-17 15:38:34.624 968-1015 WindowManager system_server I Reparenting to original parent: Surface(name=ActivityRecord{270a956 u0 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity t41646})/@0xd755423, destroy=true, surface=Surface(name=a638d2e Splash Screen com.Wildbytes.ARPullMadridTest)/@0x1abfa98 2023-04-17 15:38:34.625 968-1015 WindowManager system_server E win=Window{a638d2e u0 Splash Screen com.Wildbytes.ARPullMadridTest EXITING} destroySurfaces: appStopped=false win.mWindowRemovalAllowed=true win.mRemoveOnExit=true win.mViewVisibility=8 caller=com.android.server.wm.ActivityRecord.destroySurfaces:5841 com.android.server.wm.ActivityRecord.destroySurfaces:5822 com.android.server.wm.WindowState.onExitAnimationDone:5965 com.android.server.wm.WindowStateAnimator.onAnimationFinished:242 com.android.server.wm.WindowState.onAnimationFinished:6218 com.android.server.wm.WindowContainer$$ExternalSyntheticLambda0.onAnimationFinished:2 com.android.server.wm.SurfaceAnimator.lambda$getFinishedCallback$0$SurfaceAnimator:113 2023-04-17 15:38:34.626 968-1015 WindowManager system_server I Destroying surface Surface(name=Splash Screen com.Wildbytes.ARPullMadridTest$_1341)/@0xc8762ae called by com.android.server.wm.WindowStateAnimator.destroySurface:987 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:518 com.android.server.wm.WindowState.destroySurfaceUnchecked:4229 com.android.server.wm.WindowState.destroySurface:4203 com.android.server.wm.ActivityRecord.destroySurfaces:5841 com.android.server.wm.ActivityRecord.destroySurfaces:5822 com.android.server.wm.WindowState.onExitAnimationDone:5965 com.android.server.wm.WindowStateAnimator.onAnimationFinished:242 2023-04-17 15:38:34.641 624-624 Layer surfaceflinger I id=2392 removeFromCurrentState Splash Screen com.Wildbytes.ARPullMadridTest$_1341#0 (147) 2023-04-17 15:38:34.641 624-624 Layer surfaceflinger I id=2391 removeFromCurrentState a638d2e Splash Screen com.Wildbytes.ARPullMadridTest#0 (147) 2023-04-17 15:38:34.641 624-624 Layer surfaceflinger I id=2408 removeFromCurrentState Surface(name=a638d2e Splash Screen com.Wildbytes.ARPullMadridTest)/@0x1abfa98 - animation-leash of window_animation#0 (147) 2023-04-17 15:38:34.641 624-624 SurfaceFlinger surfaceflinger I id=2391 Removed a638d2e Splash Screen com.Wildbytes.ARPullMadridTest#0 (147) 2023-04-17 15:38:34.641 624-624 SurfaceFlinger surfaceflinger I id=2392 Removed Splash Screen com.Wildbytes.ARPullMadridTest$_1341#0 (147) 2023-04-17 15:38:34.641 624-624 SurfaceFlinger surfaceflinger I id=2408 Removed Surface(name=a638d2e Splash Screen com.Wildbytes.ARPullMadridTest)/@0x1abfa98 - animation-leash of window_animation#0 (147) 2023-04-17 15:38:34.641 624-624 Layer surfaceflinger I id=2408 Destroyed Surface(name=a638d2e Splash Screen com.Wildbytes.ARPullMadridTest)/@0x1abfa98 - animation-leash of window_animation#0 2023-04-17 15:38:34.641 624-624 Layer surfaceflinger I id=2391 Destroyed a638d2e Splash Screen com.Wildbytes.ARPullMadridTest#0 2023-04-17 15:38:34.643 624-624 Layer surfaceflinger I id=2392 Destroyed Splash Screen com.Wildbytes.ARPullMadridTest$_1341#0 2023-04-17 15:38:34.647 624-624 SurfaceFlinger surfaceflinger D Display 0 HWC layers: CLIENT | 0x78b24a2010 | 0100 | RGBx_8888 | 0.0 0.0 1080.0 2280.0 | 0 0 1080 2280 | Wallpaper BBQ wrapper#0 CLIENT | | 0000 | Unknown | 0.0 0.0 0.0 0.0 | 0 0 1080 2280 | OneUiHome-BlurLayer#0 (backgroundBlurRadius) CLIENT | 0x78b24a26d0 | 0100 | RGBA_8888 | 0.0 0.0 1080.0 2280.0 | 0 0 1080 2280 | com.sec.android.app.launcher/com.sec[...].activities.LauncherActivity$_1815#0 CLIENT | | 0002 | Unknown | 0.0 0.0 0.0 0.0 | 7 109 1008 2223 | Background for SurfaceView - com.Wil[...]ayer.UnityPlayerActivity@5c09653@0#0 CLIENT | 0x78b24a0ab0 | 0100 | RGBA_8888 | 0.0 0.0 1080.0 2280.0 | 7 109 1008 2223 | com.Wildbytes.ARPullMadridTest/com.u[...].player.UnityPlayerActivity$_28797#0 DEVICE | 0x78b24983b0 | 0100 | RGBA_8888 | 0.0 57.0 1080.0 117.0 | 0 0 1080 60 | StatusBar$_1341#0 DEVICE | 0x78b247e910 | 0100 | RGBA_8888 | 0.0 0.0 108 2023-04-17 15:38:34.658 23885-23885 BWU@AudioP...rolManager com.samsung.android.bixby.wakeup I Ph_com.Wildbytes.ARPullMadridTest is now playing [main] 2023-04-17 15:38:34.760 968-3715 WindowManager system_server D container=Task{3392073 #41646 type=standard A=10694:com.Wildbytes.ARPullMadridTest U=0 visible=true mode=fullscreen translucent=false sz=1} 2023-04-17 15:38:34.797 624-624 SurfaceFlinger surfaceflinger D Display 0 HWC layers: SOLID_COLOR | | 0002 | Unknown | 0.0 0.0 0.0 0.0 | 0 0 1080 2280 | Background for SurfaceView - com.Wil[...]ayer.UnityPlayerActivity@5c09653@0#0 DEVICE | 0x78b24a0ab0 | 0100 | RGBA_8888 | 0.0 0.0 1080.0 2280.0 | 0 0 1080 2280 | com.Wildbytes.ARPullMadridTest/com.u[...].player.UnityPlayerActivity$_28797#0 DEVICE | 0x78b24983b0 | 0100 | RGBA_8888 | 0.0 114.0 1080.0 117.0 | 0 0 1080 3 | StatusBar$_1341#0 DEVICE | 0x78b247e910 | 0100 | RGBA_8888 | 0.0 0.0 1080.0 4.0 | 0 2276 1080 2280 | NavigationBar0$_1341#0 2023-04-17 15:38:34.845 624-624 SurfaceFlinger surfaceflinger D Display 0 HWC layers: SOLID_COLOR | | 0002 | Unknown | 0.0 0.0 0.0 0.0 | 0 0 1080 2280 | Background for SurfaceView - com.Wil[...]ayer.UnityPlayerActivity@5c09653@0#0 DEVICE | 0x78b24a0ab0 | 0100 | RGBA_8888 | 0.0 0.0 1080.0 2280.0 | 0 0 1080 2280 | com.Wildbytes.ARPullMadridTest/com.u[...].player.UnityPlayerActivity$_28797#0 2023-04-17 15:38:34.931 968-1385 MdnieScena...rolService system_server D packageName : com.Wildbytes.ARPullMadridTest className : com.unity3d.player.UnityPlayerActivity 2023-04-17 15:38:34.997 624-624 SurfaceFlinger surfaceflinger D Display 0 HWC layers: DEVICE | 0x78b247eeb0 | 0102 | RGBA_8888 | 0.0 0.0 1080.0 2280.0 | 0 0 1080 2280 | SurfaceView - com.Wildbytes.ARPullMa[...]ityPlayerActivity@5c09653@0(BLAST)#0 DEVICE | 0x78b24a0ab0 | 0100 | RGBA_8888 | 0.0 0.0 1080.0 2280.0 | 0 0 1080 2280 | com.Wildbytes.ARPullMadridTest/com.u[...].player.UnityPlayerActivity$_28797#0 2023-04-17 15:38:35.019 968-1014 SGM:GameManager system_server D identifyForegroundApp. com.Wildbytes.ARPullMadridTest, mCurrentUserId: 0, callerUserId: 0 2023-04-17 15:38:35.019 968-1014 SGM:PkgDataHelper system_server D getGamePkgData(). com.Wildbytes.ARPullMadridTest 2023-04-17 15:38:37.016 968-3715 WindowManager system_server V Relayout Window{b12db25 u0 com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity}: viewVisibility=0 req=1080x2280 d0 2023-04-17 15:38:37.024 28797-28797 ViewRootIm...rActivity] com.Wildbytes.ARPullMadridTest I updateBoundsLayer: t = android.view.SurfaceControl$Transaction@cf7717f sc = Surface(name=Bounds for - com.Wildbytes.ARPullMadridTest/com.unity3d.player.UnityPlayerActivity@0)/@0x12a354c frame = 5 2023-04-17 15:38:40.434 968-7805 SGM:GameManager system_server D identifyGamePackage. com.Wildbytes.ARPullMadridTest, mCurrentUserId: 0, callerUserId: 0, callingMethodInfo: com.android.server.ssrm.SortingMachine.isGame(SortingMachine.java:162) 2023-04-17 15:38:40.434 968-7805 SGM:PkgDataHelper system_server D getGamePkgData(). com.Wildbytes.ARPullMadridTest ```

[FIXED] To make it work I need to UNCHECK the Release checkbox in Project Settings-> Player-> Publishing Settings->Minify

Captura de pantalla 2023-04-20 125606

Chris-RH commented 1 year ago

Have you tried a clean new project, with only AVPro, running the demo scene? What device are you testing it on? Can your provide a full logcat please?

Chris-RH commented 1 year ago

I can't see anything AVPro related in the log.

What device are you testing on? Can you select the android codec in the CaptureFromScreen component in the inspector?

androidcodec

vvilarrubla commented 1 year ago

yes, I can do that. Is when the app is running in the Android device when the GUI says Using Video Codec: NONE and Using Audio Codec NONE

I'm testing in a Samsumg s10e Android version 12

image

MorrisRH commented 1 year ago

The full logcat output from when you start the app will help to diagnose this issue, we're in the dark otherwise.

vvilarrubla commented 1 year ago

[FIXED] To make it work I need to UNCHECK the Release checkbox in Project Settings-> Player-> Publishing Settings->Minify

Captura de pantalla 2023-04-20 125606

I'm currently using the TRIAL version, wich I thought that only adds the watermark in the video, but I see that if I check the Release checkbox the plug in does not work and shows that is not using any codec (see the screencapture in the first post)

I gess that AVPro Trial version detects that release checkbox and somehow blocks the plug in when runs in a build.

Can someone confirm that? I've could not find anything related to this in the documentation. Can someone tell me that if I purchase de full version (or mobile version) it would work even with the release version?

Chris-RH commented 1 year ago

If you use Android minify options, AVPro Movie Capture will be stripped out and will not work. The following options need to be added to your proguard configuration file (in Player Settings > Android > Publishing Settings > Build > Custom Proguard File) to prevent AVPro Movie Capture classes from being removed:

-keep class com.renderheads.AVPro.MovieCapture.* { ; }