slide使用ImageMagick工具和ffmpeg擦除效果 [英] slide Wipe effects with ImageMagick tool and ffmpeg

查看:283
本文介绍了slide使用ImageMagick工具和ffmpeg擦除效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须做四个幻灯片效果,名为'擦拭','擦拭','擦拭','擦拭左'。像每种类型的两个图像的幕布。我认为用'转换'来裁剪图像是可能的

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

我可以获得一系列图像并同时合成第二张图片(我不知道什么)知道..)然后我可以使用ffmpeg从这一系列图像构建视频:

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:所有图片都有固定的尺寸:1920x1080

PS: all images have fixed dimensions: 1920x1080

推荐答案

您可以使用ImageMagick的 MIFF 格式(多图像文件格式)将多个裁剪图像流发送到另一个ImageMagick调用,将它们放在视频中序列。因此,假设您从这开始:

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:

并且这样做了

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

你会得到这个

这篇关于slide使用ImageMagick工具和ffmpeg擦除效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆