Jellyfin Forum
How to transcode only for HDR to SDR ?? - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: How to transcode only for HDR to SDR ?? (/t-how-to-transcode-only-for-hdr-to-sdr)



How to transcode only for HDR to SDR ?? - SaladCesar - 2023-07-18

Hi,

I'm new to transcoding. For years I was only allowing direct play, that wasn't a problem because all my devices support HEVC decoding. But now comes the problem of HDR. I have very few HDR screens, and most client devices playing can't do proper tonemapping / HDR2SDR like my Odroid N2+ or Raspberry Pi 4. I have a lot of movies that comes with HDR (even Dolby Vision sometimes) and that leads to washed out colors on most screens.

My server is hosted in a Docker container, running Debian on an AMD Ryzen 3 3200G CPU with iGPU.

I want to keep direct play every time it's possible. Is it possible to transcode only when the file is HDR and apply minimal modification except tonemapping / HDR to SDR ? How should I configure my transcoding settings ?

Thanks in advance for any answer.
Have a great day


RE: How to transcode only for HDR to SDR ?? - TheDreadPirate - 2023-07-18

(2023-07-18, 08:04 PM)SaladCesar Wrote: Hi,

I'm new to transcoding. For years I was only allowing direct play, that wasn't a problem because all my devices support HEVC decoding. But now comes the problem of HDR. I have very few HDR screens, and most client devices playing can't do proper tonemapping / HDR2SDR like my Odroid N2+ or Raspberry Pi 4. I have a lot of movies that comes with HDR (even Dolby Vision sometimes) and that leads to washed out colors on most screens.

My server is hosted in a Docker container, running Debian on an AMD Ryzen 3 3200G CPU with iGPU.

I want to keep direct play every time it's possible. Is it possible to transcode only when the file is HDR and apply minimal modification except tonemapping / HDR to SDR ? How should I configure my transcoding settings ?

Thanks in advance for any answer.
Have a great day

Jellyfin will always direct play when possible.  If it transcodes there is a reason it did so.  Tone mapping is transcoding and it looks like your 3200G should be able to handle that?

https://en.wikichip.org/wiki/amd/microarchitectures/vega#Hardware_Accelerated_Video

Something like this for your transcoding options (see screenshot attached)?  Settings > Dashboard > Playback

Not sure what the quality of the transcode will be, though.


RE: How to transcode only for HDR to SDR ?? - SaladCesar - 2023-07-19

(2023-07-18, 08:52 PM)TheDreadPirate Wrote: Jellyfin will always direct play when possible.  If it transcodes there is a reason it did so.  Tone mapping is transcoding and it looks like your 3200G should be able to handle that?

https://en.wikichip.org/wiki/amd/microarchitectures/vega#Hardware_Accelerated_Video

Something like this for your transcoding options (see screenshot attached)?  Settings > Dashboard > Playback

Not sure what the quality of the transcode will be, though.

Thanks a lot for your answer.
I've read in Jellyfin docs that on AMD, VA-API is recommended over AMD AMF, yet your settings are using AMF. Is there a reason to that ?

I have checked only HEVC and HEVC 10bits in "hardware decoding" section, because HDR only comes in HEVC files for me. When a format is unchecked and a transcoding is required, does it mean that it will do software decoding, or does it mean that it won't allow transcoding and say that the player doesn't support direct play ?

When I am trying to play from a device that doesn't support HDR, I get this error:
https://pastebin.com/h6BTRuFW

I'm not sure what the main error is but I guess it is "No VA display found for device /dev/dri/renderD128.". But I've installed all the packages and settings for the docker container as specified in https://jellyfin.org/docs/general/administration/hardware-acceleration/amd#configure-with-linux-virtualization
Would you have an idea of what could cause this ?

Thanks in advance for any answer, have a great day


RE: How to transcode only for HDR to SDR ?? - TheDreadPirate - 2023-07-19

I have Intel hardware, not AMD. I just used that screenshot as an example. I run JF directly on Ubuntu, so I'm not familiar with how to configure JF for docker. Can you share your docker compose file for Jellyfin?