2012-06-05 10 views
5

Estoy buscando una biblioteca de edición de video en IOS.biblioteca de edición de video en IOS

Tareas de edición: -> Agregar texto o marcas en la parte superior del marco de video.

En mi aplicación, el usuario debe poder seleccionar un video de la biblioteca de videos y también reproducir el video en un reproductor de películas. Y el usuario puede pausar el video y luego agregar texto o marcas con la mano libre. necesitamos fusionar el texto y las marcas añadidas en este video.

Respuesta

3

AVFoundation hará todo eso y más. La interfaz de usuario para la aplicación es, por supuesto, depende de usted. Pero toda la manipulación de video es bastante simple de implementar usando esta potente biblioteca incorporada.

Read about AVFoundation here.

+0

gracias Heiberg, ¿Tiene alguna muestra para esto? – prakashsofts

+0

http://www.viggiosoft.com/blog/blog/2011/10/15/video-composition-with-ios/ También hay muchos códigos de muestra en el sitio web de ADC. http://developer.apple.com/library/ios/navigation/#section=Frameworks&topic=AVFoundation – Heiberg

0

puede utilizar GPUImage para su tarea. para establecer la imagen y el texto, utilice este código ...

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]; 

y luego escriba la película.

Cuestiones relacionadas