View Single Post
Old 9th May 2020, 10:18   #1  |  Link
alxscott
Registered User
 
Join Date: Aug 2013
Posts: 9
HW / GPU Tone Mapping with FFMPEG

Hi,

Quite simply a cry for help!

I'm running a Linux media server, and recently bought a cheap NVIDIA P400 ( Linux Stream Patch Applied) for HW Accelerated Remux when away from home.


I want to do HDR -> SDR Tonemap on the few 4K HDR movies don't also have the blurray for. I've compiled FFMPEG with appropriate flags and managed to run:
Code:
ffmpeg -hwaccel nvdec -init_hw_device opencl=ocl -filter_hw_device ocl -threads 4 -extra_hw_frames 3 -I INPUT.mkv -vf "format=p010,hwupload,tonemap_opencl=t=bt709:r=tv:p=bt709:m=bt709:tonemap=hable:format=p010,hwdownload,format=p010" OUTPUT
Problem is it is no faster, if not slower, than software tone map.


Can anyone give me a simple 10BIT HDR -> 8BIT SDR HW Accelerated command using either Hable or Mobius? FYI Linux server, CLI only.

I've spent over a week searching and trying... mainly failing!

Thanks. Alex
alxscott is offline   Reply With Quote