google / ExoPlayer

This project is deprecated and stale. The latest ExoPlayer code is available in https://github.com/androidx/media
https://developer.android.com/media/media3/exoplayer
Apache License 2.0
21.74k stars 6.03k forks source link

Amazon Firestick 4K (AFTMM) freezes on MPEG TS stream #5243

Closed needz closed 5 years ago

needz commented 5 years ago

Issue description

When running certain stream on newly released Amazon Firestick 4K, the stream runs for 5 seconds, then the picture freezes, while the sound is still running. After some while, the sound disappears too and it totally freezes the app, where you can only exit to the home screen.

Also, there is nothing suspicious going on in the logcat.

Reproduction steps

Set to allowNonIdrKeyframes = true Run the stream provided

Link to test content

Please provide e-mail address, where I could send a test link for this issue.

Version of ExoPlayer being used

ExoPlayer 2.9.2

Device(s) and version(s) of Android being used

Amazon Firestick 4K (AFTMM)

A full bug report captured from the device

2018-12-11 13:22:00.480 5283-5283/? I/art: Late-enabling -Xcheck:jni
2018-12-11 13:22:00.774 5283-5283/com.google.android.exoplayer2.demo W/System: ClassLoader referenced unknown path: /data/app/com.google.android.exoplayer2.demo-1/lib/arm
2018-12-11 13:22:00.774 5283-5283/com.google.android.exoplayer2.demo W/System: ClassLoader referenced unknown path: /system/priv-app/MetricsApi/lib/arm
2018-12-11 13:22:00.802 5283-5283/com.google.android.exoplayer2.demo I/FrameworkJumpTable: Successfully loaded all classes
2018-12-11 13:22:00.817 5283-5283/com.google.android.exoplayer2.demo I/FrameworkJumpTable: Successfully loaded all methods
2018-12-11 13:22:00.821 5283-5283/com.google.android.exoplayer2.demo I/FrameworkJumpTable: Successfully loaded all fields
2018-12-11 13:22:00.821 5283-5283/com.google.android.exoplayer2.demo I/FrameworkJumpTable: Successfully loaded all constructors
2018-12-11 13:22:00.822 5283-5283/com.google.android.exoplayer2.demo I/InstantRun: starting instant run server: is main process
2018-12-11 13:22:00.824 5283-5283/com.google.android.exoplayer2.demo V/InstantRun: Starting server socket listening for package com.google.android.exoplayer2.demo on android.net.LocalSocketAddress@c7d78de
2018-12-11 13:22:00.824 5283-5283/com.google.android.exoplayer2.demo V/InstantRun: Started server for package com.google.android.exoplayer2.demo
2018-12-11 13:22:01.020 5283-5306/com.google.android.exoplayer2.demo I/OpenGLRenderer: Initialized EGL, version 1.4
2018-12-11 13:22:01.020 5283-5306/com.google.android.exoplayer2.demo D/OpenGLRenderer: Swap behavior 2
2018-12-11 13:22:06.769 5283-5283/com.google.android.exoplayer2.demo D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2018-12-11 13:22:06.887 5283-5283/com.google.android.exoplayer2.demo I/ExoPlayerImpl: Init 2b4c04e [ExoPlayerLib/2.9.2] [mantis, AFTMM, Amazon, 25]
2018-12-11 13:22:06.953 5283-5283/com.google.android.exoplayer2.demo D/EventLogger: state [0.02, 0.00, window=0, true, BUFFERING]
2018-12-11 13:22:06.964 5283-5283/com.google.android.exoplayer2.demo D/EventLogger: timelineChanged [0.03, 0.00, window=0, periodCount=1, windowCount=1, reason=PREPARED
2018-12-11 13:22:06.964 5283-5283/com.google.android.exoplayer2.demo D/EventLogger:   period [?]
2018-12-11 13:22:06.964 5283-5283/com.google.android.exoplayer2.demo D/EventLogger:   window [?, false, false]
2018-12-11 13:22:06.964 5283-5283/com.google.android.exoplayer2.demo D/EventLogger: ]
2018-12-11 13:22:07.001 5283-5283/com.google.android.exoplayer2.demo D/EventLogger: surfaceSizeChanged [0.06, 0.00, window=0, 1920, 1080]
2018-12-11 13:22:07.076 5283-5306/com.google.android.exoplayer2.demo D/OpenGLRenderer: endAllActiveAnimators on 0x9dcf6880 (ExpandableListView) with handle 0x89e9ce50
2018-12-11 13:22:07.085 5283-5283/com.google.android.exoplayer2.demo D/EventLogger: mediaPeriodCreated [0.15, 0.00, window=0, period=0]
2018-12-11 13:22:07.087 5283-5283/com.google.android.exoplayer2.demo D/EventLogger: loading [0.15, 0.00, window=0, period=0, true]
2018-12-11 13:22:09.329 5283-5288/com.google.android.exoplayer2.demo I/art: Do partial code cache collection, code=30KB, data=22KB
2018-12-11 13:22:09.330 5283-5288/com.google.android.exoplayer2.demo I/art: After code cache collection, code=30KB, data=22KB
2018-12-11 13:22:09.330 5283-5288/com.google.android.exoplayer2.demo I/art: Increasing code cache capacity to 128KB
2018-12-11 13:22:09.709 5283-5326/com.google.android.exoplayer2.demo W/VideoCapabilities: Unrecognized profile/level 1/32 for video/mp4v-es
2018-12-11 13:22:09.709 5283-5326/com.google.android.exoplayer2.demo W/VideoCapabilities: Unrecognized profile/level 32768/2 for video/mp4v-es
2018-12-11 13:22:09.709 5283-5326/com.google.android.exoplayer2.demo W/VideoCapabilities: Unrecognized profile/level 32768/64 for video/mp4v-es
2018-12-11 13:22:09.725 5283-5326/com.google.android.exoplayer2.demo W/VideoCapabilities: Unsupported mime video/dolby-vision
2018-12-11 13:22:09.727 5283-5326/com.google.android.exoplayer2.demo W/VideoCapabilities: Unsupported mime video/dolby-vision
2018-12-11 13:22:09.730 5283-5326/com.google.android.exoplayer2.demo W/VideoCapabilities: Unsupported mime video/dolby-vision
2018-12-11 13:22:09.733 5283-5326/com.google.android.exoplayer2.demo W/VideoCapabilities: Unsupported mime video/dolby-vision
2018-12-11 13:22:09.735 5283-5326/com.google.android.exoplayer2.demo W/VideoCapabilities: Unsupported mime video/dolby-vision
2018-12-11 13:22:09.738 5283-5326/com.google.android.exoplayer2.demo W/VideoCapabilities: Unsupported mime video/dolby-vision
2018-12-11 13:22:09.756 5283-5326/com.google.android.exoplayer2.demo W/VideoCapabilities: Unrecognized profile/level 0/0 for video/mpeg2
2018-12-11 13:22:09.756 5283-5326/com.google.android.exoplayer2.demo W/VideoCapabilities: Unrecognized profile/level 0/2 for video/mpeg2
2018-12-11 13:22:09.756 5283-5326/com.google.android.exoplayer2.demo W/VideoCapabilities: Unrecognized profile/level 0/3 for video/mpeg2
2018-12-11 13:22:09.772 5283-5326/com.google.android.exoplayer2.demo I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
2018-12-11 13:22:09.790 5283-5283/com.google.android.exoplayer2.demo D/EventLogger: decoderEnabled [2.85, 0.00, window=0, period=0, video]
2018-12-11 13:22:09.792 5283-5283/com.google.android.exoplayer2.demo D/EventLogger: decoderEnabled [2.86, 0.00, window=0, period=0, audio]
2018-12-11 13:22:09.792 5283-5283/com.google.android.exoplayer2.demo D/EventLogger: tracksChanged [2.86, 0.00, window=0, period=0, 
2018-12-11 13:22:09.792 5283-5283/com.google.android.exoplayer2.demo D/EventLogger:   Renderer:0 [
2018-12-11 13:22:09.793 5283-5283/com.google.android.exoplayer2.demo D/EventLogger:     Group:0, adaptive_supported=N/A [
2018-12-11 13:22:09.793 5283-5283/com.google.android.exoplayer2.demo D/EventLogger:       [X] Track:0, id=2001/2011, mimeType=video/avc, codecs=avc1.640028, res=1920x1080, supported=YES
2018-12-11 13:22:09.793 5283-5283/com.google.android.exoplayer2.demo D/EventLogger:     ]
2018-12-11 13:22:09.793 5283-5283/com.google.android.exoplayer2.demo D/EventLogger:   ]
2018-12-11 13:22:09.793 5283-5283/com.google.android.exoplayer2.demo D/EventLogger:   Renderer:1 [
2018-12-11 13:22:09.793 5283-5283/com.google.android.exoplayer2.demo D/EventLogger:     Group:0, adaptive_supported=N/A [
2018-12-11 13:22:09.793 5283-5283/com.google.android.exoplayer2.demo D/EventLogger:       [X] Track:0, id=2001/2012, mimeType=audio/ac3, channels=2, sample_rate=48000, language=eng, supported=YES
2018-12-11 13:22:09.793 5283-5283/com.google.android.exoplayer2.demo D/EventLogger:     ]
2018-12-11 13:22:09.793 5283-5283/com.google.android.exoplayer2.demo D/EventLogger:     Group:1, adaptive_supported=N/A [
2018-12-11 13:22:09.793 5283-5283/com.google.android.exoplayer2.demo D/EventLogger:       [ ] Track:0, id=2001/2013, mimeType=audio/mpeg-L2, channels=2, sample_rate=48000, language=eng, supported=NO_UNSUPPORTED_TYPE
2018-12-11 13:22:09.793 5283-5283/com.google.android.exoplayer2.demo D/EventLogger:     ]
2018-12-11 13:22:09.793 5283-5283/com.google.android.exoplayer2.demo D/EventLogger:   ]
2018-12-11 13:22:09.793 5283-5283/com.google.android.exoplayer2.demo D/EventLogger:   Renderer:2 [
2018-12-11 13:22:09.793 5283-5283/com.google.android.exoplayer2.demo D/EventLogger:     Group:0, adaptive_supported=N/A [
2018-12-11 13:22:09.793 5283-5283/com.google.android.exoplayer2.demo D/EventLogger:       [ ] Track:0, id=2001/10203, mimeType=application/cea-608, supported=YES
2018-12-11 13:22:09.793 5283-5283/com.google.android.exoplayer2.demo D/EventLogger:     ]
2018-12-11 13:22:09.793 5283-5283/com.google.android.exoplayer2.demo D/EventLogger:   ]
2018-12-11 13:22:09.793 5283-5283/com.google.android.exoplayer2.demo D/EventLogger: ]
2018-12-11 13:22:09.816 5283-5334/com.google.android.exoplayer2.demo I/OMXClient: MuxOMX ctor
2018-12-11 13:22:09.836 5283-5283/com.google.android.exoplayer2.demo D/EventLogger: mediaPeriodReadingStarted [2.90, 0.00, window=0, period=0]
2018-12-11 13:22:09.837 5283-5283/com.google.android.exoplayer2.demo D/EventLogger: downstreamFormatChanged [2.90, 0.00, window=0, period=0, id=2001/2011, mimeType=video/avc, codecs=avc1.640028, res=1920x1080]
2018-12-11 13:22:10.466 5283-5333/com.google.android.exoplayer2.demo I/MediaCodec: [OMX.MTK.VIDEO.DECODER.AVC] setting surface generation to 5409793
2018-12-11 13:22:10.466 5283-5333/com.google.android.exoplayer2.demo I/MediaCodecLogger: [ASAP] HW.video.avc P2 + 1128555
2018-12-11 13:22:10.470 5283-5334/com.google.android.exoplayer2.demo I/ACodec: codec does not support config priority (err -1010)
2018-12-11 13:22:10.474 5283-5333/com.google.android.exoplayer2.demo I/MediaCodecLogger: [ASAP] HW.video.avc P2 - 1128562
2018-12-11 13:22:10.474 5283-5333/com.google.android.exoplayer2.demo D/MediaCodecLogger: Got a Service. Calling PID = 5283
2018-12-11 13:22:10.474 5283-5326/com.google.android.exoplayer2.demo I/MediaCodecLogger: [ASAP] HW.video.avc P3 + 1128563
2018-12-11 13:22:10.480 5283-5334/com.google.android.exoplayer2.demo D/SurfaceUtils: set up nativeWindow 0x89858808 for 1920x1080, color 0x7f000001, rotation 0, usage 0x2933
2018-12-11 13:22:10.480 5283-5334/com.google.android.exoplayer2.demo W/ACodec: [OMX.MTK.VIDEO.DECODER.AVC] setting nBufferCountActual to 7 failed: -2147483648
2018-12-11 13:22:10.483 5283-5333/com.google.android.exoplayer2.demo I/MediaCodecLogger: [ASAP] HW.video.avc P3 - 1128571
2018-12-11 13:22:10.485 5283-5333/com.google.android.exoplayer2.demo I/MediaCodecLogger: [ASAP] HW.video.avc Got First Input Frame 1128573
2018-12-11 13:22:10.485 5283-5283/com.google.android.exoplayer2.demo D/EventLogger: decoderInitialized [3.55, 0.00, window=0, period=0, video, OMX.MTK.VIDEO.DECODER.AVC]
2018-12-11 13:22:10.485 5283-5283/com.google.android.exoplayer2.demo D/EventLogger: decoderInputFormatChanged [3.55, 0.00, window=0, period=0, video, id=2001/2011, mimeType=video/avc, codecs=avc1.640028, res=1920x1080]
2018-12-11 13:22:10.491 5283-5283/com.google.android.exoplayer2.demo D/EventLogger: downstreamFormatChanged [3.56, 0.00, window=0, period=0, id=2001/2012, mimeType=audio/ac3, channels=2, sample_rate=48000, language=eng]
2018-12-11 13:22:10.495 5283-5343/com.google.android.exoplayer2.demo I/OMXClient: MuxOMX ctor
2018-12-11 13:22:10.499 5283-5343/com.google.android.exoplayer2.demo I/MediaCodecLogger: [ASAP] SW.audio.raw P2 + 1128587
2018-12-11 13:22:10.500 5283-5343/com.google.android.exoplayer2.demo I/ACodec: codec does not support config priority (err -2147483648)
2018-12-11 13:22:10.500 5283-5343/com.google.android.exoplayer2.demo I/ACodec: codec does not support config operating rate (err -2147483648)
2018-12-11 13:22:10.501 5283-5343/com.google.android.exoplayer2.demo I/MediaCodecLogger: [ASAP] SW.audio.raw P2 - 1128589
2018-12-11 13:22:10.501 5283-5343/com.google.android.exoplayer2.demo D/MediaCodecLogger: Got a Service. Calling PID = 5283
2018-12-11 13:22:10.502 5283-5326/com.google.android.exoplayer2.demo I/MediaCodecLogger: [ASAP] SW.audio.raw P3 + 1128590
2018-12-11 13:22:10.504 5283-5343/com.google.android.exoplayer2.demo I/MediaCodecLogger: [ASAP] SW.audio.raw P3 - 1128593
2018-12-11 13:22:10.506 5283-5283/com.google.android.exoplayer2.demo D/EventLogger: decoderInitialized [3.57, 0.00, window=0, period=0, audio, OMX.google.raw.decoder]
2018-12-11 13:22:10.507 5283-5283/com.google.android.exoplayer2.demo D/EventLogger: decoderInputFormatChanged [3.57, 0.00, window=0, period=0, audio, id=2001/2012, mimeType=audio/ac3, channels=2, sample_rate=48000, language=eng]
2018-12-11 13:22:10.507 5283-5343/com.google.android.exoplayer2.demo I/MediaCodecLogger: [ASAP] SW.audio.raw Got First Input Frame 1128595
2018-12-11 13:22:10.508 5283-5334/com.google.android.exoplayer2.demo W/AHierarchicalStateMachine: Warning message AMessage(what = 'omxI') = {
      int32_t type = 0
      int32_t event = 3
      int32_t data1 = 1
      int32_t data2 = 117440527
    } unhandled in root state.
2018-12-11 13:22:10.513 5283-5334/com.google.android.exoplayer2.demo D/SurfaceUtils: set up nativeWindow 0x89858808 for 1920x1088, color 0x7f000001, rotation 0, usage 0x2933
2018-12-11 13:22:10.513 5283-5334/com.google.android.exoplayer2.demo W/ACodec: [OMX.MTK.VIDEO.DECODER.AVC] setting nBufferCountActual to 10 failed: -2147483648
2018-12-11 13:22:10.514 5283-5343/com.google.android.exoplayer2.demo I/MediaCodecLogger: updatePTSTime [SW.audio.raw] First PTS after Flush or reset = -305655
2018-12-11 13:22:10.514 5283-5343/com.google.android.exoplayer2.demo I/MediaCodecLogger: [ASAP] SW.audio.raw Got First Frame Ready 1128603
2018-12-11 13:22:10.532 5283-5326/com.google.android.exoplayer2.demo D/AmazonAudioTrackCallback: No AudioTrackFlags provided.  Using internal defaults.
2018-12-11 13:22:10.534 5283-5326/com.google.android.exoplayer2.demo D/AmazonAudioTrackCallback: No Audio content type provided.
2018-12-11 13:22:10.534 5283-5326/com.google.android.exoplayer2.demo V/AmazonAudioTrackCallback: set default content type to Music for useage 1
2018-12-11 13:22:10.534 5283-5326/com.google.android.exoplayer2.demo I/android.media.AudioTrack: AUDIOINFO: audio_input: format: 5 sample_rate: 48000 channels: 2 AudioAttributes: AudioAttributes: usage=1 content=2 flags=0x0 tags= bundle=null
2018-12-11 13:22:10.541 5283-5283/com.google.android.exoplayer2.demo D/EventLogger: audioSessionId [3.61, 0.00, window=0, period=0, 41]
2018-12-11 13:22:12.820 5283-5288/com.google.android.exoplayer2.demo I/art: Do partial code cache collection, code=62KB, data=59KB
2018-12-11 13:22:12.821 5283-5288/com.google.android.exoplayer2.demo I/art: After code cache collection, code=61KB, data=58KB
2018-12-11 13:22:12.821 5283-5288/com.google.android.exoplayer2.demo I/art: Increasing code cache capacity to 256KB
2018-12-11 13:22:13.926 5283-5333/com.google.android.exoplayer2.demo I/MediaCodecLogger: updateFormatChanged width = 1920 height = 1080
2018-12-11 13:22:13.934 5283-5333/com.google.android.exoplayer2.demo I/MediaCodecLogger: updatePTSTime [HW.video.avc] First PTS after Flush or reset = 700000
2018-12-11 13:22:13.934 5283-5333/com.google.android.exoplayer2.demo I/MediaCodecLogger: [ASAP] HW.video.avc Got First Frame Ready 1132023
2018-12-11 13:22:13.935 5283-5333/com.google.android.exoplayer2.demo I/MediaCodecLogger: [ASAP] HW.video.avc Got First Frame Render 1132024
2018-12-11 13:22:13.935 5283-5333/com.google.android.exoplayer2.demo I/MediaCodecLogger: App uses Timestamps for AVSync
2018-12-11 13:22:13.936 5283-5283/com.google.android.exoplayer2.demo D/EventLogger: videoSizeChanged [7.00, 0.00, window=0, period=0, 1920, 1080]
2018-12-11 13:22:13.947 5283-5283/com.google.android.exoplayer2.demo D/EventLogger: renderedFirstFrame [7.01, 0.00, window=0, period=0, Surface(name=null)/@0x4fa65ed]
2018-12-11 13:22:13.961 5283-5283/com.google.android.exoplayer2.demo D/EventLogger: state [7.03, 0.01, window=0, period=0, true, READY]
2018-12-11 13:22:15.487 5283-5333/com.google.android.exoplayer2.demo I/MediaCodecLogger: com.google.android.exoplayer2.demo.4K.HW.video.avc.bitrateInKbps = 1852
2018-12-11 13:22:15.619 5283-5343/com.google.android.exoplayer2.demo I/MediaCodecLogger: com.google.android.exoplayer2.demo.SW.audio.raw.bitrateInKbps = 152
2018-12-11 13:22:18.955 5283-5333/com.google.android.exoplayer2.demo I/MediaCodecLogger: com.google.android.exoplayer2.demo.4K.HW.video.avc Resolution change from 0x0 to 1920x1080 took = 1
2018-12-11 13:22:20.493 5283-5333/com.google.android.exoplayer2.demo I/MediaCodecLogger: com.google.android.exoplayer2.demo.4K.HW.video.avc.bitrateInKbps = 7188
2018-12-11 13:22:20.726 5283-5343/com.google.android.exoplayer2.demo I/MediaCodecLogger: com.google.android.exoplayer2.demo.SW.audio.raw.bitrateInKbps = 192
2018-12-11 13:22:25.255 5283-5288/com.google.android.exoplayer2.demo I/art: Do full code cache collection, code=126KB, data=104KB
2018-12-11 13:22:25.257 5283-5288/com.google.android.exoplayer2.demo I/art: Starting a blocking GC JitCodeCache
2018-12-11 13:22:25.257 5283-5288/com.google.android.exoplayer2.demo I/art: After code cache collection, code=100KB, data=77KB
2018-12-11 13:22:25.535 5283-5333/com.google.android.exoplayer2.demo I/MediaCodecLogger: com.google.android.exoplayer2.demo.4K.HW.video.avc.bitrateInKbps = 7495
2018-12-11 13:22:25.844 5283-5343/com.google.android.exoplayer2.demo I/MediaCodecLogger: com.google.android.exoplayer2.demo.SW.audio.raw.bitrateInKbps = 192
2018-12-11 13:22:30.953 5283-5343/com.google.android.exoplayer2.demo I/MediaCodecLogger: com.google.android.exoplayer2.demo.SW.audio.raw.bitrateInKbps = 192
2018-12-11 13:22:36.073 5283-5343/com.google.android.exoplayer2.demo I/MediaCodecLogger: com.google.android.exoplayer2.demo.SW.audio.raw.bitrateInKbps = 192
2018-12-11 13:22:41.198 5283-5343/com.google.android.exoplayer2.demo I/MediaCodecLogger: com.google.android.exoplayer2.demo.SW.audio.raw.bitrateInKbps = 191
2018-12-11 13:22:46.318 5283-5343/com.google.android.exoplayer2.demo I/MediaCodecLogger: com.google.android.exoplayer2.demo.SW.audio.raw.bitrateInKbps = 192
erdemguven commented 5 years ago

Please send the test content to dev.exoplayer@gmail.com using a subject in the format "Issue #5243".

tonihei commented 5 years ago

@erdemguven Can you take a look? The information was provided a while ago already.

needz commented 5 years ago

This issue seems to be related to the similar one on ExoPlayer for Amazon Fire TV devices port at https://github.com/amzn/exoplayer-amazon-port/issues/81

tonihei commented 5 years ago

Looks like the referenced Amazon bug will be fixed soon, so closing this issue as it's device specific and the device manufacturer addressed the issue.