MasayukiSuda / GPUVideo-android

This library apply video filter on generate an Mp4 and on ExoPlayer video and Video Recording with Camera2.
MIT License
657 stars 178 forks source link

Low FPS because of onFrameAvailable takes 150-200 milliseconds #72

Open patolax opened 3 years ago

patolax commented 3 years ago

I want to draw a moving bitmap on camera preview. To do that I changed Overlay filter. However, the time difference between each onFrameAvailable call is around 150-200 milliseconds. So that when I try to draw the animation on SurfaceTexture, FPS is super low. To move a bitmap one pixel at a time on 720 dp screen, it takes around 2 minutes.

Is there a way to improve this time lag.

(I am using 1280x720 size, if I reduce it performance improves but image quality is not satisfactory)

pablogeek commented 3 years ago

@patolax anything you did to solve this?