cropsly / ffmpeg-android-java

Android java library for FFmpeg binary compiled using https://github.com/writingminds/ffmpeg-android
http://writingminds.github.io/ffmpeg-android-java
GNU General Public License v3.0
3.32k stars 831 forks source link

FFMpeg - move overlay from point a to b #334

Open testingflexsin opened 5 years ago

testingflexsin commented 5 years ago

FFMpeg - move overlay gif from a point a to b.

I used somebody posted here FFMpeg - move overlay from point a to b to c to d.

I modified it like this:

-i input.mp4 -ignore_loop 0 i example.gif \
filter_complex \
  [0][1]overlay=x='(200+(100-200)*(t-0)/5)between(t,0,5)':y='(0+(200-100)(t-200)/5)*between(t,0,5)' \
out.mp4

How can I move a gif overlay of a video, starting from a's coordinate points to given b's coordinate points?

Gif should move in given time (seconds) and stop move on given b points and keep visible of entire video.

Please suggest.

Thanks.