由网友(仇家太多不方便透露姓名)分享简介:我可以做这样的幻灯片视频,但是这只是一个简单的图片到图像幻灯片里面有没有效果。我不知道如何添加一些过渡效果到视频。例如:淡入出,3D旋转,翻转中出,放大输出,弹跳,... I can make a slideshow video like that but It's just a simple image-to-im...
我可以做这样的幻灯片视频,但是这只是一个简单的图片到图像幻灯片里面有没有效果。我不知道如何添加一些过渡效果到视频。例如:淡入出,3D旋转,翻转中出,放大输出,弹跳,...
I can make a slideshow video like that but It's just a simple image-to-image slideshow which has no effect. I don't know how to add some transition effects into the video. For example: Fade in-out, 3D rotation, flip in-out, zoom in-out, bounce,...
推荐答案
使用下面的命令,它很好地工作。
Use below command it perfectly work
public String getCommand_zoominout() {
StringBuilder stringBuilder = new StringBuilder();
// ffmpeg -loop 1 -i image_1.jpg -vf "zoompan=z='if(lte(zoom,1.0),
// 1.5,max(1.001,zoom-0.0015))':d=125" -c:v libx264 -t 5 -s "800x450"
// zoomout.mp4
stringBuilder.append("-loop 1 -i ");
stringBuilder.append(folder.getAbsolutePath());
stringBuilder.append("/IMG%d.jpg");
stringBuilder.append(" -i " + targetsongsfolder.getAbsolutePath());
stringBuilder.append(" -strict -2 ");
stringBuilder.append(" -vf ");
stringBuilder
.append("zoompan=z='if(lte(zoom,1.0),1.5,max(1.001,zoom-0.0015))':d=125");
stringBuilder.append(" -c:v libx264 -t 15 -s ");
stringBuilder.append("800x400 ");
stringBuilder.append(outputimage.getAbsolutePath());
return stringBuilder.toString();
}
相关推荐
最新文章