chirick
chirick

Reputation: 21

ffmpeg smooth motion overlay image without jitter

When I try any animation of overlayed image (just simple left-to-rigth motion) it's jitter and laggy Plane

I rendered three examples in one video to demonstrate how it works in deafault in Premiere, Davinci, and ffmpeg How to remove this jitter and achieve smooth animation like in Premiere or DaVinci?

My filter-command is

ffmpeg -i VIDEO -loop 1 -i IMAGE -filter_complex "[0:v][1]overlay=shortest=1:x=95+t*(W-w)/624:y=180[v2]" -map [v2] -c:v h264_nvenc -b:v 16M -t 15 -y out.mp4
  1. x1 = 95
  2. x2 = end of screen
  3. y - is constant
  4. Duration of video - 624s

I think the problem is in formula (x=95+t*(W-w)/624) or maybe I should use frames, not time I've tryed to add -r 30 before image. It not helped I've tryed to use tblend or minterpolation. It not helped.

Link to video: https://1drv.ms/v/s!AinXcDaDEbPihYZ3KmjswwhSWyCD9A?e=0H8Na1

Upvotes: 0

Views: 486

Answers (0)

Related Questions