slide Wipe effects with ImageMagick tool and ffmpeg

纵饮孤独 提交于 2019-12-08 06:05:20

问题


I have to do a four slide effects named 'Wipe Up', 'Wipe Down', 'Wipe Right', 'Wipe Left'. Like curtain of two images for each type. I think it can be possible with cropping of images with 'convert'

convert 01.jpg -crop 1920x5 output_%03d.jpg

where i can get sequence of images and compose at same time to the second image(What I don't know..) And then I can build video from this sequence of images with ffmpeg:

ffmpeg -i output_%03d.jpg out.mp4

Maybe someone can help me with compossing of images in the same time when I croping? Thanks for any suggestions!

PS: all images have fixed dimensions: 1920x1080


回答1:


You could use ImageMagick's MIFF format (Multiple Image File Format) to send a stream of multiple, cropped images to another invocation of ImageMagick to put them together in a video sequence. So assuming you start with this:

and did this

convert input.png -crop 1920x10 miff:- | convert - -loop 0 out.gif

you would get this



来源:https://stackoverflow.com/questions/29525915/slide-wipe-effects-with-imagemagick-tool-and-ffmpeg

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!