[FFmpeg-trac] #10128(ffmpeg:closed): [Feature request] Blend mode for overlay

FFmpeg trac at avcodec.org
Sun Jan 1 18:18:09 EET 2023


#10128: [Feature request] Blend mode for overlay
-------------------------------------+-------------------------------------
             Reporter:               |                    Owner:  (none)
  1et0ovnu6lk6                       |
                 Type:  enhancement  |                   Status:  closed
             Priority:  wish         |                Component:  ffmpeg
              Version:  unspecified  |               Resolution:  invalid
             Keywords:  ffmpeg,      |               Blocked By:
  blend mode                         |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by 1et0ovnu6lk6):

 Replying to [comment:2 1et0ovnu6lk6]:
 > Replying to [comment:1 Elon Musk]:
 > > Already possible. See documentation.
 >
 > I looked, but I'm not professional enough on this subject, and I can't
 figure out the parameters for such watermark. If you have time, could you
 please help me make a query that would impose such a watermark? Here is my
 "filter_complex":
 > > -i "!!!\WM.png" -filter_complex
 "[0]scale='if(gt(iw,ih),854,-2)':'if(gt(iw,ih),-2,854)'[scaled];[scaled][1]overlay=x=(W-w)/2:y=H-h-100"
 -c:a aac -b:a 128k -c:v libx264 -preset veryfast -crf 23 -maxrate 5M
 -bufsize 10M "done.mp4"

 I think it's not possible for image watermarks which are smaller than
 those of the video. When I using this:
 > -filter_complex "[0:v] format=rgba [bg]; [1:v] format=rgba [fg];
 [bg][fg] blend=all_mode='multiply':all_opacity=1, format=rgba"

 I got this:
 > > [Parsed_blend_2 @ 0000026231f60f80] First input link top parameters
 (size 480x848) do not match the corresponding second input link bottom
 parameters (size 200x83)
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10128#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list