RenderHeads / UnityPlugin-AVProVideo

AVPro Video is a multi-platform Unity plugin for advanced video playback
https://www.renderheads.com/products/avpro-video/
237 stars 28 forks source link

NotchLC Alpha Precision #1961

Closed Kalumo closed 1 month ago

Kalumo commented 2 months ago

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

Chris-RH commented 2 months ago

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.

Kalumo commented 2 months ago

After upgrading to 2.9 the issue still persists.

Chris-RH commented 2 months ago

Are you able to send us a sample of your test video please? unitysupport@renderheads.com

Kalumo commented 2 months ago

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

Chris-RH commented 2 months ago

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.

Kalumo commented 2 months ago

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.

RichRH commented 1 month ago

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,

Ste-RH commented 1 month ago

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

Kalumo commented 1 month ago

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