Skip to content

[Android] using the Mali GPU with avpro, it fails to play videos normally, showing a black screen. #2212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
yangjiamingQAQ opened this issue Apr 24, 2025 · 5 comments
Assignees
Labels
Android Android platform triage Needs triage

Comments

@yangjiamingQAQ
Copy link

Unity version

2022.3.50f1

Unity editor platform

Windows

AVPro Video edition

Core

AVPro Video version

3.2.3

Device hardware

huawei mate40 pro(Mali-G78)

Which Android OS version are you using?

10

Unity Graphics API

Vulkan

Video API

MediaPlayer

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?

Playlist MediaPlayer

Any other component configuration required to reproduce the issue.

Huawei mate Series, Mali GPU

The issue

When using the Mali GPU with avpro, it fails to play videos normally, showing a black screen. However, it does not report any errors and does not affect the project process. I use Huawei Mate40 Pro, and it use Mali-G78 GPU. Here is some logs:

[AVProVideo] Initialising AVPro Video v3.2.3 (native plugin v3.2.3-core) on Mali-G78/Vulkan 1.1.0 [0x08800000] (MT True) on Android
[AVProVideo] Opening jar:file:.mp4 (offset 0) with API ExoPlayer
[VideoPlayer1] jar:file:
.mp4 StartedBuffering
[VideoPlayer1] jar:file:.mp4 ResolutionChanged
[VideoPlayer1] jar:file:
.mp4 FinishedBuffering
[Log] [AVPro]jar:file:.mp4 ready to Play
[VideoPlayer1] jar:file:
.mp4 MetaDataReady
[VideoPlayer1] jar:file:.mp4 StartedBuffering
[VideoPlayer1] jar:file:
.mp4 Started
[VideoPlayer1] jar:file:.mp4 FinishedBuffering
[VideoPlayer1] jar:file:
.mp4 FirstFrameReady

Media information

No response

Logcat output

[AVProVideo] Initialising AVPro Video v3.2.3 (native plugin v3.2.3-core) on Mali-G78/Vulkan 1.1.0 [0x08800000] (MT True) on Android
[AVProVideo] Opening jar:file:***********.mp4 (offset 0) with API ExoPlayer
[VideoPlayer1] jar:file:***********.mp4 StartedBuffering
[VideoPlayer1] jar:file:***********.mp4 ResolutionChanged
[VideoPlayer1] jar:file:***********.mp4 FinishedBuffering
[Log] [AVPro]jar:file:***********.mp4 ready to Play
[VideoPlayer1] jar:file:***********.mp4 MetaDataReady
[VideoPlayer1] jar:file:***********.mp4 StartedBuffering
[VideoPlayer1] jar:file:***********.mp4 Started
[VideoPlayer1] jar:file:***********.mp4 FinishedBuffering
 [VideoPlayer1] jar:file:***********.mp4 FirstFrameReady
@yangjiamingQAQ yangjiamingQAQ added the triage Needs triage label Apr 24, 2025
@Chris-RH Chris-RH added the Android Android platform label Apr 24, 2025
@Chris-RH
Copy link
Contributor

hmm, this doesn't sound right.
Can you reproduce this in a new project running only the AVPro Video demo scenes?
Can you reproduce this if you switch from Vulkan to openGLES?
Can you provide a full, unfiltered logcat?
Where have you stored your video? Is it in streaming assets or Application.persistentDataPath?

@yangjiamingQAQ
Copy link
Author

hmm, this doesn't sound right. Can you reproduce this in a new project running only the AVPro Video demo scenes? Can you reproduce this if you switch from Vulkan to openGLES? Can you provide a full, unfiltered logcat? Where have you stored your video? Is it in streaming assets or Application.persistentDataPath?

Almost all Huawei Kirin chip(Mali GPU) phones can reproduce it(other chips can work normally), and it doesn't work either when switched to openGLES.

I store my video in streaming assets.

use openGLES's log:
[2025-04-23 16:20:31.60] [Log] [Info] [None] 16:20:31.607 0 [VideoPlayer][1]Try OpenVideo: Video/Login/Game.mp4, loop: False, autoPlay:True
[2025-04-23 16:20:31.65] [Log] playerID: 0000355A
[2025-04-23 16:20:31.65] [Log] CreateCommandBuffers - flags: 00000000
[2025-04-23 16:20:31.65] [Log] flags: 0000355A
[2025-04-23 16:20:31.65] [Log] [AVProVideo] Initialising AVPro Video v3.2.3 (native plugin v3.2.3-core) on Mali-G78/OpenGL ES 3.2 v1.r34p0-01eac0.a1b116bd871d46ef040e8feef9ed691e (MT True) on Android
[2025-04-23 16:20:31.65] [Log] [Helper] video path: jar:file:///data/app/~~sseXdVLdCc3UA6QnV-n5GA==/com.unitygame.mygame-DRqxZr0UxsNQQAoD485Bkg==/base.apk!/assets/Video/Login/Game_LOD0.mp4
[2025-04-23 16:20:31.65] [Log] [AVProVideo] Opening jar:file:///data/app/~~sseXdVLdCc3UA6QnV-n5GA==/com.unitygame.mygame-DRqxZr0UxsNQQAoD485Bkg==/base.apk!/assets/Video/Login/Game_LOD0.mp4 (offset 0) with API ExoPlayer
[2025-04-23 16:20:31.65] [Log] [Info] [None] 16:20:31.658 0 [VideoPlayer][1]OpenVideo: Video/Login/Game.mp4, fullPath:jar:file:///data/app/~~sseXdVLdCc3UA6QnV-n5GA==/com.unitygame.mygame-DRqxZr0UxsNQQAoD485Bkg==/base.apk!/assets/Video/Login/Game_LOD0.mp4, result: True
[2025-04-23 16:20:31.65] [Log] [Info] [None] 16:20:31.659 0 [UIManager][Anim]Splash/SplashWin play fade in, length: 0
[2025-04-23 16:20:31.65] [Log] [Info] [None] 16:20:31.659 0 [UIManager][Anim]Splash/SplashWin enter idle state
[2025-04-23 16:20:31.66] [Log] [Info] [None] 16:20:31.660 0 Version::LoadBattleVersion, s_battleVersion=unityClient.16488
[2025-04-23 16:20:31.66] [Log] MediaPlayer MediaPlayer_1 start, auto play on start: True
[2025-04-23 16:20:31.81] [Log] [Info] [None] 16:20:31.815 0 [VideoPlayer1] jar:file:///data/app/~~sseXdVLdCc3UA6QnV-n5GA==/com.unitygame.mygame-DRqxZr0UxsNQQAoD485Bkg==/base.apk!/assets/Video/Login/Game_LOD0.mp4 StartedBuffering
[2025-04-23 16:20:32.08] [Log] [Info] [None] 16:20:32.081 0 [VideoPlayer1] jar:file:///data/app/~~sseXdVLdCc3UA6QnV-n5GA==/com.unitygame.mygame-DRqxZr0UxsNQQAoD485Bkg==/base.apk!/assets/Video/Login/Game_LOD0.mp4 ResolutionChanged
[2025-04-23 16:20:32.17] [Log] [Info] [None] 16:20:32.179 0 [VideoPlayer1] jar:file:///data/app/~~sseXdVLdCc3UA6QnV-n5GA==/com.unitygame.mygame-DRqxZr0UxsNQQAoD485Bkg==/base.apk!/assets/Video/Login/Game_LOD0.mp4 FinishedBuffering
[2025-04-23 16:20:32.21] [Log] [AVPro]jar:file:///data/app/~~sseXdVLdCc3UA6QnV-n5GA==/com.unitygame.mygame-DRqxZr0UxsNQQAoD485Bkg==/base.apk!/assets/Video/Login/Game_LOD0.mp4 ready to Play
[2025-04-23 16:20:32.24] [Log] [Info] [None] 16:20:32.245 0 [VideoPlayer1] jar:file:///data/app/~~sseXdVLdCc3UA6QnV-n5GA==/com.unitygame.mygame-DRqxZr0UxsNQQAoD485Bkg==/base.apk!/assets/Video/Login/Game_LOD0.mp4 MetaDataReady
[2025-04-23 16:20:32.27] [Log] [Info] [None] 16:20:32.279 0 [VideoPlayer1] jar:file:///data/app/~~sseXdVLdCc3UA6QnV-n5GA==/com.unitygame.mygame-DRqxZr0UxsNQQAoD485Bkg==/base.apk!/assets/Video/Login/Game_LOD0.mp4 Started

@Chris-RH
Copy link
Contributor

Chris-RH commented Apr 25, 2025

  1. Can you reproduce this in a new project running only the AVPro Video demo scenes?
  2. How big are your files? Streaming assets is not the best place to store files.
  3. Are any of these devices running HarmonyOS?
  4. Please update to AVPro Video version 3.2.5 and restest.

@Chris-RH
Copy link
Contributor

Chris-RH commented May 1, 2025

Can you provide the above info please.

@Chris-RH
Copy link
Contributor

Chris-RH commented May 7, 2025

closing due to lack of reply

@Chris-RH Chris-RH closed this as completed May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android Android platform triage Needs triage
Projects
None yet
Development

No branches or pull requests

2 participants