Skip to content

[Android] 3.3.5\3.3.6 gamma\linear bug causing washed-out video on some emulators #2471

@riceWithoutIce

Description

@riceWithoutIce

Unity version

2022.3.47f

Unity editor platform

Windows

AVPro Video edition

Trial

AVPro Video version

3.3.5 trail \ 3.3.6 trail & pro

Device hardware

mumu emulator: https://mumu.163.com/

Which Android OS version are you using?

8

Unity Graphics API

OpenGLES 3

Video API

MediaPlayer

Texture format

BGRA

Audio output

System Direct

Any other Media Player component configuration required to reproduce the issue.

any configuration with bgra

Which output component(s) are you using?

No response

Any other component configuration required to reproduce the issue.

No response

The issue

hi, i fond 3.3.5 & 3.3.6 has gamme / linear issues on some android emulators, such as mumu(https://mumu.163.com/) / xiaoyao(https://www.xyaz.cn/).

AVPro Video 3.3.5 Android BGRA8 on emulator returns AVPPlayerTextureFlags.None, while 3.3.4 returns AVPPlayerTextureFlags.Linear. In Unity Linear color space this changes PlayerSupportsLinearColorSpace() from false to true, so DisplayUGUI no longer uses Transparent Packed / APPLY_GAMMA, causing washed-out video on some emulators.

looks like Native.AVPPlayerGetTexture has a different return.

logs:
3.3.5: [AVProTextureDBG] flags=None, linear=False, planeCount=1, fmt0=BGRA8, supportsLinear=True
3.3.4: [AVProTextureDBG] flags=Linear, linear=True, planeCount=1, fmt0=BGRA8, supportsLinear=False

3.3.5
Image

3.3.4:
Image

Media information

No response

Logcat output

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions