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

The video freezes when playing 4K 60fps video for a while

Open Aunter1992 opened this issue 1 year ago • 5 comments

Problem description:

1、When using the ExoPlayer API on the Android platform to play local 4K60 video, the video freezes after playing for several minutes, but the audio continues to play normally. 2、In the Unity scene, only the AVPro Video plugin is used. 3、Avprovideo version, ultra 3.0.3

Device (which devices are you having the issue with - model, OS version number):

Model: Galaxy s20 5G ; OSVersion:Android 13

Media (tell us about your videos - number of videos, resolution, codec, frame-rate, example URLs):

codec:h264 resolution:3840x2160 url:https://www.alipan.com/s/SmXc5c9QiBo frame-rate:60

System Information:

AVPro Video: v3.0.3 (plugin v3.0.0f1-ultra) Target Platform: Android Unity: v2021.3.16f1c1 WindowsEditor OS: Desktop - 82JK (LENOVO) - Windows 11 (10.0.22631) 64bit - ChineseSimplified CPU: 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz - 16 threads - 32535KB GPU: NVIDIA GeForce RTX 3050 Ti Laptop GPU - NVIDIA - Direct3D 11.0 [level 11.1] - 3977KB - 16384

Aunter1992 avatar Jun 25 '24 02:06 Aunter1992

Which rendering API are you using? (Vulkan or OpenGLES) If you're using OpenGLES, have you set the texture mode to YCbCr 420 OES?

MorrisRH avatar Jun 25 '24 08:06 MorrisRH

OpenGLES, used bgra。

Aunter1992 avatar Jun 25 '24 08:06 Aunter1992

I tried OES, but the same situation still occurs."

Aunter1992 avatar Jun 25 '24 08:06 Aunter1992

  1. Is it reproducible in a new project running only AVPro Video?
  2. Can you send us the file you are testing with please to [email protected]
  3. Can you provide a full logcat in txt format

Chris-RH avatar Jun 25 '24 12:06 Chris-RH

  1. Is it reproducible in a new project running only AVPro Video?
  2. Can you send us the file you are testing with please to [email protected]
  3. Can you provide a full logcat in txt format
  1. yes,It is reproducible in a new project running only AVPro Video 2.you can download 4k 60 from here: https://4kmedia.org/tag/60-fps/

logAvpro.zip

Aunter1992 avatar Jun 26 '24 02:06 Aunter1992

@Chris-RH I have the same issue on Meta Quest 3. The video plays for 2–10 seconds and freezes. I use YCbCr 420 OES. With BGRA mode video plays well! And it reproduces on some videos. I've not found parameters that affect reproduce of the issue.

AVPro Video: v3.0.5 (plugin v3.0.5-ultra) Target Platform: Android Unity: v2022.3.15f1 WindowsEditor

Reproduced on this https://deovr.com/kdzi6c I can attach a video with the issue if you need one.

rrenderr avatar Jul 04 '24 15:07 rrenderr

I think this is the fallout from fixing #1882 with version 3.0.3. I've added some checks for api version so hopefully this will be fixed for you with the next release (version 3.0.6).

MorrisRH avatar Jul 05 '24 08:07 MorrisRH

More details.

  • Added full log FullLog.log
  • After a video freezes, audio continues to play.
  • Very rare 4k+ videos show white screen with vertical lines

When do you plan to release version 3.0.6?

rrenderr avatar Jul 05 '24 08:07 rrenderr

@rrenderr planning to get 3.0.6 released later today

MorrisRH avatar Jul 05 '24 09:07 MorrisRH

AVPro Video version 3.0.6 has been released. Please let us know if it has not fixed your issue.

Chris-RH avatar Jul 08 '24 06:07 Chris-RH

@Chris-RH This one works fine. Thank you! But I had other rare issues, maybe connected with it. I opened new ticket https://github.com/RenderHeads/UnityPlugin-AVProVideo/issues/1935

rrenderr avatar Jul 08 '24 16:07 rrenderr