I am moving my code from a still image application to a file that creates movie files. However, there is a problem with the following code, in which the final output is a black movie screen using the GPUImageLookupFilter filter. Can anyone determine what I'm doing wrong or what I might have missed.
Header File Sample GPUImagePicture *lookupImageSource; GPUImageOutput<GPUImageInput> *filter; GPUImageMovie *movieFile; GPUImageMovieWriter *movieWriter; @property(nonatomic,strong) GPUImagePicture *lookupImageSource; Main File filter = [[GPUImageFilterGroup alloc] init]; self.lookupImageSource = [[GPUImagePicture alloc] initWithImage:[UIImage imageNamed:@"ExtremeVintage1.png"]]; GPUImageLookupFilter * filterLookup = [[GPUImageLookupFilter alloc] init]; [self.lookupImageSource addTarget:filterLookup]; [self.lookupImageSource processImage]; [(GPUImageFilterGroup *)filter addFilter:filterLookup]; [(GPUImageFilterGroup *)filter setInitialFilters:[NSArray arrayWithObject:filterLookup]]; [(GPUImageFilterGroup *)filter setTerminalFilter:filterLookup]; [movieFile addTarget:filter];
thanks
**** UPDATE *****
New code
self.lookupImageSource = [[GPUImagePicture alloc] initWithImage:[UIImage imageNamed:@"ExtremeVintage1.png"]]; [self.lookupImageSource processImage]; filter = [[GPUImageLookupFilter alloc] init]; [lookupImageSource addTarget:filter]; [movieFile addTarget:filter];

source share