GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

Some filters not working on live video file filtering

Open oltis opened this issue 13 years ago • 3 comments

Hi,

We use this framework in our app for filtering some videos from disk while those videos are previewed on the screen (using GPUImageMovie and GPUImageView for this). We also allow live switching of filters while in this "preview" screen (we implemented the solution from here: https://github.com/BradLarson/GPUImage/issues/1178 for accomplishing this).

The issue is that some filters (GPUImageGrayscaleFilter, GPUImageSketchFilter and GPUImageSobelEdgeDetectionFilter) freeze one frame of the video in GPUImageView when applied. I made some quick changes in showcase demo to use a video file from disk instead of live camera feed and was able to reproduce the bug there also (there it displays a black or white screen instead of freezing on a frame but I guess it is the same issue).

Can someone help us with this?

PS: Thanks for this great framework.

oltis avatar Oct 10 '13 07:10 oltis

Adding here the modified version of showcase demo I was talking above: https://dl.dropboxusercontent.com/u/3811052/FilterShowcase.zip

oltis avatar Oct 10 '13 07:10 oltis

I noticed this also with the GrayscaleFilter Issue #1241 . The filter is definitely getting called on each frame but somehow is not getting the correct texture to process.

jmiller2 avatar Oct 17 '13 18:10 jmiller2

i also implemented the fix from #1178 and see the same error when using sobel and sketch. the movie freezes on one frame.

schwarrrtz avatar Dec 05 '13 04:12 schwarrrtz