CEMovieMaker
CEMovieMaker is a quick and dirty way to create a movie from and array of UIImages.
Install / Use
/learn @cameronehrlich/CEMovieMakerREADME
CEMovieMaker
CEMovieMaker is a quick and dirty way to create a movie from and array of UIImages.
Usage:
@interface ViewController ()
@property (nonatomic, strong) CEMovieMaker *movieMaker;
@end
- (IBAction)process:(id)sender
{
NSMutableArray *frames = [[NSMutableArray alloc] init];
UIImage *icon1 = [UIImage imageNamed:@"icon1"];
UIImage *icon2 = [UIImage imageNamed:@"icon2"];
UIImage *icon3 = [UIImage imageNamed:@"icon3"];
NSDictionary *settings = [CEMovieMaker videoSettingsWithCodec:AVVideoCodecH264 withHeight:icon1.size.width andWidth:icon1.size.height];
self.movieMaker = [[CEMovieMaker alloc] initWithSettings:settings];
for (NSInteger i = 0; i < 10; i++) {
[frames addObject:icon1];
[frames addObject:icon2];
[frames addObject:icon3];
}
[self.movieMaker createMovieFromImages:[frames copy] withCompletion:^(BOOL success, NSURL *fileURL){
if (success) {
[self viewMovieAtUrl:fileURL];
}
}];
}
- (void)viewMovieAtUrl:(NSURL *)fileURL
{
MPMoviePlayerViewController *playerController = [[MPMoviePlayerViewController alloc] initWithContentURL:fileURL];
[playerController.view setFrame:self.view.bounds];
[self presentMoviePlayerViewControllerAnimated:playerController];
[playerController.moviePlayer prepareToPlay];
[playerController.moviePlayer play];
[self.view addSubview:playerController.view];
}
Related Skills
node-connect
339.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.8kCommit, push, and open a PR
