INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Tonemapping H265->H264 library client video conversions and/or using H265?  (Read 209 times)

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2748

The H264 SDR streams I'm receiving on my clients from my server's HDR H265 files look washed out. Could these be tonemapped or have more configurable scaling/quality presets exposed?

Is H265 encoding still unfeasible? In addition to lowering bandwidth for SDR/HDR, it would significantly reduce the performance requirements of a client renderer when receiving bandwidth-constrained HDR transcodings and using HDR passthrough. Also I just generally prefer the aesthetic of H265 because it has less blocking and banding.

Logged

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4576

Iirc encoding is CPU only so I would think tone mapping is not feasible/better done on the client
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2748

My server has a lot of CPU horsepower while my thin clients do not have enough power to tonemap properly.

VAAPI (hardware accelerated) tonemapping is available in ffmpeg but limited to HDR10.

Even if I leave tonemapping on the CPU and just do GPU decode/encode, I can easily exceed real-time transcoding:

Code: [Select]
ffmpeg \
  -vaapi_device /dev/dri/renderD128 \
  -hwaccel vaapi -hwaccel_output_format vaapi \
  -i input.mkv \
  -vf "
    hwdownload,format=nv12,            \
    format=p010le,                     \
    zscale=transfer=linear:npl=100:range=full, \
    tonemap=hable:desat=0,             \
    zscale=transfer=bt709:range=tv,    \
    format=nv12,hwupload
  " \
  -c:v h264_vaapi -qp 18 \
  -c:a aac \
  output.mkv

Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 11176

I do want to offer both of those options, tone-mapped encoding or encoding HDR10 H265, but its still on the TODO list, as they require quite some re-working.
H265 encoding would realistically require hardware encoding to be fast enough, but thats probably an acceptable limit.
Logged
~ nevcairiel
~ Author of LAV Filters
Pages: [1]   Go Up