[FFmpeg-devel] [PATCH 2/2] avformat/mov: Support parsing of still AVIF Alpha Channel

Anton Khirnov anton at khirnov.net
Sat Jul 2 12:34:57 EEST 2022


Quoting Vignesh Venkatasubramanian (2022-06-30 23:04:34)
> Parse the alpha channel for still AVIF images and expose it as a
> separate track. This is the simplest way of supporting AVIF alpha
> channel in a codec independent manner (similar to how ffmpeg
> supports animated AVIF with alpha channel).
> 
> One can use the alphamerge filter to get a transparent image with
> a single command. For example:
> 
> ffmpeg -i image_with_alpha.avif -filter_complex alphamerge image_with_alpha.png
> 
> Signed-off-by: Vignesh Venkatasubramanian <vigneshv at google.com>
> ---
>  libavformat/isom.h |  1 +
>  libavformat/mov.c  | 66 ++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 67 insertions(+)

I am against this patch, this is a digusting hack.

These are not two streams, it is a single stream and should be exposed
as such.

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list