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

[Android] Audio slow and choppy when playing AAC LC SBR PS (HE-AAC v2) using Unity Audio.

Open gylesis opened this issue 3 months ago • 2 comments

Unity version

2022.3.54

Unity editor platform

Windows

AVPro Video edition

Ultra

AVPro Video version

3.2.8

Device hardware

Pixel 6a

Which Android OS version are you using?

15

Unity Graphics API

OpenGLES 3

Video API

media3/ExoPlayer

Texture format

BGRA

Audio output

Unity

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

No response

Which output component(s) are you using?

No response

Any other component configuration required to reproduce the issue.

No response

The issue

This bug reproduce in sample project with preconfigured Audio Output to 'Unity', while it does work correct with 'System Direct' mode. We investigated that this issue happen on videos with low bit rate (~32 kbit/sec, mono, 22 kHz sample rate).

Media information

Have been sent to support email

Logcat output


gylesis avatar Sep 15 '25 08:09 gylesis

Also, it works correct on version 2.7.3, but from 3.0.0 work incorrect

gylesis avatar Sep 15 '25 08:09 gylesis

We've been able to reproduce it. There does seem to be an issue with Exoplayer misreporting the audio. We've tried the older version of AVPro, and while it plays fine the first time, subsequent plays are slow and choppy. We'll have to see if there is anything that we can do about this. In the mean while, I suggest using System Direct to play these videos :)

Chris-RH avatar Sep 16 '25 17:09 Chris-RH