2012-06-05 6 views
5

IOSでビデオ編集ライブラリを探しています。IOSのビデオ編集ライブラリ

編集タスク: - >ビデオフレームの上にテキストまたはマークを追加する。

私のアプリケーションでは、ビデオライブラリからビデオを選択し、ムービープレーヤでビデオを再生することができます。そして、ユーザーはビデオを一時停止し、フリーハンドを使ってテキストやマークを追加することができます。この動画で追加されたテキストとマークをマージする必要があります。

答えて

3

AVFoundationはそれ以上のことを行います。もちろん、アプリのユーザーインターフェースはあなた次第です。しかし、すべてのビデオ操作は、この強力な組み込みライブラリを使用して実装するのが非常に簡単です。

Read about AVFoundation here.

+0

ありがとうHeiberg、これのサンプルがありますか? – prakashsofts

+0

http://www.viggiosoft.com/blog/blog/2011/10/15/video-composition-with-ios/ また、ADCのWebサイトに多数のサンプルコードがあります。 http://developer.apple.com/library/ios/navigation/#section=Frameworks&topic=AVFoundation – Heiberg

0

あなたはあなたの仕事のために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]; 

動画を書き込んでください。

関連する問題