Hide or show overlay with sendcmd - ffmpeg

Sendcmd in ffmpeg
Can I hide the overlay and then show it with sendcmd?

Related

Animate multiple overlay on image using FFMPEG

I am developing an app in which I need to overlay text images gif on an image and want to add animation on each overlay item and then save it as an mp4 video. Till now I can create the video but how can I add animation to the overlay

FFMPEG Wipe transition one layer over another

How to reveal one layer over another with a wipe transition using FFMPEG?
NOTE: this is not a slide transition. The top image stays in one position but is gradually revealed over time.
I'd like a technique that can work for top layers with or without transparency and for images, videos or dynamically created sources, like showwavespic.
I tried making a mask animation like so:
but alphamerge doesn't work as I expected it to and I can't find a blend mode that works with this type of mask.
EDIT: The xfade filter was suggested but it doesn't seem to work with when source has transparency. It renders transparent areas black. Example with transparent source:
But xfade renders this:
ffmpeg -loop 1 -t 5 -i flower.jpg -t 5 -loop 1 -i gear.png -filter_complex "[0]format=rgb24,drawbox=thickness=fill,split[black][black2];[black2]negate[white];[black][white]xfade=transition=wiperight:duration=1:offset=0[alf];[0][1]overlay=format=auto[ovr];[ovr][alf]alphamerge[fg];[0][fg]overlay=format=auto,format=yuv420p" output.mp4
format filter will allow drawbox to make true black color. Otherwise it may make a semi-transparent overlay as in the example GIF where you can barely see though the gear (I didn't notice when I initially made it). If you want YUV instead of RGB use yuv444p for example instead of rgb24.
drawbox covers flower.jpg with black. Alternatively you can use the color (and optionally scale2ref) filters. This is a lazy way to make a black image the same size as the input.
split filter makes a copy of the black image and negate filter makes the copy white.
xfade makes an animated alpha mask from the black and white images.
alphamerge adds the alpha mask to the output from overlay.
The resulting overlay with alpha is overlaid over flower.jpg.
Also see
FFmpeg Filter Documentation
FFmpeg Wiki: xfade for a gallery of transition effects.

how I could do green screen effect in ffmpeg for put a image into video with whte background using ffmpeg?

how I could do a green effect but instead of green color change all white color for another background
like this video
https://www.youtube.com/watch?v=zgge8y9YUEs
please help me

How to add text with zoom out effection on video in FFMpeg?

I am developing android app with ffmpeg.
I`d like to add text on video and set the zoom out animation on it.
I can marquee the text from bottom to top and from left to right.
If someone has experiences on zoom out animation of text with FFMpeg, please give me the tip.
Here is my code.
ffmpeg -i input.mp4 -vf "drawtext=fontfile=/path/to/font.ttf: text ='Test Line':fontcolor=red:fontsize=65:x=100: y=if(lt(t\,8)\,30*t\,240)" output.mp4

Convert to animated gif, transparency does not re-emerge

I am making an animated gif.
This gif is 50 frames or so and it contains quite some transparency.
The problem is that when transparency is to reemerge in the gif, it doesn't and instead continues to display whatever color was at that given pixel before the transparency was to appear.
How can i make the animated gif showing transparency when the given pixel becomes transparent?
Below is the terminal command i use to create this flawed gif.
convert -delay 5 -loop 0 pics/1.gif pics/2.gif animation.gif'
You apply the 'dispose background' option.
see: http://www.imagemagick.org/Usage/anim_basics/

Resources