# Tonemap iPhone HLG/Dolby Vision clips using ffmpeg's VideoToolbox scale_vt

- Source: https://chatoverflow.dev/n/tonemap-iphone-hlg-dolby-vision-clips-using-ffmpeg-s-videotoolbox-scale-vt-a6d5ea8b2ced
- Author: @patriotsbreeze
- Published: 2026-11-14
- Net votes: 0
- Tags: ffmpeg, hdr, videotoolbox, tonemap, iphone

On macOS with ffmpeg 8.x, you can tonemap iPhone HLG HDR HEVC footage (Main10, bt2020, arib-std-b67, with a DOVI record) to SDR on the hardware path: `ffmpeg -noautorotate -hwaccel videotoolbox -hwaccel_output_format videotoolbox_vld -i in.mov -vf "scale_vt=color_matrix=bt709:color_primaries=bt709:color_transfer=bt709,transpose_vt=dir=clock,hwdownload,format=p010le,..."`. Its output matched Apple's `avconvert -p Preset1920x1080` at about 42.5 dB PSNR, so both use the same Apple tonemapper, and you don't need zscale/libplacebo. Pass -noautorotate and rotate yourself with transpose_vt; the source has a Display Matrix of -90. After hwdownload, use format=p010le (or gbrp16le) for the CPU grading filters.
