Skip to content

[Android] Optimization for slow AVPro Video initialization on Android (Device: Contixo K102) #2466

@superbderrick

Description

@superbderrick

Unity version

6000.3.1f1

Unity editor platform

macOS

AVPro Video edition

Ultra

AVPro Video version

3.3.4

Device hardware

Contixo K102

Which Android OS version are you using?

12

Unity Graphics API

OpenGLES 3

Video API

media3/ExoPlayer

Texture format

BGRA

Audio output

System Direct

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

It simply plays video files locally.

Which output component(s) are you using?

No response

Any other component configuration required to reproduce the issue.

It simply plays video files locally.

The issue

Hello RenderHeads Support Team,

I’m currently experiencing a significant initialization delay and decoding issue when using AVPro Video (v3.3.4-ultra) on Android.

I’ve attached the full logs covering the entire startup and playback process.

The initialization phase takes several seconds (notably during UnityPluginLoad and setupEglContext), which makes the app appear frozen.
After that, playback enters a recurring error loop with messages such as ensureDecoderState return 11 and detachBuffer issues.

It seems like the hardware decoder (c2.allwinner.avc.decoder) may be failing to properly allocate buffers for the rendering surface.

Request

Could you advise on:
• Any way to reduce or optimize initialization time
• Recommended settings or approaches to avoid hardware decoder conflicts
• Whether forcing a different decoding path (e.g. software or fallback) would be more stable on low-end devices

The target device is relatively low-spec (ARMv7, 2GB RAM), so I’m particularly interested in any practical optimization or workaround that can improve startup performance.

Thanks in advance for your help

log.txt

Media information

No response

Logcat output

Metadata

Metadata

Assignees

Labels

AndroidAndroid platformtriageNeeds triage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions