Search Issue Tracker

Fixed in 2018.1

Fixed in 5.6, 2017.1, 2017.2, 2017.3

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. Response avatar

    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 (50)

  1. F74a5d0646a3fe1aebde2c436e7a3c9c?d=mm

    TheJimz

    Sep 25, 2017 20:59

    I am no longer seeing this issue with patch 5.6.3p4.

  2. F74a5d0646a3fe1aebde2c436e7a3c9c?d=mm

    TheJimz

    Sep 19, 2017 00:35

    The issue of the missing shader is a separate issue/bug, the stuttering remains a problem.

  3. 4f9c14e3e446fa58cb2a9fb401e46adc?d=mm

    Raneyd

    Sep 15, 2017 14:03

    Could not find video decode shader pass RGBAExternal_To_RGBA in shader Hidden/VideoDecodeAndroid
    Could not find video decode shader pass RGBASplitExternal_To_RGBA in shader Hidden/VideoDecodeAndroid
    AndroidVideoMedia::VideoDecoder::Blit failed. Decode shader probably unsupported.

    I get this error too

  4. F74a5d0646a3fe1aebde2c436e7a3c9c?d=mm

    TheJimz

    Sep 08, 2017 18:14

    Again video used to work just fine on 5.6.1p1, this is a regression.
    LogCat from patch 5.6.3p2 (Kindle Fire 5th Gen)

    Could not find video decode shader pass RGBAExternal_To_RGBA in shader Hidden/VideoDecodeAndroid
    Could not find video decode shader pass RGBASplitExternal_To_RGBA in shader Hidden/VideoDecodeAndroid
    AndroidVideoMedia::VideoDecoder::Blit failed. Decode shader probably unsupported.

  5. Dacd43c19cb761018a070c7abbf3f5eb?d=mm

    jsadler

    Sep 07, 2017 17:44

    I get audio but black screen video on android video player. Have tried numerous formats transcoding on and off.

    Getting error in logcat: Could not find video decode shader pass......Shader probably not supported on this platform.

    Device is Samsung Tab A6 (SM-T280) GLES 2 only.

  6. F74a5d0646a3fe1aebde2c436e7a3c9c?d=mm

    TheJimz

    Sep 06, 2017 17:56

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

  7. 0e13f8f996c795439a7181cfbc6b25e6?d=mm

    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.

  8. 0392952f7d73db01a775f193233b465a?d=mm

    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.

  9. 0392952f7d73db01a775f193233b465a?d=mm

    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.

  10. 0392952f7d73db01a775f193233b465a?d=mm

    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

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.