Opened 11 days ago

#11068 new enhancement

hevc_videotoolbox: Support yuva

Reported by: Jake Archibald Owned by:
Priority: normal Component: avcodec
Version: 7.0 Keywords: hevc alpha videotoolbox
Cc: Jake Archibald Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

On a mac:

% ffmpeg -h encoder=hevc_videotoolbox

The supported pixel formats are videotoolbox_vld nv12 yuv420p bgra p010le, with bgra being the only format that supports an alpha channel.

This means that, if you want to encode a video with an alpha channel, you have to use the less-optimal bgr format for color data.

When MacOS's avconvert encodes an HEVC with alpha, it isn't bgra, it's yuv420p with the alpha data in a spatial layer. PDF: https://developer.apple.com/av-foundation/HEVC-Video-with-Alpha-Interoperability-Profile.pdf

Could hevc_videotoolbox be improved to allow alpha to be encoded in this way?

Change History (0)

Note: See TracTickets for help on using tickets.