How to convert bitmaps to video?

后端 未结 3 1506
北恋
北恋 2020-12-28 19:31

My application creates images from fractals and I love the feeling of \'flying\' around a fractal. I once saved about 2000 bitmaps to file and created an AVI from it using P

3条回答
  •  误落风尘
    2020-12-28 19:42

    There's actually a really easy way to do this using ffmpeg without any code at all. Simply name all your image files something like:

    image-0001.png
    

    Then use ffmpeg to bundle them up into a video:

    ffmpeg -i 'img-%04d.png' -r 10 out.avi
    

    (-r is the output frame rate.)

提交回复
热议问题