GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

PlayAtActualSpeed Problem on filtering an existing video while playing

Open wangwu1981 opened this issue 9 years ago • 1 comments

Hi,

First of all, many thanks Brad Larson for providing this great library. I am developing a iOS media sharing app which has the video effects using GPUImage. Everything have been working well, but I found a problem in filtering an existing video file while playing. I set playAtActualSpeed=Yes and started filtering but playback duration in the app was not accurately same as actual video duration. Playback duration was different a little every time. For example, if the duration of a video file is 10.0s and playback time is about 11s. I want the playback duration will be 10.0s. I wrote my code as below:

movieFile = [[GPUImageMovie alloc] initWithURL:mVideoUrl];
filter = [[GPUImageBrightnessFilter alloc] init];
[movieFile addTarget:filter];
[filter addTarget:self.filterView];
[movieFile setPlayAtActualSpeed:YES];
[movieFile startProcessing];

I tested it with SimpleVideoFileFilter project but the same problem was occurred. Are there any ideas to solve this problem?

Thanks, WangWu

wangwu1981 avatar Apr 29 '15 12:04 wangwu1981

Did you come up anything on this ? I am facing the same problem @wangwu1981

barbayrak avatar Jun 09 '20 16:06 barbayrak