Kodi downscaling 4K UHD streaming channels from tvheadend to 1080p

Hi,

I’m having an issue when trying to play UHD H265 channels on my Vero4K vía tvheadend addon.

The stream starts playing fine, then after some seconds the TV switches to 1080p mode. That’s, the UHD stream keeps playing but Kodi is playing it downscaled to 1080p.

Logs here:
https://paste.osmc.tv/oyiwutomoc

This is what I get:

12:49:07.021 T:3222348544 NOTICE: Opening stream: 5 source: 256
12:49:07.061 T:3242947328 NOTICE: CAMLCodec::OpenDecoder - using V4L2 pts format: 64Bit
12:49:07.804 T:4080616016 NOTICE: Display resolution ADJUST : 3840x2160 @ 25.00 - Full Screen (31) (weight: 0.000)
12:49:07.804 T:4080616016 NOTICE: VideoPlayer: OnLostDisplay received
12:49:08.234 T:4080616016 ERROR: EGL error in CreateSurface: 3003
12:49:08.234 T:4080616016 NOTICE: CreateWindow: Could not create a surface. Trying with a fresh Native Window.
12:49:08.274 T:4080616016 NOTICE: VideoPlayer: OnResetDisplay received
12:49:08.874 T:3242947328 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
12:49:13.474 T:4080616016 NOTICE: Display resolution ADJUST : 1920x1080 @ 50.00 - Full Screen (26) (weight: 0.000)
12:49:13.475 T:4080616016 NOTICE: VideoPlayer: OnLostDisplay received
12:49:13.753 T:4080616016 NOTICE: VideoPlayer: OnResetDisplay received
12:49:35.521 T:4080616016 NOTICE: Display resolution ADJUST : 1920x1080 @ 50.00 - Full Screen (26) (weight: 0.000)

I’m not having any issue playing H265 UHD movies, only with the channel streaming from my tvheadend server.

Can you enable debug logging and reproduce?
Try setting Adjust Refresh Rate to Start / Stop instead of always

Sam

Adjust refresh rate is set to Start/Stop.

Debug log enable, fresh reboot, trying to play an UHD channel:

https://paste.osmc.tv/umomiqawip

TVHeadend is streaming the full untouched stream (2160p).

https://streamable.com/8uzgl

Here you can see how Kodi starts playing at 1/4 of the screen, then switches to fullscreen, then TV switches to 1080p (TV doesn’t switch to 1080p when playing any other UHD content, as movies or series).

Hi

I see

12:06:00.676 T:3566985984 DEBUG: CRenderManager::Configure - change configuration. 3840x2160. display: 3840x2160. framerate: 50.00. format: AMLCODEC
12:06:00.683 T:3534242560 DEBUG: CDVDClock::ErrorAdjust - CVideoPlayerAudio::OutputPacket - error:11043.902386, adjusted:11043.902386
12:06:00.702 T:4081046096 DEBUG: CRenderManager::Configure - 4
12:06:00.742 T:4081046096 NOTICE: Display resolution ADJUST : 1920x1080 @ 50.00 - Full Screen (26) (weight: 0.000)

I believe it’s because there’s no 2160p50 output mode.
Try setting fallback framerate to 25fps.

Sam

Thanks,

There is no option to set fallback framerate to 25fps, only 50 and 59.94hz.

Does your TV support 4k at 50/60Hz? If so, it looks like HDMI3 socket is limited. Try HDMI1. Reboot after re-plugging.

As per user manual, yes, the TV supports 2160p 50 and 60Hz on HDMI 2 and HDMI 3 plugs.

• 480i: 24 Hz, 25 Hz, 30 Hz, 50 Hz, 60 Hz

• 480p: 24 Hz, 25 Hz, 30 Hz, 50 Hz, 60 Hz

• 576i: 24 Hz, 25 Hz, 30 Hz, 50 Hz, 60 Hz

• 576p: 24 Hz, 25 Hz, 30 Hz, 50 Hz, 60 Hz

• 720p: 24 Hz, 25 Hz, 30 Hz, 50 Hz, 60 Hz

• 1080i: 24 Hz, 25 Hz, 30 Hz, 50 Hz, 60 Hz

• 1080p: 24 Hz, 25 Hz, 30 Hz, 50 Hz, 60 Hz

• 3840 x 2160p: 24 Hz, 25 Hz, 30 Hz, 50 Hz, 60 Hz

1 Like

Wow, solved setting HDMI3 to 4:4:4/4:2:2 (was 4:2:0 before).

Thanks for the help, problem solved.

Yes, 4:2:0 cannot carry 50Hz at 2160p
Glad all working now

Very odd. In fact 4k50Hz will always be sent at 4:2:0. There’s something strange about Philips’ description of the different modes.