Open thibauddavid opened 10 years ago
Is the movie a local one on the device? Can you display it to the screen by driving it to a GPUImageView instead of a movie writer? Does the movie show properly in that case?
The movies comes from UIImagePickerControllerSourceTypeCamera. I commented movieWriter part, and replaced it by GPUImageView preview = [[GPUImageView alloc] initWithFrame:self.view.frame]; [self.filter addTarget:(GPUImageView )preview]; [self.mainViewController.view addSubview:preview]; And still got my only frame, without any sound, that time, which I suppose is normal...
Hello,
I've tried the sample code allowing to filter a video from NSURL with steps GPUImageMovie -> Filter -> GPUImageMovieWriter with an NSURL of movie from imagePickerController, but the result is always the first frame of the video, during the correct time of it.
The sound is ok by the way, I just can figure out why I still only get the first frame displayed whereas all seem to be processed, as NSLogging @"read a video frame: %@" suggests.
Here is the used code:
-(void)imagePickerController:(UIImagePickerController )picker didFinishPickingMediaWithInfo:(NSDictionary )info { ... NSURL *videoURL = [info objectForKey:UIImagePickerControllerMediaURL]; self.tmpMediaUrl = videoURL; ...
}
Thanks for helping.