Android TV HiSmartTV A4 - 8.15.2.24006 - Transcoding 4k HEVC

Server Version#: 1.22.2.4282
Player Version#: 8.15.2.24006

HiSense 50H8G Android TV - Ethernet connected.
4K content is always being transcoded (video and audio). Direct Stream is not working for 4K HEVC content.
image

DirectStream video working fine for 1080p h.264, but audio is being transcoded (secondary problem) rather than passed out HDMI (as configured in the player settings).
image

Would need logs from the Android TV app to see what’s going on, Android, Android TV, Fire TV Logs | Plex Support.

Likely something from your TV is telling Plex that is doesn’t like 4k 10-buit hevc.

For the passthrough issues, your TV is likely connected to your AVR via arc. You can’t passthrough TrueHD via arc. Plex doesn’t yet support eArc which is needed to passthrough TrueHD.

Thanks, @anon18523487 - I’ll settle for the audio xcode, you are correct the TV is connected to an AVR via ARC. I believe I found the relevant log from the client and why the decision is made, for some reason the “current mode” is 1920x1080.
04-16 21:36:50.898 i: [DisplayBehaviour] Current mode detected as 1920x1080 @ 60.0000Hz (1).
04-16 21:36:50.900 e: Error fetching http://127.0.0.1:32500/library/metadata/6717:
Failure: 500 Internal Server Error

04-16 21:36:50.901 i: [PictureInPictureBehaviour] Picture-in-picture is available and can be used.
04-16 21:36:50.904 i: [ConnectivityManager] Device is under Ethernet
04-16 21:36:50.914 i: [MediaDecisionEngine] Analyzing media: 3840x2160 32672kbps (Container: mpegts, Video: hevc, Audio: eac3)
04-16 21:36:50.926 i: [MediaDecisionEngine] Unable to direct play; Device cannot play this video format at 3840 x 2160

@anon18523487 - to be clear, the mode being reported as 1920x1080 is incorrect since this is a 4K model. Is this a Plex app issue or an Android TV (manufacturer) issue? If the later, can Plex help to resolve it? I don’t seem to have an issue with streaming UHD HDR content in other apps (not Plex).

The Plex UI runs at 1080p, so that is the resolution being used prior to starting playback.

04-16 21:36:50.900 e: Error fetching http://127.0.0.1:32500/library/metadata/6717:
Failure: 500 Internal Server Error

I’ll need to see your logs to check what is causing this error.

Let me know if you need more. Stacktrace: java.lang.IllegalArgumentException: Invalid URL port: “0”

04-20 18:04:41.482 i: [OneApp] User can execute command without restrictions because they are entitled.
04-20 18:04:41.486 i: [PlaybackManager] Preparing for Lg Demo Dolbyvision Comparison
04-20 18:04:41.487 i: [DefaultPlaybackManager] Passthrough is enabled.
04-20 18:04:41.497 i: [VideoUtils] MediaCodec found (OMX.MS.AVC.Decoder) for video/avc
04-20 18:04:41.498 i: [VideoUtils] MediaCodec found (OMX.google.hevc.decoder) for video/hevc
04-20 18:04:41.499 i: [VideoUtils] MediaCodec found (OMX.MS.DOLBY_VISION.Decoder) for video/dolby-vision
04-20 18:04:41.500 i: [VideoUtils] MediaCodec found (OMX.MS.MPEG2.Decoder) for video/mpeg2
04-20 18:04:41.501 i: [VideoUtils] MediaCodec found (OMX.MS.M4V.Decoder) for video/mp4v-es
04-20 18:04:41.502 i: [VideoUtils] MediaCodec found (OMX.MS.VP8.Decoder) for video/x-vnd.on2.vp8
04-20 18:04:41.503 i: [VideoUtils] MediaCodec found (OMX.MS.VP9.Decoder) for video/x-vnd.on2.vp9
04-20 18:04:41.504 i: [MediaCodecCaps] Support detected: (audio/raw, Max: 8)
04-20 18:04:41.505 i: [MediaCodecCaps] Support detected: (audio/mpeg-L1, Max: 1)
04-20 18:04:41.505 i: [MediaCodecCaps] Support detected: (audio/mpeg-L2, Max: 1)
04-20 18:04:41.506 i: [MediaCodecCaps] Support detected: (audio/mpeg, Max: 2)
04-20 18:04:41.507 i: [MediaCodecCaps] Support detected: (audio/ac3, Max: 6)
04-20 18:04:41.508 i: [MediaCodecCaps] Support detected: (audio/eac3, Max: 6)
04-20 18:04:41.509 i: [MediaCodecCaps] Support detected: (audio/vnd.dts, Max: 1)
04-20 18:04:41.510 i: [MediaCodecCaps] Support detected: (audio/vnd.dts.hd, Max: 1)
04-20 18:04:41.510 i: [MediaCodecCaps] Not support: audio/true-hd
04-20 18:04:41.523 i: [DefaultPlaybackManager] No codecs being downloaded.
04-20 18:04:41.536 i: [PlayQueues] Creating delayed remote PQ.
04-20 18:04:41.569 i: [MediaBrowserAudioService] onCreate
04-20 18:04:41.573 i: [PlayerService] onCreate
04-20 18:04:41.589 i: [ConnectivityManager] Device is under Ethernet
04-20 18:04:41.590 i: [Player] Changing to use ExoPlayer for playback.
04-20 18:04:41.764 i: [MemoryOptimisationBehaviour] Reducing memory cache.
04-20 18:04:41.771 i: [CurrentItemMetadataBehaviour] Fetching current item
04-20 18:04:41.772 i: Fetching [method:GET] https://192.168.122.11:32400/library/metadata/6717?includeChapters=1&includeLoudnessRamps=1&includeMarkers=1&includeRelated=1&X-Plex-Token=...W2kb
04-20 18:04:41.773 i: [MediaSessionHelper] Starting media session with tag: video
04-20 18:04:41.774 i: [MediaSessionHelper] Creating media session with tag: video
04-20 18:04:41.790 i: [MediaSessionBehaviour] Updating metadata for video, thumb: false
04-20 18:04:41.807 i: [InteractionBehaviour] Slept, reason: Startup.
04-20 18:04:41.814 i: [CurrentItemMetadataBehaviour] Fetched current item, success: true
04-20 18:04:41.829 i: [MediaSessionHelper] Releasing media session with tag: video
04-20 18:04:41.840 i: [MediaSessionHelper] Starting media session with tag: music
04-20 18:04:41.841 i: [MediaSessionHelper] Creating media session with tag: music
04-20 18:04:41.843 i: [MediaSessionBehaviour] Updating metadata for video, thumb: true
04-20 18:04:41.845 i: [VideoAwakeBehaviour] Keep screen awake has been requested disabled for VideoAwakeBehaviour.
04-20 18:04:41.850 i: [DisplayBehaviour] New ExoPlayerEngine detected, enabling: false.
04-20 18:04:41.853 i: [Player][ExoPlayer] Using PlayQueueMediaSource
04-20 18:04:41.854 i: [MediaCodecVideoSyncRenderer] Setting allow dummy surface: false
04-20 18:04:41.855 i: [ExoPlayer][EventLogger] playWhenReady [eventTime=0.15, mediaPos=0.00, window=0, true, USER_REQUEST]
04-20 18:04:41.857 i: [ExoPlayer][EventLogger] timeline [eventTime=0.16, mediaPos=0.00, window=0, periodCount=1, windowCount=1, reason=PLAYLIST_CHANGED
04-20 18:04:41.862 i: [ExoPlayer][EventLogger] period [?]
04-20 18:04:41.863 i: [ExoPlayer][EventLogger] window [?, false, true]
04-20 18:04:41.865 i: [ExoPlayer][EventLogger] ]
04-20 18:04:41.866 i: [Player][ExoPlayer] onTimelineChanged (Position: 0 ms, Duration: 0 ms)
04-20 18:04:41.867 i: [ExoPlayer][EventLogger] mediaItem [eventTime=0.16, mediaPos=0.00, window=0, reason=PLAYLIST_CHANGED]
04-20 18:04:41.868 i: [ExoPlayer][EventLogger] state [eventTime=0.16, mediaPos=0.00, window=0, BUFFERING]
04-20 18:04:41.869 i: [MediaDecisionEngine] Starting media decision for: Lg Demo Dolbyvision Comparison (part index 0)
04-20 18:04:41.870 i: [MediaDecisionEngine] Transcode server selected: ewok
04-20 18:04:41.874 i: Fetching [method:GET] http://127.0.0.1:32500/library/metadata/6717
04-20 18:04:41.888 i: Creating PlayerActivity.
04-20 18:04:41.889 i: [Activity] Resuming the application, attempting to download item and children.
04-20 18:04:41.898 i: [Boot] PlayerActivity took 11ms to run create behaviours.
04-20 18:04:41.901 i: [PlayerActivity] Creating fragment
04-20 18:04:41.904 i: [HttpServer] /127.0.0.1:43728 - GET /library/metadata/6717
04-20 18:04:41.910 e: [Sync] Error forwarding request http://127.0.0.1:32500/library/metadata/6717 to nano server.
04-20 18:04:41.922 e: An exception occurred: java.lang.IllegalArgumentException: Invalid URL port: “0”
04-20 18:04:41.923 e: Error fetching http://127.0.0.1:32500/library/metadata/6717:
Failure: 500 Internal Server Error

04-20 18:04:41.929 i: [MediaDecisionEngine] Analyzing media: 3840x2160 21404kbps (Container: mpegts, Video: hevc, Audio: eac3)
04-20 18:04:41.933 i: [Player][DimensionsLayout] Resizing: 100 x 100
04-20 18:04:41.938 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.g0.s(SourceFile:8)
at org.jboss.netty.channel.p0.d(SourceFile:2)
at org.jboss.netty.channel.DefaultChannelPipeline.u(SourceFile:1)
at org.jboss.netty.channel.DefaultChannelPipeline$a.a(SourceFile:2)
at g.a.a.c.c.d.d(SourceFile:7)
at org.jboss.netty.channel.DefaultChannelPipeline.u(SourceFile:1)
at org.jboss.netty.channel.DefaultChannelPipeline$a.a(SourceFile:2)
at g.a.a.c.a.a.g.s(SourceFile:16)
at org.jboss.netty.channel.p0.d(SourceFile:2)
at org.jboss.netty.channel.DefaultChannelPipeline.u(SourceFile:1)
at org.jboss.netty.channel.DefaultChannelPipeline$a.a(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.d(SourceFile:2)
at org.jboss.netty.channel.DefaultChannelPipeline.u(SourceFile:1)
at org.jboss.netty.channel.DefaultChannelPipeline.a(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 g.a.a.e.g.run(SourceFile:7)
at g.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)

04-20 18:04:41.939 i: [MediaDecisionEngine] Unable to direct play; Device cannot play this video format at 3840 x 2160

That’s not enough of the log. Please provide the entire log output saved as a file.

Attached are the logs from the HiSense as well as a Tivo Stream 4K, the Tivo Stream 4K Direct Plays fine, the HiSense transcodes. I navigated to the content thumbnail, then the logs start before I selected the content, then played the content, then paused the content after a few seconds.
The Tivo Stream 4K is connected to the HiSense via HDMI where as the HiSense is the embedded app.
I updated the Plex app on the HiSense, same behavior as the old app.

HiSense Plex App version 8.15.2.24006
Tivo Stream 4K Plex App version 8.16.0.24423
Updated HiSense Plex App version 8.16.0.24423

Plex-HiSense-new.txt (50.5 KB)
Plex-HiSense.txt (47.4 KB)
Plex-TivoStream.txt (37.9 KB)

Can you provide the XML for that video? Investigate Media Information and Formats | Plex Support

I’m using an LG demo clip: LG: Dolby Vision Comparison UHD 4K Demo | 4K Media

<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="2" librarySectionTitle="Movies" librarySectionUUID="5dfc9712-a94f-4794-a60d-fdeb38fe4b2b" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1617650286">

<Video ratingKey="6717" key="/library/metadata/6717" guid="local://6717" type="movie" title="Lg Demo Dolbyvision Comparison" librarySectionTitle="Movies" librarySectionID="2" librarySectionKey="/library/sections/2" summary="" viewCount="2" lastViewedAt="1618623730" thumb="/library/metadata/6717/thumb/1618587459" art="/library/metadata/6717/art/1618587459" duration="75488" addedAt="1618587449" updatedAt="1618587459">

<Media id="9049" duration="75488" bitrate="21404" width="3840" height="2160" aspectRatio="1.78" audioChannels="6" audioCodec="eac3" videoCodec="hevc" videoResolution="4k" container="mpegts" videoFrameRate="24p" videoProfile="main 10">

<Part accessible="1" exists="1" id="9473" key="/library/parts/9473/1618586922/file.mkv" duration="75488" file="/mnt/plex/Movies/LG Demo DolbyVision Comparison.mkv" size="308162644" container="mpegts" deepAnalysisVersion="4" packetLength="188" requiredBandwidths="29356,25763,21064,21056,21056,21056,21056,21056" videoProfile="main 10">

<Stream id="24355" streamType="1" codec="hevc" index="0" bitrate="20636" DOVIBLCompatID="0" DOVIBLPresent="1" DOVIELPresent="1" DOVILevel="6" DOVIPresent="1" DOVIProfile="4" DOVIRPUPresent="1" DOVIVersion="1.0" bitDepth="10" chromaSubsampling="4:2:0" codecID="[36][0][0][0]" codedHeight="2160" codedWidth="3840" colorRange="tv" frameRate="23.976" height="2160" level="150" profile="main 10" refFrames="1" requiredBandwidths="28586,24996,20631,20631,20631,20631,20631,20631" streamIdentifier="33" width="3840" displayTitle="4K (HEVC Main 10)" extendedDisplayTitle="4K (HEVC Main 10)"> </Stream>

<Stream id="24356" streamType="2" selected="1" codec="eac3" index="1" channels="6" bitrate="768" audioChannelLayout="5.1(side)" requiredBandwidths="721,721,721,721,721,721,721,721" samplingRate="48000" streamIdentifier="35" displayTitle="Unknown (EAC3 5.1)" extendedDisplayTitle="Unknown (EAC3 5.1)"> </Stream>

</Part>

</Media>

<Extras size="0"> </Extras>

<Related> </Related>

</Video>

</MediaContainer>

I wonder if it’s the mpegts container. Maybe your TV doesn’t support something about that. Can you remux that to an mp4 and see if that works?

I converted to .mp4 with ffmpeg, same results, there just doesn’t seem to be enough debug in the client to assess what is happening. Is there any way to turn on more debug?

ffmpeg -i “LG Demo DolbyVision Comparison.mkv” -codec copy 0LG-Demo-DolbyVision-Comparison.mp4

04-22 15:01:02.978 i: [MediaDecisionEngine] Analyzing media: 3840x2160 21411kbps (Container: mp4, Video: hevc, Audio: eac3)
04-22 15:01:02.984 i: [Player][DimensionsLayout] Resizing: 100 x 100
04-22 15:01:03.030 i: [DisplayBehaviour] Activity has been changed, searching for available modes.
04-22 15:01:03.034 i: [DisplayBehaviour] Current mode detected as 1920x1080 @ 60.0000Hz (1).
04-22 15:01:03.035 i: [MediaDecisionEngine] Unable to direct play; Device cannot play this video format at 3840 x 2160

That decision is coming from the TV. It does report supporting Dolby Visions, so it could be a specific detail of the DV that the device doesn’t like. Can you repost one of your logs showing it not working over in Newest Beta Dolby Vision Issue. DV support is still relatively new. One of the devs for the app is watching that thread so hopefully he will have more info for you.

I cross-posted, but I think I narrow it down a bit. I think it’s related to the 10-bit HEVC rather than explicitly DV. I transcoded the content in Handbrake and 2160p x265 10-bit yields a transcode by Plex, but 2160p x265 and 2160p h.265 nvidia DirectPlay.

I put the files on a USB drive and connected them to the TV, the x265 10-bit don’t play, but the DV plays fine.

The 2160p x265 10-bit DirectPlays on the TivoStream4k.

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