nthornton2010 0 Posted 20 hours ago Posted 20 hours ago (edited) Emby is downgrading my 4K HDR playback to 1080p SDR when transcoding for my Roku Ultra LT. The original source is approximately 85.7 Mbps. I intentionally set the Roku's maximum streaming bitrate to 35 Mbps to force Emby to transcode it to a bitrate suitable for 4K streaming on the Roku. The goal is 4K playback at 35 Mbps, not 1080p. The Roku advertises: VideoCodec=h264,hevc,mpeg2video MaxWidth=3840&MaxHeight=2160 hevc-maxframerate=60 However, Emby selects h264_qsv, scales to 1920×1080, and applies 8-bit tone mapping, converting the HDR source to SDR. Roku's streaming specifications support 4K HEVC Main 10, HDR10, and bitrates up to 40 Mbps. My requested 35 Mbps is within those limits. Could this be a capability-negotiation or codec-selection bug? Does the codec order cause Emby to prefer H.264 over HEVC? Could the absence of HEVC profile and bit-depth parameters in the Roku request cause Emby to disregard HEVC? If neither explains this behavior, why does Emby select H.264 and 1080p despite the advertised 4K and HEVC capabilities? Environment Emby Server 4.10.2.0 (Linux) Roku Ultra LT, Emby app 4.1.70 Roku OS 16.0.4.853-DE Intel Quick Sync hardware transcoding Experimental HEVC encoding enabled I've attached the corresponding Emby Server and FFmpeg logs. Please let me know if you need any additional information. Thank you for any help you can provide! ffmpeg-transcode-391ca915-2ba1-4e52-8796-c895ed94f3d5_1.txt embyserver.txt Edited 20 hours ago by nthornton2010
Luke 43745 Posted 19 hours ago Posted 19 hours ago hi there, how have you configured the quality setting in the app ?
Luke 43745 Posted 19 hours ago Posted 19 hours ago OK I see that you set it to 35 mbps. In server transcoding settings, there is an option to limit the maximum transcoding bitrate. How is that set ?
nthornton2010 0 Posted 19 hours ago Author Posted 19 hours ago Hi! Do you mean the `Maximum Transcoding Resolution` setting? If so, its set to `No limit`.
Luke 43745 Posted 19 hours ago Posted 19 hours ago OK, so what does the transcoding look like if you disable hevc transcoding ?
nthornton2010 0 Posted 19 hours ago Author Posted 19 hours ago The same, no improvement. Initially it was disabled but I enabled that setting to see if it would fix this but it didn't.
Luke 43745 Posted 19 hours ago Posted 19 hours ago 1 minute ago, nthornton2010 said: The same, no improvement. Initially it was disabled but I enabled that setting to see if it would fix this but it didn't. can you please provide an ffmpeg log from that? Thanks.
nthornton2010 0 Posted 19 hours ago Author Posted 19 hours ago Here's a ffmpeg log with experimental hvec transcoding disabled. ffmpeg-transcode-ea503aa1-8452-4672-945c-8597509a6f0f_1.txt
speechles 2131 Posted 9 hours ago Posted 9 hours ago (edited) @LukeGemini the google AI (not SI) bot seems to think that anything lower than 40MB/s is going to cause 4K to become 1080P. Is there any truth to that? I can see the Roku is doing everything it can to inform the server of the capabilities here. Nothing out of whack there. But is the server seeing that 35MB/s bitrate and thinking that cannot possibly hold 4K and doing this downscale to 1080p on its own? Edited 9 hours ago by speechles
nthornton2010 0 Posted 7 hours ago Author Posted 7 hours ago @speechlesI don't know if this is true, but ChatGPT thought the problem might be that Roku sends h264 before hevc in its video codec list and the server could be prioritizing based on the order rather than best quality codec to worst. It inferred that from this post, it's from 2019 so not sure if it's still relevant.
speechles 2131 Posted 7 hours ago Posted 7 hours ago (edited) 10 minutes ago, nthornton2010 said: @speechlesI don't know if this is true, but ChatGPT thought the problem might be that Roku sends h264 before hevc in its video codec list and the server could be prioritizing based on the order rather than best quality codec to worst. It inferred that from this post, it's from 2019 so not sure if it's still relevant. The server either allows HEVC transcoding or doesn't. There is a setting for it. If we put HEVC first on the Roku and you did not have HEVC transcoding enabled it will error out. The server is supposed to be smart enough to figure this out without the client having to for that part. That is why the Roku isn't doing that part. @LukeIs the server not figuring that part out? Should we be reading that setting when create the capabilities ordering? Any reason why you aren't using 110MB/sec for the bitrate limit. Then it would direct play no issues. Why are you involve transcoding? Is your WiFi/LAN not up to the task of providing that kind of bandwidth? The Roku can support up to 100MB/s when wired and 140MB/s if using WiFi. The ethernet port isn't giga-speed is why LAN is lower limit. Edited 7 hours ago by speechles
nthornton2010 0 Posted 6 hours ago Author Posted 6 hours ago (edited) @speechlesI switched it to 35mbps because of this bug (I commented on that post earlier last night). If you try to play 4K through Emby on any bitrate at or above 40 on Roku, Emby won't play, it just hangs. Switching to 35 allowed it to play (though at 1080p). This is only a problem for 4K. I can leave 1080p at Auto, even movies that play higher than 40mbps. After Googling, it sounds like the following issue has been reported a few times in different threads. I would LOVE to just leave the device at Auto. That said, I should be able to transcode the 4K movie down without it switching to 1080p. Edited 6 hours ago by nthornton2010
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now