linkedin / LiTr

Lightweight hardware accelerated video/audio transcoder for Android.
BSD 2-Clause "Simplified" License
609 stars 85 forks source link

How can we Create a blurry background for the video #107

Open pawaom opened 3 years ago

pawaom commented 3 years ago

How can we Create a blurry background for the video

example

Blurred-background-video (1)

GL shaders can create blurred video but how to create a blurred background and overlay a normal video over it.

can we use GLSurfaceView ?

izzytwosheds commented 3 years ago

Do you need the background to be static or animated? If static is good enough, you can do this now by following what FreeTransformVideoGlFragment does. If it needs to be animated and show blurred and zoomed version of original video frame, that will probably require writing a new filter. I will have to think about this, it is a very interesting problem and feels like LiTr "almost" supports this.