jellyfin / jellyfin-web

Web Client for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
2.19k stars 1.17k forks source link

Do not upscale or unnecessarily increase bitrate #5673

Open xxzandy opened 1 month ago

xxzandy commented 1 month ago

Describe The Bug

Live tv in Webclient autodetects 120MBs bitrate, and UPSCALES the original h.264 1080i to 4k with Edge (Chromium). It never makes sense to upscale (especially on server side).

This unnecessary step creates a huge load for transcoding.

Of course this can be mitigated by the end user by selecting a lower bitrate and resolution, but Jellyfin should:

Steps To Reproduce Open live TV on Webclient on Edge.

Expected Behavior

See maximum of native stream or downwards (bitrate) encode stream. Not upscaled stream

Logs

Screenshots

System (please complete the following information): Edge

Additional Context

thornbill commented 1 month ago

Please fill out the version information and we are going to need ffmpeg logs for this because Jellyfin doesn't have any upscaling capabilities.

xxzandy commented 1 month ago

Yellow tint on the screenshots is the "night light" setting on Windows, so that can be disregarded but otherwise the picture quality on auto is messed up. The insane bitrate isn't close to the ~7mbs that comes from the tvheadend server. When manually selecting 720p, the video shows right. I agree (now) that it is not upscaling, but transcoding to a higher bitrate than the original.

Screenshots:

0001 0002

ffmpeg log: f.log

xxzandy commented 1 month ago

Edit: "Jellyfin Media Player" (mpv) gets it right, and starts "direct streaming" immediately. Same client computer W11. However, the subtitle streams are missing but that is another issue.