Which image processing library should I use to create a video slideshow?

一个人想着一个人 提交于 2019-12-03 08:27:54

FFmpeg is a great option. I've done it many times myself with time lapse photography experiments.

  1. Install FFmpeg with x264 CODEC
  2. Number all your slides starting at 0001.jpg
  3. Run FFmpeg like below (this is what I use for my images-->video conversions):

FFmpeg command:

ffmpeg -f image2 -i %04d.jpg -vcodec libx264 -f mp4 -vpre main -vpre normal \
   -r 25 -an -threads 4 -b 3000k -mbd rd -flags +mv4+aic -trellis 2 -cmp 2 \
   -subcmp 2 -g 300 -y out.mp4

You may need to tinker with the command line to get the desired output quality you are searching for. Also, the frame rate (-r 25) is probably too high for you. Either experiment with small values, or duplicate your slides programmatically.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!