Opened 5 years ago

Closed 5 years ago

#7953 closed enhancement (fixed)

Support smpte2084 transfer function for hevc_videotoolbox and h264_videotoolbox

Reported by: Nomis101 Owned by:
Priority: wish Component: avcodec
Version: git-master Keywords: videotoolbox
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Trying to encode 4k HDR videos in HandBrake with videotoolbox x264 or x265, I'm seeing the following message:

[hevc_videotoolbox @ 0x7f9707b07000] Transfer function smpte2084 is not supported.
OR
[h264_videotoolbox @ 0x7f9709149600] Transfer function smpte2084 is not supported.

This is triggered from FFmpeg here
https://github.com/FFmpeg/FFmpeg/blob/98478c05edb674ec429c298fbe593bda493ba60f/libavcodec/videotoolboxenc.c#L931

It would be nice to add the transfer function smpte2084 to videotoolboxenc.c, which has the constant name kCVImageBufferTransferFunction_SMPTE_ST_2084_PQ
https://developer.apple.com/documentation/corevideo/cvimagebuffer/image_buffer_transfer_function_constants?language=objc

Change History (2)

comment:1 by Carl Eugen Hoyos, 5 years ago

Keywords: videotoolbox added
Priority: normalwish

comment:2 by Nomis101, 5 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.