gpuimage

GPUImageMovieWriter - crashing with “Cannot call method when status is 2”

↘锁芯ラ 提交于 2019-12-04 08:51:49
Trying to get started with the really great GPUImage framework so graciously shared by Brad Larson, but having an issue. When running the SimpleVideoFileFilter sample it always crashes at completion with the following error: [AVAssetWriterInput markAsFinished] Cannot call method when status is 2 Anyone know how to correct this? Also do not see the video when run in simulator, does it not work for simulator? Running iOS 6.1 and Xcode 4.6 Thanks! I am noticing that finishRecordingWithCompletionHandler is being called twice, it crashes on second call 来源: https://stackoverflow.com/questions

Xcode: Missing Info.plist key for NSCameraUsageDescription

落花浮王杯 提交于 2019-12-04 05:51:23
After adding GPUImage to my Xcode project, my app is getting denied for Missing an Info.plist key for NSCameraUsageDescription . Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data. I have added the key and description to my plist in several different ways and over 10 builds have all gotten the same denial error. Here is my info.plist with the Camera Usage key at the bottom. Any ideas on why I still get

How to get corners using GPUImageHarrisCornerDetectionFilter

一个人想着一个人 提交于 2019-12-03 22:27:26
I am trying to get the corner points from a still image using GPUImageHarrisCornerDetectionFilter . I have looked at the example code from the project, I have looked at the documentation, and I have looked at this post that is about the same thing: GPUImage Harris Corner Detection on an existing UIImage gives a black screen output But I can't make it work - and I have a hard time understanding how this is supposed to work with still images. What I have at this point is this: func harrisCorners() -> [CGPoint] { var points = [CGPoint]() let stillImageSource: GPUImagePicture = GPUImagePicture

GPUImage Chroma Key filter

蹲街弑〆低调 提交于 2019-12-03 20:56:38
I am trying to use the GPUImage framework's chromakey filter. I followed the Filtershowcase example, but obviously I am missed something becuase it only shows the video, but no green screen keying out effect. Here's my initialization of video camera/filter: camera = [[GPUImageStillCamera alloc] initWithSessionPreset:AVCaptureSessionPreset640x480 cameraPosition:AVCaptureDevicePositionBack]; camera.outputImageOrientation = UIInterfaceOrientationLandscapeLeft; camera.horizontallyMirrorFrontFacingCamera = NO; camera.horizontallyMirrorRearFacingCamera = NO; chromaKeyFilter = [

How can i get UIImage from GPUImageView

喜夏-厌秋 提交于 2019-12-03 15:36:03
I am using GPUImageView library in my project where it is using GPUImageView and i have added filters like contrast and other image effects like sepia etc on that GPUImageView , everything is good but problem is now i want to convert that GPUImageVIew into UIImage so that i can extract the image out of that UIImage and post that image on Facebook , but i am not able to do that the image which is getting post on facebook is simple camera captured image without special effects which i added using GPUIMageView . How to achieve this . Please help me .Thanks in Advance ... Below is my code -(void)

“GPUImage.h” not found

你说的曾经没有我的故事 提交于 2019-12-03 11:02:48
I am trying to set up GPUImage in a project but I am not able to track down why I'm getting the error: "GPUImage.h" not found. I have added the framework, setup the target dependency, added the Header Search path as: framework, and added other linker flag -ObjC . Still no luck. I have included my super simple test project here and linked below if anyone wants to take a look. I know this must be documented and basic, but I searched on GitHub but did not find reference to this particular issue. Thanks for reading. owolf.net/uploads/StackOverflow/GPUITest.zip Your path has to be relative to the

How to Record video with GPUImage?

佐手、 提交于 2019-12-03 09:41:44
i used https://github.com/CyberAgent/android-gpuimage but its just save images. how to record video using GLSurfaceview? android-gpuimage library does not support video recording but you can try using the android-gpuimage-videorecording library. It is a fork of the gpu-image for android that provides also the video recording functionality android-gpuimage-videorecording see the GPUImageMovieWriter class It should point you in the right direction for developing your own video writer on top of GPUImage. The idea is to: draw on current screen surface switch to encoder input surface and draw

How do I write a 1bpp tiff with libtiff on iOS?

…衆ロ難τιáo~ 提交于 2019-12-03 09:03:29
I'm trying to write a UIImage out as a tiff using libtiff. The problem is that even though I'm writing it as 1 bit per pixel, the files are still coming out in the 2-5MB range when I'm expecting something more like 100k or less. Here's what I've got. - (void) convertUIImage:(UIImage *)uiImage toTiff:(NSString *)file withThreshold:(float)threshold { TIFF *tiff; if ((tiff = TIFFOpen([file UTF8String], "w")) == NULL) { [[[UIAlertView alloc] initWithTitle:@"Error" message:[NSString stringWithFormat:@"Unable to write to file %@.", file] delegate:nil cancelButtonTitle:nil otherButtonTitles:@"OK",

GPUImage imageFromCurrentFramebuffer returning nil sometimes for GPUImageLookupFilter and it's subclasses

匿名 (未验证) 提交于 2019-12-03 08:51:18
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have been using GPUImage for my project and I am getting into this problem where imageFromCurrentFramebuffer returns nil for some of the GPUImageLookupFilter's . I subclassed GPUImageFilterGroup like in the GPUImageAmatorkaFilter my code is as follows: -(MTLookupFilter *) initWithLookupImageName:(NSString *) lookupImageName { self = [super init]; if (self) { UIImage *image = [UIImage imageNamed:lookupImageName]; self.lookupImageSource = [[GPUImagePicture alloc] initWithImage:image]; GPUImageLookupFilter *lookupFilter = [

GPUimage port for android

倖福魔咒の 提交于 2019-12-03 06:56:05
问题 Has anyone ported this to android yet? More the framework than the shaders. Stuff like bringing camera data into openGL . I have worked with it on iOS and it is very fast. Any help is much appreciated. 回答1: GPUImage for Android Idea from: iOS GPUImage framework Goal is to have something as similar to GPUImage as possible. Vertex and fragment shaders are exactly the same. That way it makes it easier to port filters from GPUImage iOS to Android. The link is below: This lib is implemented using