2014-10-31 50 views
0

我需要创建一个应用程序,在该应用程序中我必须将视频/ mp4文件转换为图像帧。请为我提供任何解决方案从iOS中的视频文件创建不同的图像帧应用程序。使用目标c在ios中将mp4 /视频文件转换为帧

+0

有很多解决方案availble的尝试搜索看到这个http://stackoverflow.com/questions/4199879/iphone-read-uiimage -frames-从视频与 - avfoundation – iphonic 2014-10-31 10:59:54

回答

2
MPMoviePlayerController *movie = [[MPMoviePlayerController alloc]initWithContentURL:[NSURL URLWithString:@"yourvideofilename.mp4"]];//replace your video file name 

UIImage *singleFrameImage = [movie thumbnailImageAtTime:10 timeOption:MPMovieTimeOptionExact]; 

试试这个上面的代码行,我希望你得到的结果

相关问题