Cannot reproduce a movie from AndoridTV but I can from all other devices

Hello.
When I try to reproduce a specific video at native resolution 1080p on andorid TV, it says that cannot reproduce in real time so it needs to transcode, and it freeze every 5 seconds (GPU and CPU stay almost at 40%). All my other movies at 4k HDR work just fine at native resolution, but this specific movie at 1080p gives me problems (only on andorid TV, on windwos, linux, andorid work just fine). I add the codec info just in case:

General
Unique ID                   : 163429452611497228014276556916802127443 (0x7AF35E1ED4804915C47D1C58A9230653)
Complete name               : M:\Movies\Regular\The Endless (2017) {imdb-tt3986820} [1080p]\The Endless (2017) {imdb-tt3986820} [1080p].mkv
Format                      : Matroska
Format version              : Version 4
File size                   : 3.65 GiB
Duration                    : 1 h 51 min
Overall bit rate            : 4 690 kb/s
Encoded date                : UTC 2021-08-15 00:47:51
Writing application         : mkvmerge v59.0.0 ('Shining Star') 64-bit
Writing library             : libebml v1.4.2 + libmatroska v1.6.4

Video
ID                          : 1
Format                      : AVC
Format/Info                 : Advanced Video Codec
Format profile              : High@L5.1
Format settings             : CABAC / 4 Ref Frames
Format settings, CABAC      : Yes
Format settings, Reference  : 4 frames
Codec ID                    : V_MPEG4/ISO/AVC
Duration                    : 1 h 51 min
Bit rate                    : 3 920 kb/s
Width                       : 1 920 pixels
Height                      : 800 pixels
Display aspect ratio        : 2.40:1
Frame rate mode             : Constant
Frame rate                  : 24.000 FPS
Color space                 : YUV
Chroma subsampling          : 4:2:0
Bit depth                   : 8 bits
Scan type                   : Progressive
Bits/(Pixel*Frame)          : 0.106
Stream size                 : 3.05 GiB (84%)
Writing library             : x264 core 157 r2935 545de2f
Encoding settings           : cabac=1 / ref=2 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=hex / subme=4 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-1 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=20 / rc=2pass / mbtree=1 / bitrate=3920 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=300000 / vbv_bufsize=300000 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Default                     : Yes
Forced                      : No
Color range                 : Limited
Color primaries             : BT.709
Transfer characteristics    : BT.709
Matrix coefficients         : BT.709

Audio #1
ID                          : 2
Format                      : AAC LC
Format/Info                 : Advanced Audio Codec Low Complexity
Codec ID                    : A_AAC-2
Duration                    : 1 h 51 min
Bit rate                    : 128 kb/s
Channel(s)                  : 2 channels
Channel layout              : L R
Sampling rate               : 48.0 kHz
Frame rate                  : 46.875 FPS (1024 SPF)
Compression mode            : Lossy
Delay relative to video     : -21 ms
Stream size                 : 102 MiB (3%)
Language                    : English
Default                     : Yes
Forced                      : No

Audio #2
ID                          : 3
Format                      : AC-3
Format/Info                 : Audio Coding 3
Commercial name             : Dolby Digital
Codec ID                    : A_AC3
Duration                    : 1 h 51 min
Bit rate mode               : Constant
Bit rate                    : 640 kb/s
Channel(s)                  : 6 channels
Channel layout              : L R C LFE Ls Rs
Sampling rate               : 48.0 kHz
Frame rate                  : 31.250 FPS (1536 SPF)
Compression mode            : Lossy
Delay relative to video     : -5 ms
Stream size                 : 510 MiB (14%)
Language                    : English
Service kind                : Complete Main
Default                     : Yes
Forced                      : No

Menu
00:00:00.000                : 00:00:00.000
00:06:27.833                : 00:06:27.833
00:13:14.875                : 00:13:14.875
00:20:40.917                : 00:20:40.875
00:27:18.958                : 00:27:18.833
00:34:47.500                : 00:34:47.500
00:41:36.625                : 00:41:36.625
00:47:47.042                : 00:47:47.000
00:55:59.125                : 00:55:59.083
01:02:50.583                : 01:02:50.583
01:08:07.292                : 01:08:07.292
01:16:44.250                : 01:16:44.250
01:24:00.750                : 01:24:00.708
01:31:21.083                : 01:31:21.042
01:37:53.958                : 01:37:53.917
01:47:16.000                : 01:47:15.875

The device may not support H.264 High@5.1.

High@4.0 is plenty for 1920x1080 at 24fps (Wikipedia). 1080p Blu-ray rips are High@4.1.

You could check the Plex server logs or Android client logs for details.

Server Logs: Look in Plex Media Server.[x].log for lines with MDE:.
Client Logs: Look for lines with MediaDecisionEngine.

Server Logs: Settings → Troubleshooting → Download Logs
Android Client Logs: Android, Android TV, Fire TV, Portal Logs

4K HDR is HEVC video. The device will have different limits for HEVC than it does for AVC/H.264.

According to the AndoridTV configuration, the recommended H.264 is 5.2, and Plex is automatically set to that.

This are the logs:

08-15 23:53:34.275  i: [MediaDecisionEngine] Starting media decision for: El infinito (part index 0)
08-15 23:53:34.276  i: [MediaDecisionEngine] Transcode server selected: FRANCO-NAS
08-15 23:53:34.280  i: [MediaDecisionEngine] Analyzing media: 1920x800 4687kbps (Container: mkv, Video: h264, Audio: aac)
08-15 23:53:34.300  i: [MediaDecisionEngine] Selected subtitle (srt) can be direct played (via Transcode? false)
08-15 23:53:34.555  i: [MediaDecisionEngine] Server was happy with client's original decision
08-15 23:53:34.591  i: [MediaDecisionEngine] Decision: CanPlay: true CanDirectPlay: true CanDirectStreamVideo: true CanDirectStreamAudio: true CanDirectPlaySubtitle: true CanTranscodeSubtitle: false CanDisplayVideo: true 
08-15 23:53:36.920  i: [FF] Loading canceled (released: false)
08-15 23:53:36.921  i: [FF] Input has been seeked to 345000000us.
08-15 23:53:36.928  i: [FFmpeg] [INFO] Demuxer is applying pending seek to 345000000 us, original target was 345000000 us.
08-15 23:53:36.929  i: [FFmpeg] [INFO] [Cache] Seeking in the reserve to 193211050 bytes, read position was 193456810 bytes.
08-15 23:53:36.990  i: [ExoPlayer][EventLogger] audioDecoderInitialized [eventTime=2.90, mediaPos=345.00, window=0, period=0, OMX.google.aac.decoder]
08-15 23:53:36.991  i: [ExoPlayer][EventLogger] audioInputFormat [eventTime=2.90, mediaPos=345.00, window=0, period=0, id=1, mimeType=audio/mp4a-latm, bitrate=0, codecs=aac, channels=2, sample_rate=48000, language=inglés]
08-15 23:53:38.705  i: [InteractionBehaviour] Slept, reason: Timeout reached.
08-15 23:53:38.706  i: [SystemUIBehaviour] Hiding the system user-interface.
08-15 23:53:42.394  i: [InteractionBehaviour] Woke up, reason: Interface visibility has been toggled.
08-15 23:53:42.398  i: [SystemUIBehaviour] Showing the system user-interface.
08-15 23:53:44.526  i: [BottomSheet] onSheetExpanding
08-15 23:53:44.717  i: [BottomSheet] onSheetExpanded
08-15 23:53:45.120  i: [ExoPlayer][EventLogger] videoDisabled [eventTime=11.03, mediaPos=345.00, window=0, period=0]
08-15 23:53:45.123  i: [ExoPlayer][EventLogger] audioDisabled [eventTime=11.03, mediaPos=345.00, window=0, period=0]
08-15 23:53:45.293  i: [FF][MediaPeriod] Releasing.
08-15 23:53:45.295  i: [FF] Loading canceled (released: true)
08-15 23:53:45.298  i: [FFmpeg] [INFO] Demuxer has been successfully interupted.
08-15 23:53:45.300  i: [FF] Releasing demuxer.
08-15 23:53:45.300  i: [FFmpeg] [INFO] Demuxer closing.
08-15 23:53:45.306  i: [FFmpeg] [INFO] [Cache] Close requested, terminating.
08-15 23:53:45.307  i: [FFmpeg] [INFO] [Cache] Terminating thread.
08-15 23:53:45.308  i: [FFmpeg] [INFO] [Cache] Thread has been terminated.
08-15 23:53:45.310  e: [ExoPlayer][EventLogger] playerFailed [eventTime=11.22, mediaPos=345.00, window=0, period=0
  com.google.android.exoplayer2.l0: MediaCodecVideoRenderer error, index=1, format=Format(0, null, null, video/avc, h264, -1, null, [1920, 800, 24.0], [-1, -1]), format_supported=YES
      at com.google.android.exoplayer2.p0.handleMessage(SourceFile:43)
      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: com.google.android.exoplayer2.video.o: Decoder failed: OMX.MTK.VIDEO.DECODER.AVC
      at com.google.android.exoplayer2.video.p.n(SourceFile:1)
      at com.google.android.exoplayer2.c2.t.render(SourceFile:24)
      at com.google.android.exoplayer2.p0.o(SourceFile:14)
      at com.google.android.exoplayer2.p0.handleMessage(SourceFile:25)
      ... 3 more
  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.c2.x.l(SourceFile:1)
      at com.google.android.exoplayer2.c2.t.drainOutputBuffer(SourceFile:7)
      at com.google.android.exoplayer2.c2.t.render(SourceFile:16)
      ... 5 more
]
08-15 23:53:45.311  e: [Player][ExoPlayer] Playback error detected
08-15 23:53:45.315  i: [Player][Timeline] Handling player error
08-15 23:53:45.317  i: [Player][Timeline] Playback stopped (error: true)
08-15 23:53:45.319  i: [Player][Timeline] Player error not known by server, reporting original player error (or a playback interrupted one)
08-15 23:53:45.319  i: [Player] Error reported: UnknownError (null)
08-15 23:53:45.320  i: [Player][Timeline] Playback stopped (error: false)
08-15 23:53:45.321  i: [FFmpeg] [INFO] [Cache] Cache has been closed, interrupting AVIO ...
08-15 23:53:45.324  e: An exception occurred: com.google.android.exoplayer2.l0: MediaCodecVideoRenderer error, index=1, format=Format(0, null, null, video/avc, h264, -1, null, [1920, 800, 24.0], [-1, -1]), format_supported=YES
08-15 23:53:45.325  e: Stacktrace: com.google.android.exoplayer2.l0: MediaCodecVideoRenderer error, index=1, format=Format(0, null, null, video/avc, h264, -1, null, [1920, 800, 24.0], [-1, -1]), format_supported=YES
	at com.google.android.exoplayer2.p0.handleMessage(SourceFile:43)
	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: com.google.android.exoplayer2.video.o: Decoder failed: OMX.MTK.VIDEO.DECODER.AVC
	at com.google.android.exoplayer2.video.p.n(SourceFile:1)
	at com.google.android.exoplayer2.c2.t.render(SourceFile:24)
	at com.google.android.exoplayer2.p0.o(SourceFile:14)
	at com.google.android.exoplayer2.p0.handleMessage(SourceFile:25)
	... 3 more
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.c2.x.l(SourceFile:1)
	at com.google.android.exoplayer2.c2.t.drainOutputBuffer(SourceFile:7)
	at com.google.android.exoplayer2.c2.t.render(SourceFile:16)
	... 5 more

08-15 23:53:45.330  i: [FFmpeg] [INFO] [Cache] Close requested, terminating.
08-15 23:53:45.331  i: [FFmpeg] [INFO] Demuxer pipeline terminated.
08-15 23:53:45.332  i: [FFmpeg] [INFO] Demuxer has been successfully closed.
08-15 23:53:45.335  i: [TranscodeFallbackBehaviour] Detected direct play failed, falling back to transcode (starting: true)
08-15 23:53:45.337  i: [VideoAwakeBehaviour] Keep screen awake has been requested disabled for VideoAwakeBehaviour.
08-15 23:53:45.339  i: [DisplayBehaviour] New ExoPlayerEngine detected, enabling: false.
08-15 23:53:45.342  i: [Player][ExoPlayer] Using PlayQueueMediaSource
08-15 23:53:45.342  i: [MediaCodecVideoSyncRenderer] Setting allow dummy surface: false
08-15 23:53:45.343  i: [TrackSelectorHelper] Resetting track selection
08-15 23:53:45.344  i: [ExoPlayer][EventLogger] seekStarted [eventTime=11.26, mediaPos=0.00, window=0, period=0]
08-15 23:53:45.352  i: [Player] Error has been consumed by Transcode Fallback Behaviour and will not continue.
08-15 23:53:45.352  i: [ExoPlayer][EventLogger] loading [eventTime=11.26, mediaPos=0.00, window=0, period=0, false]
08-15 23:53:45.353  i: [ExoPlayer][EventLogger] state [eventTime=11.26, mediaPos=0.00, window=0, period=0, IDLE]
08-15 23:53:45.354  i: [ExoPlayer][EventLogger] timeline [eventTime=11.27, mediaPos=345.00, window=0, periodCount=1, windowCount=1, reason=PLAYLIST_CHANGED
08-15 23:53:45.356  i: [MediaDecisionEngine] Starting media decision for: El infinito (part index 0)
08-15 23:53:45.357  i: [ExoPlayer][EventLogger]   period [?]
08-15 23:53:45.358  i: [ExoPlayer][EventLogger]   window [?, seekable=false, dynamic=true]
08-15 23:53:45.359  i: [ExoPlayer][EventLogger] ]
08-15 23:53:45.360  i: [MediaDecisionEngine] Transcode server selected: FRANCO-NAS
08-15 23:53:45.361  i: [Player][ExoPlayer] onTimelineChanged (Position: 345000 ms, Duration: 0 ms)
08-15 23:53:45.362  i: [ExoPlayer][EventLogger] mediaItem [eventTime=11.27, mediaPos=345.00, window=0, reason=PLAYLIST_CHANGED]
08-15 23:53:45.364  i: [ExoPlayer][EventLogger] tracks [eventTime=11.27, mediaPos=345.00, window=0, []]
08-15 23:53:45.365  i: [ExoPlayer][EventLogger] staticMetadata [eventTime=11.27, mediaPos=345.00, window=0
08-15 23:53:45.366  i: [ExoPlayer][EventLogger] ]
08-15 23:53:45.367  i: [MediaDecisionEngine] Analyzing media: 1920x800 4687kbps (Container: mkv, Video: h264, Audio: aac)
08-15 23:53:45.368  i: [MediaDecisionEngine] Unable to direct play; Se intentó realizar la reproducción directa pero falló, volviendo a transcodificación.
08-15 23:53:45.368  i: [ExoPlayer][EventLogger] positionDiscontinuity [eventTime=11.27, mediaPos=345.00, window=0, SEEK]
08-15 23:53:45.369  i: [Player][ExoPlayer] onPositionDiscontinuity, Reason: 1
08-15 23:53:45.370  i: [ExoPlayer][EventLogger] timeline [eventTime=11.27, mediaPos=345.00, window=0, periodCount=1, windowCount=1, reason=PLAYLIST_CHANGED
08-15 23:53:45.371  i: [ExoPlayer][EventLogger]   period [?]
08-15 23:53:45.372  i: [ExoPlayer][EventLogger]   window [?, seekable=false, dynamic=true]
08-15 23:53:45.372  i: [ExoPlayer][EventLogger] ]
08-15 23:53:45.372  i: [Player][ExoPlayer] onTimelineChanged (Position: 345000 ms, Duration: 0 ms)
08-15 23:53:45.373  i: [ExoPlayer][EventLogger] mediaItem [eventTime=11.27, mediaPos=345.00, window=0, reason=PLAYLIST_CHANGED]
08-15 23:53:45.376  i: [ExoPlayer][EventLogger] state [eventTime=11.28, mediaPos=345.00, window=0, BUFFERING]
08-15 23:53:45.379  i: [video] User maximum h264 profile determined: 52
08-15 23:53:45.380  i: [video] Device recommended h264 profile determined: 52
08-15 23:53:45.380  i: [ExoPlayer][EventLogger] loading [eventTime=11.29, mediaPos=345.00, window=0, period=0, true]
08-15 23:53:45.506  i: [BufferHelper] Assumed Bitrate: 400000, Segment Count: 46875
08-15 23:53:45.506  i: [BufferHelper] Detected memory pressure, reducing segment count to fit available memory: 512
08-15 23:53:45.507  i: [BufferHelper] Segment count: 3276
08-15 23:53:45.555  i: [MediaDecisionEngine] Server was happy with client's original decision
08-15 23:53:45.556  i: [MediaDecisionEngine] Decision: CanPlay: true CanDirectPlay: false CanDirectStreamVideo: false CanDirectStreamAudio: false CanDirectPlaySubtitle: false CanTranscodeSubtitle: false CanDisplayVideo: true Transcode Reason: Se intentó realizar la reproducción directa pero falló, volviendo a transcodificación. 

And other problem… it constantly warning me “you connection is no sufficient to play in real time this video”. But I’m on LAN (1gbps).
Al other videos work just fine

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.