IOS中的video编辑库

我正在寻找IOS中的video编辑库。

编辑任务: – >在video帧的顶部添加文字或标记。

在我的应用程序中,用户应该能够从video库中selectvideo,并在电影播放器​​中播放video。 用户可以暂停video,然后使用自由手段添加一些文字或标记。 我们需要在此video中合并添加的文字和标记。

AVFoundation将做所有这些和更多。 该应用程序的用户界面当然取决于您。 但所有的video操作都很容易使用这个强大的内置库来实现。

在这里阅读AVFoundation。

你可以使用GPUImage来完成你的任务。 为设置图像和文字使用此代码..

contentView.backgroundColor = [UIColor clearColor]; UIImageView *ivTemp = [[UIImageView alloc] initWithFrame:CGRectMake(20, 20, 147, 59)]; // UIImage *currentFilteredVideoFrame = [selectedFilter imageFromCurrentFramebuffer]; ivTemp.image = [UIImage imageNamed:@"minimumtrackimage"]; ivTemp.userInteractionEnabled = YES; [contentView addSubview:ivTemp]; UILabel *lblDemo = [[UILabel alloc] initWithFrame:CGRectMake(0, 100, 200, 30)]; lblDemo.text = @"is this text on video?"; lblDemo.font = [UIFont systemFontOfSize:30]; lblDemo.textColor = [UIColor redColor]; lblDemo.tag = 1; lblDemo.hidden = YES; lblDemo.backgroundColor = [UIColor redColor]; [contentView addSubview:lblDemo]; GPUImageUIElement *uiElementInput = [[GPUImageUIElement alloc] initWithView:contentView]; [uiElementInput addTarget:selectedFilter]; __unsafe_unretained GPUImageUIElement *weakUIElementInput = uiElementInput; [weakUIElementInput update]; 

然后写电影。