On 2025-09-15 12:44 am, Michael Koch via ffmpeg-user wrote:
like this video:
https://www.youtube.com/watch?v=LsxJe6yW0QU
I did make it with geq filter, but that's extremely slow because the same 
function must be calculated for each pixel.

One method that comes to mind is to use scale+crop cascade

scale=eval=frame:h=ih:w=f1(t),crop=W:H,scale=eval=frame:w=iw:h=f2(t),crop=W:H

Make sure that no resultant frame from scale produces a frame smaller than WxH, so pad first if needed.

Regards,
Gyan

_______________________________________________
ffmpeg-user mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to