[FFmpeg-devel] [PATCH v2 0/3] avcodec/hevc: Add alpha video decoding support

Zhao Zhili quinkblack at foxmail.com
Mon Feb 3 19:38:57 EET 2025


Hi Timo,

You have added encoding support for hevc alpha video, may I invite you
to help review the decoding support?

Alpha layer can be previewed like this:

./ffmpeg -i hevc-alpha.mp4 -an -vf extractplanes=planes=a -f nut - |ffplay -

> On Jan 10, 2025, at 17:03, Zhao Zhili <quinkblack at foxmail.com> wrote:
> 
> Ping.
> 
>> On Dec 15, 2024, at 14:38, Zhao Zhili <quinkblack at foxmail.com> wrote:
>> 
>> From: Zhao Zhili <zhilizhao at tencent.com>
>> 
>> v2:
>> 1. It works with x265 streams
>> 2. Remove the requirement on SEI. SEI alpha channel information is
>> required on the producer side but not for decoder.
>> 
>> Zhao Zhili (3):
>> avcodec/hevc: Rewrite scalability_mask_flag parse in decode_vps_ext
>> avcodec/hevc/ps: Add basic HEVC_SCALABILITY_AUXILIARY support
>> avcodec/hevc: Add alpha layer support
>> 
>> libavcodec/hevc/hevc.h    |  12 +++
>> libavcodec/hevc/hevcdec.c |  72 +++++++++++++++++-
>> libavcodec/hevc/hevcdec.h |   2 +
>> libavcodec/hevc/ps.c      | 149 +++++++++++++++++++++++++-------------
>> libavcodec/hevc/ps.h      |   6 ++
>> libavcodec/hevc/refs.c    |  10 ++-
>> 6 files changed, 199 insertions(+), 52 deletions(-)
>> 
>> -- 
>> 2.46.0



More information about the ffmpeg-devel mailing list