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

Long scene uptime causes pause on StartCapture #69

Closed echarles-dev closed 3 years ago

echarles-dev commented 4 years ago

I'm debugging an issue which presents as follows (from a legacy project):

System Setup

To Reproduce I have a minimal project that I can provide if it's helpful. In the project, the STR are as follows:

  1. Open the application
  2. Wait ~2 minutes
  3. Initiate capture
  4. Observe long pause

Other Notes/Things I've Tried

CaptureFromCameraSettings2of2 CaptureFromCameraSettings1of2

Thanks for any insight!

AndrewRH commented 4 years ago

Thanks for this report - how long a pause are we talking about here?

echarles-dev commented 4 years ago

If I let the program run for 5 minutes or so, I see a pause of 4-5 seconds. If I run it for less than a minute, the pause is less than a second (totally fine and expected).

On Tue, Aug 25, 2020 at 6:00 PM Andrew notifications@github.com wrote:

Thanks for this report - how long a pause are we talking about here?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/RenderHeads/UnityPlugin-AVProMovieCapture/issues/69#issuecomment-680290633, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIQUDTMQ6MFMYZSVEEEUSS3SCQX7BANCNFSM4QLCROHQ .

--

http://www.boxfort.com/

Emily Charles | Software Engineer 781.551.3500

Box Fort 375 Vanderbilt Ave Norwood, MA www.boxfort.com

echarles-dev commented 4 years ago

I have an update on this. The problem seems to be caused by the very specific case where a CaptureFromCamera component uses a Camera in the scene as input whose Target Display does not exist in the real world. In my case, I have three displays (2 physical, 1 virtual), and the source camera was targeting Display 4.

I'll also note that the problem camera is pointed at the output of an AVProLiveCamera component, but I didn't do enough testing to determine if that's a factor or not.

I don't think I know now whether this is actually a bug in the CaptureFromCamera component or something else - maybe Unity itself, my graphics card, or an interaction between the live camera and the recording component - or maybe this is working as designed, and you should just not point a camera at a nonexistent display. Happy to close this thread if you don't think it warrants further investigation.

AndrewRH commented 4 years ago

Ohhhhh interesting! well thanks for the feedback - that's really appreciated! Okay I will just try a few things and then if I can't find anything I will close this thread.

stale[bot] commented 3 years 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.

stale[bot] commented 3 years ago

This issue has been automatically closed because it has not had recent activity. If you wish to continue this issue, then please create a new issue as we do not monitor closed issues.