Reputation: 41
I want use a still image to make a transparent webm video, this video needs to have the following style:
Below is my demo image:
This is the effect I want:
Black color part represent transparency.
Upvotes: 0
Views: 515
Reputation: 133973
ffmpeg
command for 5 second transition:
ffmpeg -loop 1 -t 5 -i input.png -filter_complex "drawbox=thickness=fill:color=black[black];[black][0]xfade=transition=wipedown:duration=5" output.webm
-loop 1
loops image.-t 5
sets image duration to 5 seconds.drawbox=thickness=fill:color=black
drawbox filter to make black video from input.xfade=transition=wipedown:duration=5
xfade filter using wipedown transition with a duration of 5 seconds.Also see:
Upvotes: 1