Skip to content

[Windows] The first frame of the recorded videos are black when using D3D12 #476

@JavenRT

Description

@JavenRT

Unity version

6000.0.51f1

Unity editor platform

Windows

AVPro Movie Capture edition

Full

AVPro Movie Capture Version

5.3.0

Which Windows version(s) are you using?

Windows 11 Pro

Which graphics API(s) are you using?

Direct3D 12

Hardware

13th Gen Intel(R) Core(TM) i9-13900HX 2.20 GHz
Nvidia GTX 4070 8gb
32.0 GB RAM
2.79 TB Storage

Which capture component are you using?

Capture From Screen

Capture mode

Realtime

Which output mode are you using?

Video file

Video codecs

H264

Audio source

Unity

Audio codecs

AAC

Any other component configuration

  • Render Pipeline: HDRP

The issue

The first frames of the recorded videos are black. This flash does not happen in Unity 2023.1.20f1.

  • We already; fade a black overlay out, render a few warm-up frames (explicit Camera.Render() + WaitForEndOfFrame()), skip ~10 frames before arming capture.
  • We tried starting capture on the nextframe boundary, deffering UI/audio/thumnail code: still reproduces the issue
  • We implemented a content-aware gate: the camera was downsampled to a 64x64 temp RT and we performed AsyncGPUReadback to compute average luminance. We only allowed a capture when the frame is non-black. The probe reported that it was non black but the first encoded frames are still black.

The UseWaitForEndOfFrame property had no effect on the issue, same with start delay.

For context these are Tour videos, the camera follows a walking path around a room and records as it does, it's a fairly simple implementation.

A couple of questions:

  1. Is Unity 6 supported? (We are in the process of upgrading to this)
  2. Has the issue been reported before? (I've been unable to find any matching bugs)

I will try and send an email with an example video.

Log output

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions