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

∥☆過路亽.° 提交于 2019-12-04 13:23:53

问题


It looks like both FFmpeg and the MovieMaker library in Processing will create a slideshow movie from an array of images. Which is best? Is there a better option?

I need to output a video to be uploaded to a 3rd party website so I'd like to do it on device and it needs to be a real video not just a gallery slideshow.


回答1:


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.



来源:https://stackoverflow.com/questions/4857823/which-image-processing-library-should-i-use-to-create-a-video-slideshow

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