• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting SOLVED: Tonemapping

    Pages (3): « Previous 1 2 3 Next »

     
    • 0 Vote(s) - 0 Average

    SOLVED: Tonemapping

    HDR washed out when tonemapping enabled on compatible hardware
    Fran314
    Offline

    Junior Member

    Posts: 17
    Threads: 1
    Joined: 2023 Dec
    Reputation: 0
    #11
    2023-12-19, 06:38 PM
    I've just tried to reproduce the issue and this is the log. In the Playback Info it was also written that the video codec (h265) wasn't supported, and that it was being transcoded to h264. So it seems that there is also video transcoding, but still the image appears washed out (I had to change it from .log to .log.txt otherwise it wouldn't let me upload it)


    Attached Files
    .txt   FFmpeg.Transcode-2023-12-19_18-29-21_94782e86706e33ce164403391fde29a0_b1e46b23.log.txt (Size: 16.8 KB / Downloads: 75)
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #12
    2023-12-19, 07:01 PM
    Can you share screenshots of all the settings in Dashboard > Playback?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Fran314
    Offline

    Junior Member

    Posts: 17
    Threads: 1
    Joined: 2023 Dec
    Reputation: 0
    #13
    2023-12-19, 11:57 PM
    Here it is


    Attached Files Thumbnail(s)
       
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #14
    2023-12-20, 01:51 AM (This post was last modified: 2023-12-20, 01:51 AM by TheDreadPirate.)
    Check VPP tone mapping. Make sure you have the Intel OpenCL package installed.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Fran314
    Offline

    Junior Member

    Posts: 17
    Threads: 1
    Joined: 2023 Dec
    Reputation: 0
    #15
    2023-12-20, 02:06 AM
    I have checked VPP tone mapping and still the image appears washed out. As far as making sure that I have the Intel OpenCL package installed, I followed the official guide (https://jellyfin.org/docs/general/admini...ualization ) for using hardware acceleration on docker and at step 6 (where one would check for the OpenCL status) it prompts to run the following command

    Code:
    docker exec -it jellyfin /usr/lib/jellyfin-ffmpeg/ffmpeg -v verbose -init_hw_device vaapi=va -init_hw_device opencl@va

    When I do I get the following result

    Code:
    ffmpeg version 5.1.4-Jellyfin Copyright (c) 2000-2023 the FFmpeg developers
      built with gcc 10 (Debian 10.2.1-6)
      configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-libs=-lfftw3f --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libsvtav1 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-opencl --enable-vaapi --enable-amf --enable-libmfx --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
      libavutil      57. 28.100 / 57. 28.100
      libavcodec    59. 37.100 / 59. 37.100
      libavformat    59. 27.100 / 59. 27.100
      libavdevice    59.  7.100 / 59.  7.100
      libavfilter    8. 44.100 /  8. 44.100
      libswscale      6.  7.100 /  6.  7.100
      libswresample  4.  7.100 /  4.  7.100
      libpostproc    56.  6.100 / 56.  6.100
    [AVHWDeviceContext @ 0x5594e9b45cc0] Trying to use DRM render node for device 0.
    [AVHWDeviceContext @ 0x5594e9b45cc0] libva: VA-API version 1.20.0
    [AVHWDeviceContext @ 0x5594e9b45cc0] libva: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
    [AVHWDeviceContext @ 0x5594e9b45cc0] libva: Found init function __vaDriverInit_1_20
    [AVHWDeviceContext @ 0x5594e9b45cc0] libva: va_openDriver() returns 0
    [AVHWDeviceContext @ 0x5594e9b45cc0] Initialised VAAPI connection: version 1.20
    [AVHWDeviceContext @ 0x5594e9b45cc0] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 23.4.0 (05e4d0d).
    [AVHWDeviceContext @ 0x5594e9b45cc0] Driver not found in known nonstandard list, using standard behaviour.
    [AVHWDeviceContext @ 0x5594e9b68d80] 0.0: Intel(R) OpenCL Graphics / Intel(R) UHD Graphics 605
    [AVHWDeviceContext @ 0x5594e9b68d80] Intel QSV to OpenCL mapping function found (clCreateFromVA_APIMediaSurfaceINTEL).
    [AVHWDeviceContext @ 0x5594e9b68d80] Intel QSV in OpenCL acquire function found (clEnqueueAcquireVA_APIMediaSurfacesINTEL).
    [AVHWDeviceContext @ 0x5594e9b68d80] Intel QSV in OpenCL release function found (clEnqueueReleaseVA_APIMediaSurfacesINTEL).
    Hyper fast Audio and Video encoder
    usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

    Use -h to get full help or, even better, run 'man ffmpeg'

    which I am interpreting as it being installed and in good status. Am I mistaken? If so, how should I go about installing it?
    Fran314
    Offline

    Junior Member

    Posts: 17
    Threads: 1
    Joined: 2023 Dec
    Reputation: 0
    #16
    2023-12-20, 05:45 PM
    For reference, this is the log now that VPP tonemapping is enabled


    Attached Files
    .txt   FFmpeg.Transcode-2023-12-20_17-40-10_94782e86706e33ce164403391fde29a0_7df23168.log.txt (Size: 20.56 KB / Downloads: 68)
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #17
    2023-12-20, 07:19 PM
    (2023-12-20, 05:45 PM)Fran314 Wrote: For reference, this is the log now that VPP tonemapping is enabled

    What kind of video is this?  It doesn't look like HDR10 or DV.  Is it HLG or something?  Can you show me the media info for this video?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Fran314
    Offline

    Junior Member

    Posts: 17
    Threads: 1
    Joined: 2023 Dec
    Reputation: 0
    #18
    2023-12-20, 08:25 PM
    Here, this is the playback info displayed while playing. There should be all the information about the original media (and it says the video range is HDR10)

    In case it is of any help, this is the output of
    Code:
    ffmpeg -i <file>

    Code:
    ffmpeg -i test-audio-00db.mkv
    ffmpeg version n6.0 Copyright (c) 2000-2023 the FFmpeg developers
      built with gcc 13.2.1 (GCC) 20230801
      configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libjxl --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librav1e --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpl --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-nvdec --enable-nvenc --enable-opencl --enable-opengl --enable-shared --enable-version3 --enable-vulkan
      libavutil      58.  2.100 / 58.  2.100
      libavcodec    60.  3.100 / 60.  3.100
      libavformat    60.  3.100 / 60.  3.100
      libavdevice    60.  1.100 / 60.  1.100
      libavfilter    9.  3.100 /  9.  3.100
      libswscale      7.  1.100 /  7.  1.100
      libswresample  4. 10.100 /  4. 10.100
      libpostproc    57.  1.100 / 57.  1.100
    Input #0, matroska,webm, from 'test-audio-00db.mkv':
      Metadata:
        creation_time  : 2023-12-19T17:45:59.000000Z
        ENCODER        : Lavf60.16.100
      Duration: 00:03:00.05, start: -0.043000, bitrate: 3872 kb/s
      Stream #0:0: Video: hevc (Main), yuv420p(tv, bt2020nc/bt2020/smpte2084), 1920x1080 [SAR 90:67 DAR 160:67], 23.98 fps, 23.98 tbr, 1k tbn (default)
        Metadata:
          DURATION        : 00:03:00.001000000
        Side data:
          Content Light Level Metadata, MaxCLL=602, MaxFALL=184
          Mastering Display Metadata, has_primaries:1 has_luminance:1 r(0.6800,0.3200) g(0.2650,0.6900) b(0.1500 0.0600) wp(0.3127, 0.3290) min_luminance=0.005000, max_luminance=4000.000000
      Stream #0:1(eng): Audio: aac (LC), 48000 Hz, stereo, fltp (default)
        Metadata:
          title          : Stereo
          DURATION        : 00:03:00.053000000
      Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
        Metadata:
          title          : Surround
          DURATION        : 00:03:00.000000000
    At least one output file must be specified

    although it might be redundant with the transcode log


    Attached Files Thumbnail(s)
       
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #19
    2023-12-21, 01:04 AM
    Last idea. Enabled Low Power encoding.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Fran314
    Offline

    Junior Member

    Posts: 17
    Threads: 1
    Joined: 2023 Dec
    Reputation: 0
    #20
    2023-12-21, 01:21 AM
    If I enable low-power hardware encoding for HVEC, nothing changes (whichI think makes sense since when it transcodes, it's transcoding to h.264). If I enable low-power hardware encoding for h.264 I get the following popup:

    Code:
    Playback Error

    This client isn't compatible with the media and the server isn't sending a compatible media format.

    The respective transcode log is the following

    Code:
    /videos/94782e86-706e-33ce-1644-03391fde29a0/hls1/main/0.ts

    {"Protocol":0,"Id":"94782e86706e33ce164403391fde29a0","Path":"/media/test/test-audio-00db.mkv","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mkv,webm","Size":87168008,"Name":"test-audio-00db","IsRemote":false,"ETag":"a883a210638c512093e51db932f878e0","RunTimeTicks":1800530048,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"OpenToken":null,"RequiresClosing":false,"LiveStreamId":null,"BufferMs":null,"RequiresLooping":false,"SupportsProbing":true,"VideoType":0,"IsoType":null,"Video3DFormat":null,"MediaStreams":[{"Codec":"hevc","CodecTag":null,"Language":null,"ColorRange":null,"ColorSpace":"bt2020nc","ColorTransfer":"smpte2084","ColorPrimaries":"bt2020","DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":null,"VideoRange":"HDR","VideoRangeType":"HDR10","VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"1080p HEVC HDR","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":3872993,"BitDepth":8,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"Height":1080,"Width":1920,"AverageFrameRate":23.976025,"RealFrameRate":23.976025,"Profile":"Main","Type":1,"AspectRatio":"2.40:1","Index":0,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":"yuv420p","Level":120,"IsAnamorphic":null},{"Codec":"aac","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":"Stereo","VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"Stereo - Eng - AAC - Default","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"stereo","BitRate":192000,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":2,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":"LC","Type":0,"AspectRatio":null,"Index":1,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"ac3","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":"Surround","VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"Surround - Eng - Dolby Digital - 5.1","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"5.1","BitRate":640000,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":0,"AspectRatio":null,"Index":2,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null}],"MediaAttachments":[],"Formats":[],"Bitrate":4704993,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":null,"TranscodingContainer":null,"AnalyzeDurationMs":null,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null}

    /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -init_hw_device vaapi=va:,kernel_driver=i915,driver=iHD -init_hw_device qsv=qs@va -filter_hw_device qs -hwaccel vaapi -hwaccel_output_format vaapi -autorotate 0 -i file:"/media/test/test-audio-00db.mkv" -autoscale 0 -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_qsv -low_power 1 -preset 7 -look_ahead 0 -b:v 6454988 -maxrate 6454988 -bufsize 12909976 -g:v:0 72 -keyint_min:v:0 72 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_vaapi=format=nv12:extra_hw_frames=24,hwmap=derive_device=qsv,format=qsv" -codec:a:0 copy -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type mpegts -start_number 0 -hls_segment_filename "/config/transcodes/a1db1531a2ac378a656ad6a2a7d3ba08%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/config/transcodes/a1db1531a2ac378a656ad6a2a7d3ba08.m3u8"


    ffmpeg version 5.1.4-Jellyfin Copyright (c) 2000-2023 the FFmpeg developers
      built with gcc 10 (Debian 10.2.1-6)
      configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-libs=-lfftw3f --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libsvtav1 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-opencl --enable-vaapi --enable-amf --enable-libmfx --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
      libavutil      57. 28.100 / 57. 28.100
      libavcodec    59. 37.100 / 59. 37.100
      libavformat    59. 27.100 / 59. 27.100
      libavdevice    59.  7.100 / 59.  7.100
      libavfilter    8. 44.100 /  8. 44.100
      libswscale      6.  7.100 /  6.  7.100
      libswresample  4.  7.100 /  4.  7.100
      libpostproc    56.  6.100 / 56.  6.100
    Input #0, matroska,webm, from 'file:/media/test/test-audio-00db.mkv':
      Metadata:
        creation_time  : 2023-12-19T17:45:59.000000Z
        ENCODER        : Lavf60.16.100
      Duration: 00:03:00.05, start: -0.043000, bitrate: 3872 kb/s
      Stream #0:0: Video: hevc (Main), yuv420p(tv, bt2020nc/bt2020/smpte2084), 1920x1080 [SAR 90:67 DAR 160:67], 23.98 fps, 23.98 tbr, 1k tbn (default)
        Metadata:
          DURATION        : 00:03:00.001000000
        Side data:
          Content Light Level Metadata, MaxCLL=602, MaxFALL=184
          Mastering Display Metadata, has_primaries:1 has_luminance:1 r(0.6800,0.3200) g(0.2650,0.6900) b(0.1500 0.0600) wp(0.3127, 0.3290) min_luminance=0.005000, max_luminance=4000.000000
      Stream #0:1(eng): Audio: aac (LC), 48000 Hz, stereo, fltp (default)
        Metadata:
          title          : Stereo
          DURATION        : 00:03:00.053000000
      Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
        Metadata:
          title          : Surround
          DURATION        : 00:03:00.000000000
    Stream mapping:
      Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_qsv))
      Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    [h264_qsv @ 0x5611df495100] Selected ratecontrol mode is unsupported
    [h264_qsv @ 0x5611df495100] some encoding parameters are not supported by the QSV runtime. Please double check the input parameters.
    Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
    Conversion failed!
    Pages (3): « Previous 1 2 3 Next »

    « Next Oldest | Next Newest »

    Users browsing this thread: 2 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode