Server Version#: 1.22.0.4145
Player Version#: 8.13.2.23227
Starting today I’ve noticed severe issue with plex on shield. The shield would force transcode everything and once I force it to play original quality it works fine for a few minutes but then hangs again.
Then tonight I was trying to watch a Dolby Vision or HDR title and it would fail back to transcoding also.
I uninstalled and reinstalled the app on the shield and it seemed to fic the issue and the titles started up fine but then reverted to the same issue.
I enabled logging on the shield and below is what I see:
03-05 21:48:28.225 i: [OneApp] User can execute command without restrictions because they are entitled.
03-05 21:48:28.226 i: [PlaybackManager] Preparing for Aquaman
03-05 21:48:28.226 i: [DefaultPlaybackManager] Passthrough is enabled.
03-05 21:48:28.235 i: [DefaultPlaybackManager] No codecs being downloaded.
03-05 21:48:28.235 i: [PlayQueues] Creating delayed remote PQ.
03-05 21:48:28.247 i: [MediaBrowserAudioService] onCreate
03-05 21:48:28.249 i: [PlayerService] onCreate
03-05 21:48:28.249 i: [ConnectivityManager] Device is under Wifi
03-05 21:48:28.250 i: [Player] Changing to use ExoPlayer for playback.
03-05 21:48:28.277 i: [MemoryOptimisationBehaviour] Reducing memory cache.
03-05 21:48:28.282 i: [CurrentItemMetadataBehaviour] Fetching current item
03-05 21:48:28.284 i: [MediaSessionHelper] Starting media session with tag: video
03-05 21:48:28.285 i: Fetching [method:GET] https://192.168.1.2:32400/library/metadata/254880?includeChapters=1&includeLoudnessRamps=1&includeMarkers=1&includeRelated=1&X-Plex-Token=...f_zy
03-05 21:48:28.285 i: [MediaSessionHelper] Creating media session with tag: video
03-05 21:48:28.297 i: [MediaSessionBehaviour] Updating metadata for video, thumb: false
03-05 21:48:28.306 i: [InteractionBehaviour] Slept, reason: Startup.
03-05 21:48:28.306 i: [VideoAwakeBehaviour] Keep screen awake has been requested disabled for VideoAwakeBehaviour.
03-05 21:48:28.307 i: [DisplayBehaviour] New ExoPlayerEngine detected, enabling: false.
03-05 21:48:28.307 i: [Player][ExoPlayer] Using PlayQueueMediaSource
03-05 21:48:28.324 i: [MediaSessionHelper] Releasing media session with tag: video
03-05 21:48:28.325 i: [MediaSessionHelper] Starting media session with tag: music
03-05 21:48:28.342 i: [MediaSessionHelper] Creating media session with tag: music
03-05 21:48:28.349 i: [MediaCodecVideoSyncRenderer] Setting allow dummy surface: false
03-05 21:48:28.358 i: [ExoPlayer][EventLogger] playWhenReady [eventTime=0.07, mediaPos=0.00, window=0, true, USER_REQUEST]
03-05 21:48:28.361 i: [ExoPlayer][EventLogger] seekStarted [eventTime=0.07, mediaPos=0.00, window=0]
03-05 21:48:28.362 i: [ExoPlayer][EventLogger] positionDiscontinuity [eventTime=0.07, mediaPos=1739.76, window=0, SEEK]
03-05 21:48:28.363 i: [Player][ExoPlayer] onPositionDiscontinuity, Reason: 1 Period Transition: false
03-05 21:48:28.363 i: [ExoPlayer][EventLogger] timeline [eventTime=0.08, mediaPos=1739.76, window=0, periodCount=1, windowCount=1, reason=PLAYLIST_CHANGED
03-05 21:48:28.364 i: [ExoPlayer][EventLogger] period [?]
03-05 21:48:28.364 i: [ExoPlayer][EventLogger] window [?, false, true]
03-05 21:48:28.365 i: [ExoPlayer][EventLogger] ]
03-05 21:48:28.365 i: [Player][ExoPlayer] onTimelineChanged (Position: 0 ms, Duration: 0 ms)
03-05 21:48:28.365 i: [ExoPlayer][EventLogger] mediaItem [eventTime=0.08, mediaPos=1739.76, window=0, reason=PLAYLIST_CHANGED]
03-05 21:48:28.365 i: [ExoPlayer][EventLogger] state [eventTime=0.08, mediaPos=1739.76, window=0, BUFFERING]
03-05 21:48:28.365 i: [MediaDecisionEngine] Starting media decision for: Aquaman (part index 0)
03-05 21:48:28.366 i: [MediaDecisionEngine] Transcode server selected: Eggy's Server
03-05 21:48:28.366 i: Fetching [method:GET] http://127.0.0.1:32500/library/metadata/254880
03-05 21:48:28.370 i: Creating PlayerActivity.
03-05 21:48:28.373 i: [Activity] Resuming the application, attempting to download item and children.
03-05 21:48:28.373 i: [Boot] PlayerActivity took 4ms to run create behaviours.
03-05 21:48:28.373 i: [PlayerActivity] Creating fragment
03-05 21:48:28.374 i: [Player][DimensionsLayout] Resizing: 100 x 100
03-05 21:48:28.377 i: [DisplayBehaviour] Activity has been changed, searching for available modes.
03-05 21:48:28.378 i: [DisplayBehaviour] Current mode detected as 3840x2160 @ 23.9760Hz (2).
03-05 21:48:28.380 i: [PictureInPictureBehaviour] Picture-in-picture is available and can be used.
03-05 21:48:28.380 i: [HttpServer] /127.0.0.1:49760 - GET /library/metadata/254880
03-05 21:48:28.383 i: [ConnectivityManager] Device is under Wifi
03-05 21:48:28.383 e: [Sync] Error forwarding request http://127.0.0.1:32500/library/metadata/254880 to nano server.
03-05 21:48:28.384 e: Error fetching http://127.0.0.1:32500/library/metadata/254880:
Failure: 500 Internal Server Error
03-05 21:48:28.385 i: [CurrentItemMetadataBehaviour] Fetched current item, success: true
03-05 21:48:28.385 i: [MediaDecisionEngine] Analyzing media: 3840x2160 20120kbps (Container: mkv, Video: hevc, Audio: truehd)
03-05 21:48:28.386 e: An exception occurred: java.lang.IllegalArgumentException: Invalid URL port: "0"
03-05 21:48:28.387 e: Stacktrace: java.lang.IllegalArgumentException: Invalid URL port: "0"
at okhttp3.HttpUrl$Builder.parse$okhttp(SourceFile:34)
at okhttp3.HttpUrl$Companion.get(SourceFile:1)
at okhttp3.Request$Builder.url(SourceFile:7)
at com.plexapp.plex.net.pms.sync.f.x(SourceFile:21)
at com.plexapp.plex.net.pms.sync.f.w(SourceFile:2)
at com.plexapp.plex.net.pms.sync.p.H(SourceFile:2)
at com.plexapp.plex.net.pms.sync.p.t(SourceFile:6)
at com.plexapp.plex.net.pms.sync.f.o(SourceFile:3)
at com.plexapp.plex.net.pms.h0.s(SourceFile:8)
at org.jboss.netty.channel.p0.e(SourceFile:2)
at org.jboss.netty.channel.DefaultChannelPipeline.v(SourceFile:1)
at org.jboss.netty.channel.DefaultChannelPipeline$a.b(SourceFile:2)
at h.a.a.c.c.d.e(SourceFile:7)
at org.jboss.netty.channel.DefaultChannelPipeline.v(SourceFile:1)
at org.jboss.netty.channel.DefaultChannelPipeline$a.b(SourceFile:2)
at h.a.a.c.a.a.h.s(SourceFile:16)
at org.jboss.netty.channel.p0.e(SourceFile:2)
at org.jboss.netty.channel.DefaultChannelPipeline.v(SourceFile:1)
at org.jboss.netty.channel.DefaultChannelPipeline$a.b(SourceFile:2)
at org.jboss.netty.channel.v.r(SourceFile:1)
at org.jboss.netty.handler.codec.replay.b.C(SourceFile:8)
at org.jboss.netty.handler.codec.replay.b.u(SourceFile:11)
at org.jboss.netty.handler.codec.replay.b.s(SourceFile:9)
at org.jboss.netty.channel.p0.e(SourceFile:2)
at org.jboss.netty.channel.DefaultChannelPipeline.v(SourceFile:1)
at org.jboss.netty.channel.DefaultChannelPipeline.b(SourceFile:3)
at org.jboss.netty.channel.v.q(SourceFile:1)
at org.jboss.netty.channel.v.p(SourceFile:1)
at org.jboss.netty.channel.u0.f.l.i(SourceFile:16)
at org.jboss.netty.channel.u0.f.l.g(SourceFile:5)
at org.jboss.netty.channel.u0.f.l.run(SourceFile:13)
at h.a.a.e.g.run(SourceFile:7)
at h.a.a.e.k.e$a.run(SourceFile:2)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:764)
03-05 21:48:28.388 i: [video] User maximum h264 profile determined: 52
03-05 21:48:28.388 i: [video] Device recommended h264 profile determined: 52
03-05 21:48:28.393 i: [MediaSessionBehaviour] Updating metadata for video, thumb: true
03-05 21:48:28.395 i: Fetching [method:GET] https://plex.tv/api/v2/user/profile?X-Plex-Token=...f_zy
03-05 21:48:28.456 i: [PictureInPictureBehaviour] Picture-in-picture is available and can be used.
03-05 21:48:28.489 i: [MenuSheetHud] Item changed (and fetched), invalidating settings...
03-05 21:48:28.567 i: Resuming PlayerActivity.
03-05 21:48:28.585 i: [ExoPlayer][EventLogger] loading [eventTime=0.32, mediaPos=1739.76, window=0, period=0, true]
03-05 21:48:28.585 i: [SystemUIBehaviour] Hiding the system user-interface.
03-05 21:48:28.609 i: [Player][View] Layout has been measured with a size of 1920 x 1080 (1920 x 1080).
03-05 21:48:28.770 i: [BufferHelper] Assumed Bitrate: 40240, Segment Count: 4715
03-05 21:48:28.770 i: [BufferHelper] Detected memory pressure, reducing segment count to fit available memory: 512
03-05 21:48:28.771 i: [BufferHelper] Segment count: 3276
Further down we see the following:
03-05 21:48:30.196 e: [ExoPlayer][EventLogger] playerFailed [eventTime=1.93, mediaPos=1739.76, window=0, period=0
com.google.android.exoplayer2.ExoPlaybackException: MediaCodecVideoRenderer error, index=1, format=Format(0, null, null, video/dolby-vision, dvhe.07.06, -1, null, [3840, 2160, 23.976025], [-1, -1]), format_supported=NO_EXCEEDS_CAPABILITIES
at com.google.android.exoplayer2.l0.handleMessage(SourceFile:44)
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: com.google.android.exoplayer2.video.MediaCodecVideoDecoderException: Decoder failed: OMX.Nvidia.DOVI.decode
at com.google.android.exoplayer2.video.m.m(SourceFile:1)
at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(SourceFile:24)
at com.google.android.exoplayer2.l0.n(SourceFile:14)
at com.google.android.exoplayer2.l0.handleMessage(SourceFile:24)
... 3 more
Caused by: java.lang.IllegalStateException
at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method)
at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:2940)
at com.google.android.exoplayer2.mediacodec.q.f(SourceFile:1)
at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.drainOutputBuffer(SourceFile:7)
at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(SourceFile:16)
... 5 more
]
03-05 21:48:30.207 e: [Player][ExoPlayer] Playback error detected
03-05 21:48:30.215 i: [FFmpeg] [INFO] [Cache] Terminating thread.
03-05 21:48:30.216 i: [Player][Timeline] Handling player error
03-05 21:48:30.217 i: [Player][Timeline] Playback stopped (error: true)
03-05 21:48:30.217 i: [Player][Timeline] Player error not known by server, reporting original player error (or a playback interrupted one)
03-05 21:48:30.217 i: [Player] Error reported: UnknownError (null)
03-05 21:48:30.218 i: [Player][Timeline] Playback stopped (error: false)
03-05 21:48:30.218 i: [FFmpeg] [INFO] [Cache] Thread has been terminated.
03-05 21:48:30.223 i: [FFmpeg] [INFO] [Cache] Cache has been closed, interrupting AVIO ...
03-05 21:48:30.223 i: [FFmpeg] [INFO] Demuxer pipeline terminated.
03-05 21:48:30.224 i: [FFmpeg] [INFO] [Cache] Close requested, terminating.
03-05 21:48:30.224 i: [FFmpeg] [INFO] Demuxer has been successfully closed.
03-05 21:48:30.225 i: [TranscodeFallbackBehaviour] Detected direct play failed, falling back to transcode (starting: true)
03-05 21:48:30.225 i: [VideoAwakeBehaviour] Keep screen awake has been requested disabled for VideoAwakeBehaviour.
03-05 21:48:30.226 i: [DisplayBehaviour] New ExoPlayerEngine detected, enabling: false.
03-05 21:48:30.226 i: [Player][ExoPlayer] Using PlayQueueMediaSource
03-05 21:48:30.226 i: [Player] Error has been consumed by Transcode Fallback Behaviour and will not continue.
03-05 21:48:30.227 e: An exception occurred: com.google.android.exoplayer2.ExoPlaybackException: MediaCodecVideoRenderer error, index=1, format=Format(0, null, null, video/dolby-vision, dvhe.07.06, -1, null, [3840, 2160, 23.976025], [-1, -1]), format_supported=NO_EXCEEDS_CAPABILITIES
03-05 21:48:30.227 i: [ExoPlayer][EventLogger] loading [eventTime=1.95, mediaPos=1739.76, window=0, period=0, false]
03-05 21:48:30.228 e: Stacktrace: com.google.android.exoplayer2.ExoPlaybackException: MediaCodecVideoRenderer error, index=1, format=Format(0, null, null, video/dolby-vision, dvhe.07.06, -1, null, [3840, 2160, 23.976025], [-1, -1]), format_supported=NO_EXCEEDS_CAPABILITIES
at com.google.android.exoplayer2.l0.handleMessage(SourceFile:44)
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: com.google.android.exoplayer2.video.MediaCodecVideoDecoderException: Decoder failed: OMX.Nvidia.DOVI.decode
at com.google.android.exoplayer2.video.m.m(SourceFile:1)
at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(SourceFile:24)
at com.google.android.exoplayer2.l0.n(SourceFile:14)
at com.google.android.exoplayer2.l0.handleMessage(SourceFile:24)
... 3 more
Caused by: java.lang.IllegalStateException
at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method)
at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:2940)
at com.google.android.exoplayer2.mediacodec.q.f(SourceFile:1)
at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.drainOutputBuffer(SourceFile:7)
at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(SourceFile:16)
... 5 more
If I start the movie again from the start it works for a while and then hangs again.
The issue actually happens with 1080p SDR content also, so not just limited to DV. All of these titles having been working flawlessly for months up to now.