more than one filter on a video file at one time
hi, I am applying one filter than it is working fine but if creating a chain of filter and then applying to video file it is not working.
Not Working:-
movieFile = [[GPUImageMovie alloc]initWithURL:videoUrl]; movieFile.runBenchmark = YES; movieFile.playAtActualSpeed = NO; [sepiaFilter addTarget:contrastFilter]; [contrastFilter addTarget:brightnessFilter]; [movieFile addTarget:brightnessFilter]; [brightnessFilter addTarget:movieWriter];
working:
movieFile = [[GPUImageMovie alloc]initWithURL:videoUrl]; movieFile.runBenchmark = YES; movieFile.playAtActualSpeed = NO; [movieFile addTarget:sepiaFilter]; [sepiaFilter addTarget:movieWriter];
Right, you're targeting movieFile at the last filter in the chain in your first code section, not the first filter. That won't work. You need to target it to your sepiaFilter, not the brightness filter.
thanks a lot brad