Search Issue Tracker

Fixed in 2018.1.X

Fixed in 5.6.X, 2017.1.X, 2017.2.X, 2017.3.X

Votes

76

Found in

5.6.2f1

Issue ID

931038

Regression

No

[Android] VideoPlayer stuttering and dropping frames

Video

-

How to reproduce:
1. Open stripped project from OC
2. Deploy app to device
3. Click 'Breathing'
4. Click 'What are the benefits?'
5. Click on the video 'play' icon
-- Observe abysmal video performance

Reproduced on: 5.6.2f1, 5.6.2p4, 2017.1.0p1, 2017.2.0b4, 2017.3.0a1

Issue cause: Multithreaded Rendering, with Multithreaded Rendering disabled video plays smoothly.

Devices under testing:
Samsung SM G900F (Galaxy S5)*, OS:6.0.1, CPU:armeabi-v7a, GPU:Adreno (TM) 330, Build:samsung/kltexx/klte:6.0.1/MMB29M/G900FXXS1CQC1:user/release-keys
Samsung SM G950U*, OS:7.0, CPU:arm64-v8a, GPU:Adreno (TM) 540, Build:samsung/dreamqltesq/dreamqltesq:7.0/NRD90M/G950USQU1AQC8:user/release-keys
Verizon SM G930V*, OS:7.0, CPU:arm64-v8a, GPU:Adreno (TM) 530, Build:Verizon/heroqltevzw/heroqltevzw:7.0/NRD90M/G930VVRU4BQC5:user/release-keys
Xiaomi MI NOTE Pro*, OS:7.0, CPU:arm64-v8a, GPU:Adreno (TM) 430, Build:Xiaomi/leo/leo:7.0/NRD90M/7.7.13:user/release-keys

Fixed in: 5.6.4p3, 2017.1.2p3, 2017.2.0p3, 2017.3.0b9, 2018.1.0a2

  1. Yury-Habets

    Aug 25, 2017

    Our developer has identified the issue is caused by Multithreaded Rendering option enabled. Disabling it may be a workaround for you until we get a proper fix.

Comments (55)

  1. TheJimz

    Sep 06, 2017 17:56

    With the newest patch (5.6.3p2) android video appears to no longer play at all.

  2. Elmo424

    Aug 30, 2017 20:04

    This same issue occurs for me even with Multithreaded Rendering turned off, FYI, so I don't think that is necessarily the cause.

  3. MaydayWorks

    Aug 27, 2017 18:40

    More Information!
    Disabling Multithreaded Rendering option avoided the seriously stuttering, but the video playback frame rate is still very low (lower than 10fps rated by eye). But, again, Pressing the HOME button to return to the launcher desktop, and then switch back to the unity application, the playing frame rate back to normal ( 30 fps looks like), with Multithreaded Rendering disabled.
    The major problem maybe what happened to the Android player when lost and regain the foreground, for the video player. Hoping useful for your developers. And waiting for a fix ASAP.

  4. MaydayWorks

    Aug 25, 2017 20:36

    More Information!
    I tested playing a mp4 file without audio track, but the issue still existed.
    Other thing I find is whether the video player is playing or not, if I press the HOME button to return to the launcher desktop, then switch back to the unity application, the issue disappeared, video playing smoothly until change to another scene. Every time the playing got stutter, return HOME and back the game, the playing recovery smooth.

  5. MaydayWorks

    Aug 24, 2017 16:17

    My 5.6.3p1 also get this problem.
    It seems to be audio decoder recretated nearly each second.
    Logcat like this:
    08-25 00:13:46.112: I/OMXClient(26110): MuxOMX ctor
    08-25 00:13:46.118: I/ACodec(26110): Successfully allocate component [OMX.google.aac.decoder]
    08-25 00:13:47.089: I/OMXClient(26110): MuxOMX ctor
    08-25 00:13:47.096: I/ACodec(26110): Successfully allocate component [OMX.google.aac.decoder]
    08-25 00:13:48.085: I/OMXClient(26110): MuxOMX ctor
    08-25 00:13:48.092: I/ACodec(26110): Successfully allocate component [OMX.google.aac.decoder]
    08-25 00:13:49.083: I/OMXClient(26110): MuxOMX ctor
    08-25 00:13:49.091: I/ACodec(26110): Successfully allocate component [OMX.google.aac.decoder]
    08-25 00:13:50.095: I/OMXClient(26110): MuxOMX ctor
    08-25 00:13:50.103: I/ACodec(26110): Successfully allocate component [OMX.google.aac.decoder]
    08-25 00:13:51.108: I/OMXClient(26110): MuxOMX ctor
    08-25 00:13:51.114: I/ACodec(26110): Successfully allocate component [OMX.google.aac.decoder]
    08-25 00:13:52.095: I/OMXClient(26110): MuxOMX ctor
    08-25 00:13:52.101: I/ACodec(26110): Successfully allocate component [OMX.google.aac.decoder]
    08-25 00:13:53.040: I/OMXClient(26110): MuxOMX ctor
    08-25 00:13:53.048: I/ACodec(26110): Successfully allocate component [OMX.google.aac.decoder]
    ....

    each time it puts a "MuxOMX ctor..." log, the playing back get stutter

  6. mobiusmedia

    Aug 24, 2017 10:32

    Hoping to see this fixed asap as this is causing major issues with a client.

  7. Pzenarch

    Aug 23, 2017 14:52

    I'm experiencing the same issue with Unity 2017.1.0p4 and 2017.2.0b8, but only with high resolution, high framerate videos. The videos I used to triggered the problem were 3840x1920 at 50fps. It should be noted that the EasyMovieTexture plugin available on the asset store is able to handle these videos without the same symptoms.

  8. Ederic

    Aug 22, 2017 08:01

    I'm having the same issue, Unity 5.6.3p1, really poor performance when I push playback

  9. cdaniel09

    Aug 21, 2017 16:02

    I also have this problem, video playback is stuttering. S8, GearVR. 2017.1.0f3. Will attempt to revert to 5.6.1p1

  10. TillmaniaLtd

    Aug 15, 2017 17:59

    Im having the same issue with Unity iOS 2017.1

    5.6.1 has no VideoPlayer playback stutter issues.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.