Programmatically make video from UIImages for playback with MPMovie Player

我们两清 提交于 2019-12-11 07:44:12

问题


How can I programmatically create a video file from a bunch of UIImages?

I want to do this so I can play back a slideshow with MPMoviePlayer and stream via AirPlay.

Ideally I'd like to be able to set a duration for each image and do simple fade transitions between them.


回答1:


Check out the AVAssetWriter documentation for encoding your own movies on an iOS device.

Another hint might be this question on SO: How do I use AVAssetWriter?



来源:https://stackoverflow.com/questions/6246419/programmatically-make-video-from-uiimages-for-playback-with-mpmovie-player

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