[FFmpeg-trac] #11068(avcodec:new): hevc_videotoolbox: Support yuva

FFmpeg trac at avcodec.org
Sun Jun 23 20:17:34 EEST 2024


#11068: hevc_videotoolbox: Support yuva
-------------------------------------+-------------------------------------
             Reporter:  Jake         |                     Type:
  Archibald                          |  enhancement
               Status:  new          |                 Priority:  normal
            Component:  avcodec      |                  Version:  7.0
             Keywords:  hevc alpha   |               Blocked By:
  videotoolbox                       |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 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?
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11068>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list