从具有转换的unix命令行的图像创建视频 [英] Create a video from images unix command line with transitions

查看:113
本文介绍了从具有转换的unix命令行的图像创建视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现了几个问题,解答如何从图像创建视频。我设置了两个,并且能够正确地制作视频。我尝试了以下内容:

I found several questions with answers on how to create a video from images. I setup two of them and was able to produce the videos correctly. I tried the following:

ImageMagick
convert -delay 100 -quality 75 photo1.jpg photo2.jpg movie.mpg

ImageMagick convert -delay 100 -quality 75 photo1.jpg photo2.jpg movie.mpg

FFMPEG
ffmpeg -r 10 -b 1800 -i photo1.jpg photo2.jpg movie.mpg

FFMPEG ffmpeg -r 10 -b 1800 -i photo1.jpg photo2.jpg movie.mpg

最终的结果是视频显示具有定时,无效果的图像。我想了解他们如何在这些图像之间添加淡入淡出转换。

The end result is the video displaying images with timing, no effects. I looking to learn how they add a Fade In and Fade Out Transition between those images.

推荐答案

我怀疑这可以通过任何一个库都是开箱即用,一个接一个地创建每个框架。这两个图书馆都不会专注于视频效果。

I doubt this can be done by either library out of the box, short of creating every frame one by one. Both libraries don't really focus on Video effects.

我可以看到一个命令行解决方案是 dvd-slideshow

One command line solution I can see is dvd-slideshow:


dvd-slideshow是一组Linux命令行程序,从组创建幻灯片式dvd的图片。幻灯片视频可以从目录或一些在线相册制作。您可以添加幻想,标题和Ken Burns效果(同时缓慢缩放和平移)以及音频,以使您的幻灯片更加美观。还有一个脚本可以为您的dvd(dvd菜单)生成菜单。 dvd幻灯片工具是根据GNU GPL发布的开源程序。

dvd-slideshow is a group of Linux commandline programs that creates a slideshow-style dvd from groups of pictures. Slideshow videos can be made from a directory or some online photo albums. You can add fancy effects like fades, titles, and the Ken Burns effect (slowly zooming and panning at the same time) along with audio to make your slideshows even nicer. There is also a script which generates a menu for your dvd (dvd-menu). The dvd-slideshow tools are open-source programs released under the GNU GPL.

它可以输出DVD(MPEG-something)和FLV等。您可能需要执行两个转换,但您应该可以使用此组合和ffmpeg构建任何类型的视频文件。

It can output DVD (MPEG-something) and FLV among other this. You may have to do two transitions, but you should be able to build any kind of video file using a combination of this and ffmpeg.

这篇关于从具有转换的unix命令行的图像创建视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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