Skip to content

This is a single class file that make it posible to create videos from UIImages written in Swift 2.

Notifications You must be signed in to change notification settings

alfnielsen/UIImageToVideo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

UIImageToVideo

This is a single class file that make it posible to create videos from UIImages written in Swift 2.

The base code comes from (Thanks):

 https://github.com/justinlevi/imagesToVideo/tree/master
```
and
``` 
http://stackoverflow.com/questions/7645454
```
Uses:
```
			let video = VideoFromImages(
				filename: "GravityGame.mov",
				size: CGSizeMake(320, 568),
				success: { (url) -> Void in
				  //Will run when video.finish() is called
					print("SUCCESS: Saved in local file  \(url)")
					print("SUCCESS: Video added to Photos Library")
				},
				failure: { (error) -> Void in
					print(error)
				}
			)
			video.start()
			// add any number of images like this: 
			//(You can also do this in a runnong animation, but it will make the animation slack)
			video.addImage(<UIImage>)
			video.finish()
```

About

This is a single class file that make it posible to create videos from UIImages written in Swift 2.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages