lavfi/overlay: enable yuva420p as overlay background
authorMark Himsley <mark@mdsh.com>
Sun, 25 Nov 2012 15:24:29 +0000 (15:24 +0000)
committerStefano Sabatini <stefasab@gmail.com>
Tue, 27 Nov 2012 09:44:42 +0000 (10:44 +0100)
commit13c62525362595cc914161aaa192953dd9077233
treee2557bfde64dbcebe817f8df5069b859b5dbb4f7
parent8aa6d899c01f4aaa22698fa6cf66d4674ae4502c
lavfi/overlay: enable yuva420p as overlay background

Same calculation as for RGBA etc to create unpremultiplied output.
Useful for creating an intermediate "Mix/Effects bank", in vision mixer
(switcher) terminology.

Example command:

ffmpeg -i input.mov -vf
"[in]scale=iw:ih:interl=1,format=yuv420p[bg];movie=BBC_blocks_watermark.png,scale=iw:ih:interl=1,format=yuva420p[dog];movie=Kickabout_strap.mov,scale=iw:ih:interl=1,format=yuva420p[strap];[strap][dog]overlay=0:0[me1];[bg][me1]overlay=0:0,scale=0:0:interl=1[out]"
-b:v 3M -an output.mov

Fix trac ticket #549.

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
libavfilter/version.h
libavfilter/vf_overlay.c