UnityPlugin-AVProVideo icon indicating copy to clipboard operation
UnityPlugin-AVProVideo copied to clipboard

NotchLC Alpha Precision

Open Kalumo opened this issue 1 year ago • 6 comments

Problem description:

Loading up a video with NotchLC Codec and alpha channel displays unexpected results. The video itself is simply a moving color shape with an alpha gradient.

Playing with the Media Player it appears that there are only 4 steps of alpha. Something like alpha = 1.0, 0.66, 0.33, 0.0.

The same video shows up fine with other video players.

Device (which devices are you having the issue with - model, OS version number):

Media (tell us about your videos - number of videos, resolution, codec, frame-rate, example URLs):

1 video, 1890 x 1620 px, NotchLC, 60 fps

System Information:

AVPro Video: v2.3.1 (plugin v2.3.0f1-ultra) Target Platform: Standalone Unity: v2022.3.9f1 WindowsEditor OS: Desktop - HP Z4 G4 Workstation (HP) - Windows 10 (10.0.19045) 64bit - German CPU: Intel(R) Xeon(R) W-2225 CPU @ 4.10GHz - 8 threads - 130799KB GPU: NVIDIA RTX A6000 - NVIDIA - Direct3D 11.0 [level 11.1] - 48571KB - 16384

Kalumo avatar Aug 07 '24 12:08 Kalumo

Hi,

AVPro Video version 2 has been depreciated and will no longer be receiving any updates. Please ensure that you are using the latest version (2.9.3) and retest.

Chris-RH avatar Aug 07 '24 12:08 Chris-RH

After upgrading to 2.9 the issue still persists.

Kalumo avatar Aug 07 '24 15:08 Kalumo

Are you able to send us a sample of your test video please? [email protected]

Chris-RH avatar Aug 08 '24 08:08 Chris-RH

I sent a sample with the issue number in the subject.

Kalumo avatar Aug 08 '24 08:08 Kalumo

Hi,

We've received the email, thank you.
Our dev team is on annual leave for the duration of the month, so will have a chance to look at it when they get back. Please note: AVPro Video version 2 has been depreciated and is no longer receiving any updates. If there are any fixes, they will only be available in AVPro Video version 3.

Chris-RH avatar Aug 09 '24 11:08 Chris-RH

Thank you for the message. Looking forward to hearing back. If the issue is indeed a bug that has been fixed in version 3, please let us know.

Kalumo avatar Aug 09 '24 13:08 Kalumo

Hi @Kalumo,

Thanks for reporting this - I've looked into it and found we were indeed only using 2-bits of alpha (10-bits per colour channel) leading to the banding you're seeing.

I've added support for the full 8-bits of alpha now (still 10-bits per colour channel) if the video contains an alpha channel, but this does now double the texture memory requirements. This fix will be in the next release.

Cheers,

RichRH avatar Sep 04 '24 14:09 RichRH

AVPro Video v3.0.10 has now been released. Do let us know if this fixes the issue for you.

Ste-RH avatar Sep 06 '24 14:09 Ste-RH

Thank you for your support. The issue is indeed fixed in 3.0.10.

Kalumo avatar Sep 13 '24 10:09 Kalumo