Symptom: None of the Movies or TV shows starts playing on the Android TV Plex app, except the ones with very low bitrate and 720p. Movies start loading, then I get the error: “Playback has stopped because the connection to the Plex Media Server has been lost.”.
Same in case whether the new player used or not in the client app.
I have no issue at all when using the Plex client app on Apple TV 4K (latest version).
Server: 1.18.5.2309 (Windows), Intel Core i7-7700, 32GB Ram - “Large Send Offload” disabled on the NIC
Device: Sony Android TV (KD-43XF8096), Android TV version: 8.0.0 (there’s no newer version)
Plex for Android client app version: 7.27.1.15203 (5c57babb)
Server setting in short:
Encryption: preferred
Network: LAN - between Sony TV and Server: Ethernet, same VLAN, same Subnet, wired, 1 Gbit
Router: pfSense (on strong hardware), DNS resolver already has the setting: server:private-domain: "plex.direct"
It’s trying to start the direct play, then ends up in error, then falling back to transcode, finally playback ends up with similar error. Did not paste the log about the transcode failure, it’s similar to direct play. Plex client on Apple TV 4k just plays fine without any error with the latest version of the client Plex app. I have PlexPass, however this doesn’t matter I guess.
Log (Android TV client app) - New Player disabled (copy and paste the point):
Memory Usage: 431.46094 / 1566.1055 Threshold: 192.1875.
[FF] ********************************************************
02-05 14:23:59.587 e: [Exo2VideoPlayer] Player error detected
02-05 14:23:59.587 e: An exception occurred: com.google.android.exoplayer2.i: java.lang.IllegalStateException
02-05 14:23:59.588 e: Stacktrace: com.google.android.exoplayer2.i: java.lang.IllegalStateException
at com.google.android.exoplayer2.o.handleMessage(SourceFile:397)
at android.os.Handler.dispatchMessage(Handler.java:101)
at android.os.Looper.loop(Looper.java:164)
at android.os.HandlerThread.run(HandlerThread.java:65)
Caused by: java.lang.IllegalStateException
at android.media.MediaCodec.native_queueInputBuffer(Native Method)
at android.media.MediaCodec.queueInputBuffer(MediaCodec.java:2334)
at com.google.android.exoplayer2.e.b.n(SourceFile:1115)
at com.google.android.exoplayer2.e.b.render(SourceFile:654)
at com.google.android.exoplayer2.o.h(SourceFile:575)
at com.google.android.exoplayer2.o.handleMessage(SourceFile:326)
... 3 more
02-05 14:23:59.608 i: [video] Direct play failed, attempting to transcode
02-05 14:23:59.613 i: [ConnectivityManager] Device is under Ethernet
02-05 14:23:59.615 i: [MediaDecisionEngine] Starting media decision for: MizĂşjs, Scooby-Doo? - S01 E11 (part index 0)
02-05 14:23:59.616 i: [MediaDecisionEngine] Transcode server selected: PlexMediaServer
02-05 14:23:59.619 i: [MediaDecisionEngine] Analyzing media: 1916x1076 2866kbps (Container: mp4, Video: h264, Audio: ac3)
02-05 14:23:59.621 i: [FF] ********************************************************
[FF] Statistics:
[FF] ********************************************************
State: Idle Loading: Yes Auto Play: Yes
Surface: None
Position: 0:00 Duration: 21:21
Window Start: 0:00 Window End: 21:21 Position in Period: 0:00
Period Position: 0:00 Period Duration: 21:21
Video: OMX.MTK.VIDEO.DECODER.AVC
- Initialise Time: 190us Initialised: 1 Released: 0
- Input Buffers: 5 Output Buffers: 0
- Skipped: 0 Dropped: 0 Max Dropped: 0
Audio: OMX.MTK.AUDIO.DECODER.DSPAC3
- Initialise Time: 73us Initialised: 1 Released: 0
- Input Buffers: 8 Output Buffers: 0
- Skipped: 0 Dropped: 0 Max Dropped: 0
Memory Usage: 430.51172 / 1566.1055 Threshold: 192.1875.
[FF] ********************************************************
02-05 14:23:59.622 i: [MediaDecisionEngine] Unable to direct play; Direct Play was attempted but failed, fallen back to transcoding
02-05 14:23:59.624 i: [MediaDecisionEngine] Content source doesn't support decision making
Log (Android TV client app) - New Player enabled (copy and paste the point):
02-05 14:02:36.614 i: [ConnectivityManager] Device is under Ethernet
02-05 14:02:36.631 i: [MediaDecisionEngine] Content source doesn't support decision making
02-05 14:02:36.631 i: [MediaDecisionEngine] Decision: CanPlay: true CanDirectPlay: true CanDirectStreamVideo: true CanDirectStreamAudio: true CanDirectPlaySubtitle: false CanTranscodeSubtitle: false CanDisplayVideo: true
02-05 14:02:36.631 i: [LoadControl] New bitrate: 2866, Maximum: 2866
.....
02-05 14:02:38.111 i: [FF] Container[mp4] No Title - 2,9 Mbps, 21 mins [CT: 1579508360000us, ST: 0us, SRT: -9223372036854775808us].
02-05 14:02:38.111 i: [FFmpeg] [INFO]
02-05 14:02:38.111 i: [FFmpeg] [INFO] Stream #0:0
02-05 14:02:38.111 i: [FFmpeg] [INFO] (und)
02-05 14:02:38.111 i: [FFmpeg] [INFO] : Video: h264, 1 reference frame (avc1 / 0x31637661), none, 1916x1076 (0x0), 0/1, 2673 kb/s
02-05 14:02:38.111 i: [FFmpeg] [INFO] , SAR 1:1 DAR 479:269
02-05 14:02:38.111 i: [FFmpeg] [INFO] ,
02-05 14:02:38.112 i: [FFmpeg] [INFO] 23.98 fps,
02-05 14:02:38.115 i: [FFmpeg] [INFO] 23.98 tbr,
02-05 14:02:38.116 i: [FF] VideoStream[0-h264] 1916x1076 [SAR 1:1, DAR 479:269]. H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 - Unknown Profile (video/avc), 2,7 Mbps 21 mins 23,98fps, No Title / Unknown (und), 2 / 35 bytes, Default .
02-05 14:02:38.122 i: [FF] AudioStream[1-ac3] 2 channels over 3 (stereo), 48000 Hz, 0,0 padding. ATSC A/52A (AC-3) - Unknown Profile (audio/ac3), 192 kbps 21 mins 0,00fps, No Title / magyar (hun), 0 bytes, Default .
02-05 14:02:38.123 i: [FFmpeg] [INFO] 90k tbn,
02-05 14:02:38.128 i: [FFmpeg] [INFO] 90k tbc
02-05 14:02:38.129 i: [FF] UnknownStream[2-Data] bin_data binary data - Unknown Profile (null), ~6 kbps 21 mins 0,00fps, No Title / angol (eng), 1 / 43 bytes, .
02-05 14:02:38.136 i: [FF] Stream ignored as codec type is unknown.
02-05 14:02:38.137 i: [FF] Video decoder doesn't support h264 (video/avc).
02-05 14:02:38.141 i: [FF] Video decoder doesn't support ac3 (audio/ac3).
02-05 14:02:38.141 i: [FF] Audio decoder doesn't support ac3 (audio/ac3).
02-05 14:02:38.802 i: [TranscodeSession] Updating session status
02-05 14:02:38.814 i: [TranscodeSession] Direct Play
02-05 14:02:38.979 i: [ExoPlayer][EventLogger] decoderInitialized [2.58, 0.00, window=0, video, OMX.MTK.VIDEO.DECODER.AVC]
02-05 14:02:38.987 i: [ExoPlayer][EventLogger] audioSessionId [2.59, 0.00, window=0, 345]
02-05 14:02:39.030 e: [ExoPlayer][EventLogger] playerFailed [2.63, 0.00, window=0]
02-05 14:02:39.030 e: An exception occurred: com.google.android.exoplayer2.i: java.lang.IllegalStateException
02-05 14:02:39.030 e: Stacktrace: com.google.android.exoplayer2.i: java.lang.IllegalStateException
at com.google.android.exoplayer2.o.handleMessage(SourceFile:397)
at android.os.Handler.dispatchMessage(Handler.java:101)
at android.os.Looper.loop(Looper.java:164)
at android.os.HandlerThread.run(HandlerThread.java:65)
Caused by: java.lang.IllegalStateException
at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method)
at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:2622)
at com.google.android.exoplayer2.e.b.a(SourceFile:1437)
at com.google.android.exoplayer2.e.b.render(SourceFile:653)
at com.google.android.exoplayer2.o.h(SourceFile:575)
at com.google.android.exoplayer2.o.handleMessage(SourceFile:326)
... 3 more
02-05 14:02:39.031 e: [Player][ExoPlayer] Playback error detected
02-05 14:02:39.031 e: An exception occurred: com.google.android.exoplayer2.i: java.lang.IllegalStateException
02-05 14:02:39.034 e: Stacktrace: com.google.android.exoplayer2.i: java.lang.IllegalStateException
at com.google.android.exoplayer2.o.handleMessage(SourceFile:397)
at android.os.Handler.dispatchMessage(Handler.java:101)
at android.os.Looper.loop(Looper.java:164)
at android.os.HandlerThread.run(HandlerThread.java:65)
Caused by: java.lang.IllegalStateException
at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method)
at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:2622)
at com.google.android.exoplayer2.e.b.a(SourceFile:1437)
at com.google.android.exoplayer2.e.b.render(SourceFile:653)
at com.google.android.exoplayer2.o.h(SourceFile:575)
at com.google.android.exoplayer2.o.handleMessage(SourceFile:326)
... 3 more
02-05 14:02:39.035 i: [Player][Timeline] Handling player error
02-05 14:02:39.035 i: [Player][Timeline] Playback stopped (error: true)
02-05 14:02:39.039 i: [PlaybackTimeBehaviour] Time: 0 IsStarted: false
02-05 14:02:39.049 i: [ExoPlayer][EventLogger] decoderDisabled [2.65, 0.00, window=0, video]
02-05 14:02:39.072 i: Fetching [method:GET] https://192.168.1.140:32400/:/timeline?bufferedTime=1664&duration=1281408&guid=com.plexapp.agents.thetvdb%3A%2F%2F80119%2F1%2F11%3Flang%3Dhu&key=%2Flibrary%2Fmetadata%2F36582&playbackTime=0&playQueueItemID=8354&ratingKey=36582&state=stopped&time=0&timeStalled=2&timeToFirstFrame=0&token=.........-Plex-Client-Identifier=803e88ed2fdd4a56-com-plexapp-android&X-Plex-Token=.......
02-05 14:02:39.107 i: [Player][Timeline] Player error not known by server, likely to be a client configuration error
02-05 14:02:39.108 i: [Player] Error reported: PlaybackInterrupted (null)
02-05 14:02:39.113 i: [Player][Timeline] Playback stopped (error: false)
02-05 14:02:39.114 i: [PlaybackTimeBehaviour] Time: 0 IsStarted: false
02-05 14:02:39.119 i: Fetching [method:GET] https://192.168.1.140:32400/:/timeline?bufferedTime=1664&duration=1281408&guid=com.plexapp.agents.thetvdb%3A%2F%2F80119%2F1%2F11%3Flang%3Dhu&key=%2Flibrary%2Fmetadata%2F36582&playbackTime=0&playQueueItemID=8354&ratingKey=36582&state=stopped&time=0&timeStalled=2&token=..........-Plex-Client-Identifier=803e88ed2fdd4a56-com-plexapp-android&X-Plex-Token=.......
02-05 14:02:39.134 i: [TranscodeFallbackBehaviour] Detected direct play failed, falling back to transcode