dongqiao9015 2012-08-23 03:48
浏览 440

使用ffmpeg从具有ken burns效果的图像生成视频

I am trying to generate video from images.

The following code generates the video, 1 frames per 3 seconds.

     exec("ffmpeg -f image2 -r 1/3 -loop_input -shortest -y  -i tmp/image%3d.jpg -i tmp/ag1.mp3 -target ntsc-dvd -s 1280x720 tmp/video.mwv");

I want to apply ken burns effect to it, I have searched a lot but couldn't find any solution.

Can anybody help me out ? If can provide any code snippet, will be really appreciated.

  • 写回答

4条回答 默认 最新

  • duanrenzou1619 2012-08-23 04:33
    关注

    I don't think this can be done with ffmpeg alone. I have done this in the past with a tool called diascope. I never hear much about it, but it produces some of the best picture slideshows I have seen since you can use effects like Ken Burns. It does use ffmpeg in its final step to actually encode the video.

    Take a look at the examples, it should be pretty straightforward.

    评论

报告相同问题?

悬赏问题

  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样
  • ¥15 java的GUI的运用
  • ¥15 Web.config连不上数据库
  • ¥15 我想付费需要AKM公司DSP开发资料及相关开发。
  • ¥15 怎么配置广告联盟瀑布流
  • ¥15 Rstudio 保存代码闪退
  • ¥20 win系统的PYQT程序生成的数据如何放入云服务器阿里云window版?
  • ¥50 invest生境质量模块