Closed xujingzhou closed 10 years ago
I modified code according to the follow demo in web link, But It still doesn't work because App will dead after progress to "99%". I checked code and find "setCompletionBlock" function hasn't been execute. Who can tell me how to solve this issue?
http://stackoverflow.com/questions/13490798/gpuimagemoviewriter-and-avfiletypempeg4-filetype
I fixed this issue by add a step to convert from .mov to .mp4
怎么解决的啊?麻烦大神说下
Why does the follow code occur error for input and output file is '.mp4'?
NSURL *inputMovieURL = [[NSBundle mainBundle] URLForResource:@"1405314140692" withExtension:@"mp4"]; movieFile = [[GPUImageMovie alloc] initWithURL:inputMovieURL]; movieFile.runBenchmark = NO; movieFile.playAtActualSpeed = YES;
filter = [[GPUImageGlassSphereFilter alloc] init]; [(GPUImageGlassSphereFilter *)filter setRadius:0.45];
movieWriter = [[GPUImageMovieWriter alloc] initWithMovieURL:outputMovieURL size:CGSizeMake(360.0, 480.0) fileType:AVFileTypeMPEG4 outputSettings:nil]; [filter addTarget:movieWriter];