Server Version#: 1.19.1.2701
Player Version#: 8.0.0.17276
Just updated to Android 9 on my MI BOX S and I am having playback issues with h265 (HEVC main) files of any kind. The Kodi App with the Plex addon had no issues playing back the same files on the device. I also tried using the android app on a separate device (to test if it’s a server problem) and had no issues also… Not an issue with other files on h.264 codec.
Some logs I think is closely related to the problem…
04-29 17:43:59.445 i: [FFmpeg] [INFO] Container metadata entries found: 0.
04-29 17:43:59.446 i: [FFmpeg] [INFO] Stream metadata entries found: 16.
04-29 17:43:59.447 i: [FFmpeg] [INFO] Stream metadata entries found: 15.
04-29 17:43:59.509 i: [FF] Video decoder doesn't support aac (audio/mp4a-latm).
04-29 17:43:59.592 i: [FF] Audio decoder doesn't support aac (audio/mp4a-latm).
04-29 17:43:59.593 i: [FF] Video decoder doesn't support hevc (video/hevc).
04-29 17:43:59.593 i: [FF][MediaPeriod] Selecting tracks.
04-29 17:43:59.593 i: [FF] Video decoder doesn't support aac (audio/mp4a-latm).
04-29 17:43:59.594 i: [FF] Audio decoder doesn't support aac (audio/mp4a-latm).
04-29 17:43:59.594 i: [FF] Video decoder doesn't support hevc (video/hevc).
04-29 17:43:59.597 i: [FF] Video decoder doesn't support aac (audio/mp4a-latm).
04-29 17:43:59.599 i: [FF] Audio decoder doesn't support aac (audio/mp4a-latm).
04-29 17:43:59.600 i: [FF] Video decoder doesn't support hevc (video/hevc).
04-29 17:43:59.601 i: [ExoPlayer][EventLogger] surfaceSizeChanged [9.61, 0.00, window=0, 0, 0]
04-29 17:43:59.602 i: [ExoPlayer][EventLogger] timelineChanged [9.61, 0.00, window=0, periodCount=1, windowCount=1, reason=DYNAMIC
04-29 17:43:59.605 i: [ExoPlayer][EventLogger] period [2473.00]
04-29 17:43:59.605 i: [ExoPlayer][EventLogger] window [2473.00, true, false]
04-29 17:43:59.605 i: [ExoPlayer][EventLogger] ]
04-29 17:43:59.606 i: [Player][ExoPlayer] onTimelineChanged (Position: 0 ms)
04-29 17:43:59.606 i: [ExoPlayer][EventLogger] decoderInitialized [9.62, 0.00, window=0, video, OMX.amlogic.hevc.decoder.awesome]
04-29 17:43:59.607 i: [ExoPlayer][EventLogger] decoderInputFormatChanged [9.62, 0.00, window=0, video, id=0, mimeType=video/hevc, bitrate=714000, codecs=hevc, res=1280x720, fps=0.0]
04-29 17:43:59.607 i: [ExoPlayer][EventLogger] decoderEnabled [9.63, 0.00, window=0, audio]
04-29 17:43:59.608 i: [ExoPlayer][EventLogger] tracksChanged [9.63, 0.00, window=0,
04-29 17:43:59.608 i: [ExoPlayer][EventLogger] Renderer:1 [
04-29 17:43:59.608 i: [ExoPlayer][EventLogger] Group:0, adaptive_supported=N/A [
04-29 17:43:59.609 i: [ExoPlayer][EventLogger] [X] Track:0, id=0, mimeType=video/hevc, bitrate=714000, codecs=hevc, res=1280x720, fps=0.0, supported=YES
04-29 17:43:59.609 i: [ExoPlayer][EventLogger] ]
04-29 17:43:59.610 i: [ExoPlayer][EventLogger] Metadata [
04-29 17:43:59.610 i: [ExoPlayer][EventLogger] original_init_data: (Value: 0 Buffer: 115 bytes)
04-29 17:43:59.610 i: [ExoPlayer][EventLogger] scantype_progressive: (Value: 1 Buffer: 0 bytes)
04-29 17:43:59.610 i: [ExoPlayer][EventLogger] ]
04-29 17:43:59.611 i: [ExoPlayer][EventLogger] ]
04-29 17:43:59.611 i: [ExoPlayer][EventLogger] Renderer:3 [
04-29 17:43:59.612 i: [ExoPlayer][EventLogger] Group:0, adaptive_supported=N/A [
04-29 17:43:59.613 i: [ExoPlayer][EventLogger] [X] Track:0, id=1, mimeType=audio/mp4a-latm, bitrate=714000, codecs=aac, channels=2, sample_rate=48000, supported=YES
04-29 17:43:59.614 i: [ExoPlayer][EventLogger] ]
04-29 17:43:59.614 i: [ExoPlayer][EventLogger] Metadata [
04-29 17:43:59.615 i: [ExoPlayer][EventLogger] block_align: (Value: 0 Buffer: 0 bytes)
04-29 17:43:59.616 i: [ExoPlayer][EventLogger] channel_layout: (Value: 0 Buffer: 0 bytes)
04-29 17:43:59.617 i: [ExoPlayer][EventLogger] original_init_data: (Value: 0 Buffer: 5 bytes)
04-29 17:43:59.618 i: [ExoPlayer][EventLogger] ]
04-29 17:43:59.618 i: [ExoPlayer][EventLogger] ]
04-29 17:43:59.619 i: [ExoPlayer][EventLogger] ]
04-29 17:43:59.619 e: [ExoPlayer][EventLogger] playerFailed [9.64, 0.00, window=0]
04-29 17:43:59.620 e: An exception occurred: com.google.android.exoplayer2.r: java.lang.IllegalArgumentException
04-29 17:43:59.620 e: Stacktrace: com.google.android.exoplayer2.r: java.lang.IllegalArgumentException
at com.google.android.exoplayer2.v.handleMessage(SourceFile:24)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:193)
at android.os.HandlerThread.run(HandlerThread.java:65)
Caused by: java.lang.IllegalArgumentException
at android.media.MediaCodec.native_setSurface(Native Method)
at android.media.MediaCodec.setOutputSurface(MediaCodec.java:1979)
at com.google.android.exoplayer2.video.k.a(SourceFile:143)
at com.google.android.exoplayer2.video.k.a(SourceFile:33)
at com.google.android.exoplayer2.video.k.handleMessage(SourceFile:1)
at com.google.android.exoplayer2.v.c(SourceFile:3)
at com.google.android.exoplayer2.v.e(SourceFile:44)
at com.google.android.exoplayer2.v.d(SourceFile:18)
at com.google.android.exoplayer2.v.handleMessage(SourceFile:4)
... 3 more
04-29 17:43:59.620 e: [Player][ExoPlayer] Playback error detected
04-29 17:43:59.621 e: An exception occurred: com.google.android.exoplayer2.r: java.lang.IllegalArgumentException
04-29 17:43:59.621 e: Stacktrace: com.google.android.exoplayer2.r: java.lang.IllegalArgumentException
at com.google.android.exoplayer2.v.handleMessage(SourceFile:24)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:193)
at android.os.HandlerThread.run(HandlerThread.java:65)
Caused by: java.lang.IllegalArgumentException
at android.media.MediaCodec.native_setSurface(Native Method)
at android.media.MediaCodec.setOutputSurface(MediaCodec.java:1979)
at com.google.android.exoplayer2.video.k.a(SourceFile:143)
at com.google.android.exoplayer2.video.k.a(SourceFile:33)
at com.google.android.exoplayer2.video.k.handleMessage(SourceFile:1)
at com.google.android.exoplayer2.v.c(SourceFile:3)
at com.google.android.exoplayer2.v.e(SourceFile:44)
at com.google.android.exoplayer2.v.d(SourceFile:18)
at com.google.android.exoplayer2.v.handleMessage(SourceFile:4)
... 3 more
04-29 17:43:59.621 i: [Player][Timeline] Handling player error
04-29 17:43:59.621 i: [Player][Timeline] Playback stopped (error: true)