ffmpeg将一系列图像转换为视频 - 交叉渐变或每两帧之间的任何其他转换 [英] ffmpeg convert a series of images to video - with crossfade or any other transition between every two frames

查看:918
本文介绍了ffmpeg将一系列图像转换为视频 - 交叉渐变或每两帧之间的任何其他转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前可以将一系列图像转换为视频,但我也需要在它们之间添加转换/动画。

  String [] ffmpegCommand = {/ data / data / mypackage / app_bin / ffmpeg,-y,
-qscale,1,-r ,-i,/data/data/mypackage/app_ipImg/image%3d.jpg,
-t,+(((total_images)* delay_of_each_frame_in_seconds)+ 4),// -s,heightwidth,
-vcodec,libx264,-s,640x480,
Environment.getExternalStorageDirectory()+/photo_directory/myVideo.mp4};

上述命令正在为我创建来自图像系列的视频 / p>



现在,我想添加淡入淡出或其他转换/动画在每个框架之前的最终视频中显示。



我google了很多,但没有找到解决这个问题的办法,



请以建议的方式。



提前感谢。

解决方案

我建议您找到有关框架混合运动插补的更多信息。



这是例如在timelapse视频中用于平滑渲染。




I am currently able to convert a series of images to video, but I do also need to add transitions / animation in between them.

String[] ffmpegCommand = {"/data/data/mypackage/app_bin/ffmpeg", "-y",
"-qscale", "1", "-r", "" + framerate, "-i", "/data/data/mypackage/app_ipImg/image%3d.jpg",
"-t", "" + (((total_images) * delay_of_each_frame_in_seconds) + 4), //"-s",heightwidth,
"-vcodec", "libx264", "-s", "640x480",
 Environment.getExternalStorageDirectory() + "/photo_directory/myVideo.mp4"};

The above command is working for me to create video from image series

But

Now, I do want to add fade or other transition / animation to be displayed in final video before each of the frames.

I googled a lot, but didn't find any solution to this trouble, yet.

Please suggest me the way.

Thanks in advance.

解决方案

I would suggest you to find more information about Frame Blending or Motion interpolation.

This is for example used in timelapse videos to smooth the render.

这篇关于ffmpeg将一系列图像转换为视频 - 交叉渐变或每两帧之间的任何其他转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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