How do I export UIImage array as a movie?

后端 未结 10 1854
臣服心动
臣服心动 2020-11-22 02:11

I have a serious problem: I have an NSArray with several UIImage objects. What I now want to do, is create movie from those UIImages.

10条回答
  •  隐瞒了意图╮
    2020-11-22 02:25

    Well this is a bit hard to be implemented in pure Objective-C....If you are developing for jailbroken devices , a good idea is to use the command-line tool ffmpeg from inside your app. it's quite easy to create a movie from images with a command like:

    ffmpeg -r 10 -b 1800 -i %03d.jpg test1800.mp4
    

    Note that the images have to be named sequentially , and also be placed in the same directory. For more information take a look at: http://electron.mit.edu/~gsteele/ffmpeg/

提交回复
热议问题