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

If you try to record for more than a certain amount of time, you cannot get a video. #212

Closed Ogane001 closed 1 year ago

Ogane001 commented 1 year ago

Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE

Describe the bug Occurs when using CpatureFromTexture to shoot render textures; changing DownScale or Quality changes the time it takes to successfully shoot a video.

Your Setup (please complete the following information):

Logs 2022/10/27 10:43:36.587 19585 19607 Info Unity [AVProMovieCapture] Stopping capture 65200 2022/10/27 10:43:36.587 19585 19607 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureBase:StopCapture(Boolean, Boolean, Boolean) 2022/10/27 10:43:36.587 19585 19607 Info Unity Nene.Scene.Gimmicks.d18:MoveNext() 2022/10/27 10:43:36.587 19585 19607 Info Unity System.Runtime.CompilerServices.AsyncVoidMethodBuilder:Start(TStateMachine&) 2022/10/27 10:43:36.587 19585 19607 Info Unity Nene.Scene.Gimmicks.ScreenRecorderController:CaptureEnd() 2022/10/27 10:43:36.587 19585 19607 Info Unity Nene.Scene.Gimmicks.ScreenRecorderController:CheckShootingConditions() 2022/10/27 10:43:36.587 19585 19607 Info Unity Nene.Scene.Gimmicks.d15:MoveNext() 2022/10/27 10:43:36.587 19585 19607 Info Unity System.Runtime.CompilerServices.AsyncVoidMethodBuilder:Start(TStateMachine&) 2022/10/27 10:43:36.587 19585 19607 Info Unity Nene.Scene.Gimmicks.ScreenRecorderController:PushButton() 2022/10/27 10:43:36.587 19585 19607 Info Unity System.Action1:Invoke(T) 2022/10/27 10:43:36.587 19585 19607 Info Unity UniRx.Operators.ThrottleFirstFrame:OnNext(T) 2022/10/27 10:43:36.587 19585 19607 Info Unity UniRx.Operators.Where:OnNext(T) 2022/10/27 10:43:36.587 19585 19607 Info Unity UnityEngine.EventSystems.EventFunction1:Invoke(T1, BaseEventData) 2022/10/27 10:43:36.587 19585 19607 Info Unity UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1) 2022/10/27 10:43:36.587 19585 19607 Info Unity UnityEngine.InputSystem.UI.InputSystemUIInputModule:ProcessPointerButton(ButtonState&, PointerEventData) 2022/10/27 10:43:36.587 19585 19607 Info Unity UnityEngine.InputSystem.UI.InputSystemUIInputModule:ProcessPointer(PointerModel&) 2022/10/27 10:43:36.587 19585 19607 Info Unity UnityE 2022/10/27 10:43:36.592 19585 20376 Verbose MediaWriter Track event err/info msg:101, trackId:1, type:1000,val:0 2022/10/27 10:43:36.592 19585 20376 Info MPEG4Writer Received total/0-length (15521/0) buffers and encoded 15521 frames. - Audio 2022/10/27 10:43:36.592 19585 20376 Info MPEG4Writer Audio track drift time: 0 us 2022/10/27 10:43:36.601 19585 20378 Debug MPEG4Writer reset() 2022/10/27 10:43:36.601 19585 20377 Verbose MediaWriter Track event err/info msg:101, trackId:2, type:1000,val:-1011 2022/10/27 10:43:36.601 19585 20378 Debug MPEG4Writer Video track stopping. Stop source 2022/10/27 10:43:36.601 19585 20378 Debug MPEG4Writer Video track source stopping 2022/10/27 10:43:36.601 19585 20378 Debug MPEG4Writer Video track source stopped 2022/10/27 10:43:36.601 19585 20377 Info MPEG4Writer Received total/0-length (10826/0) buffers and encoded 10825 frames. - Video 2022/10/27 10:43:36.601 19585 20378 Debug MPEG4Writer Video track stopped. Status:0. Stop source 2022/10/27 10:43:36.601 19585 20378 Debug MPEG4Writer Audio track stopping. Stop source 2022/10/27 10:43:36.601 19585 20378 Debug MPEG4Writer Audio track source stopping 2022/10/27 10:43:36.601 19585 20378 Debug MPEG4Writer Audio track source stopped 2022/10/27 10:43:36.602 19585 20378 Debug MPEG4Writer Audio track stopped. Status:0. Stop source 2022/10/27 10:43:36.602 19585 20378 Debug MPEG4Writer Duration from tracks range is [360373696, 360708014] us 2022/10/27 10:43:36.602 19585 20374 Debug MPEG4Writer 0 chunks are written in the last batch 2022/10/27 10:43:36.602 19585 20378 Debug MPEG4Writer WriterThread stopped. Status:0 2022/10/27 10:43:36.602 19585 20378 Info MPEG4Writer Adjust the moov start time from 0 us -> 0 us 2022/10/27 10:43:36.603 19585 20378 Info MPEG4Writer The mp4 file will not be streamable. 2022/10/27 10:43:36.603 19585 20378 Info MPEG4Writer MOOV atom was written to the file 2022/10/27 10:43:36.603 19585 20378 Debug MPEG4Writer release()

Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE Instead email the link to us unitysupport@renderheads.com

Chris-RH commented 1 year ago

Hi @Ogane001,

I'm not entirely sure what you mean.
Are you saying that the recording is stopping before you are asking it to stop. If so, after how long? Or are you saying that it is taking longer than usual to complete writing the file after you have asked it to stop?

Ogane001 commented 1 year ago

If I call StopCapture() 6 minutes after calling StartCapture(), the video is not generated. Under the same conditions, a video can be generated if it is less than 5 minutes old.

Chris-RH commented 1 year ago

@Ogane001,

While you are recording is your device going into sleep mode or screen lock? Is it to conserve power or for optimal performance? Are you setting it to stop automatically after a certain time or stopping it manually?

Ogane001 commented 1 year ago

No locking or sleeping has occurred. I think I am failing when I try to create a large size video, are there any limitations?

Chris-RH commented 1 year ago

The limit is only what your device can handle.
I did 20 minute render texture captures on my S9 yesterday. We have certainly done captures lasting several days before.

Ogane001 commented 1 year ago

Can you please tell us how you set up the component in that case?

Chris-RH commented 1 year ago

I just use the demo scenes for testing

Ogane001 commented 1 year ago

Is there any information on the possible shooting time for each device spec?

Chris-RH commented 1 year ago

What device are you using? Are you able to provide a full logcat? Have you tried the screen capture and camera capture demos and do they have a similar result?

Ogane001 commented 1 year ago

We are using it to develop a smartphone app and need as much information as possible!

Chris-RH commented 1 year ago

Hi, apologies for the delay in response, I've been on holiday.

I'm trying to determine whether it is specific to your device or an issue with the texture capture

What device are you using? Are you able to provide a full logcat? Have you tried the screen capture and camera capture demos and do they have a similar result?

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Chris-RH commented 1 year ago

I'm trying to determine whether it is specific to your device or an issue with the texture capture

What device are you using? Are you able to provide a full logcat? Have you tried the screen capture and camera capture demos and do they have a similar result?

Chris-RH commented 1 year ago

closed due to lack of reply