Comment

Comment by iwalton3

I used this to stabilize a bunch of vacation videos with great results. It works better than the deshake filter but does require two passes.

   function stabilize {
       tempfile=".temp$RANDOM$RANDOM.trf"
       ffmpeg -nostdin -loglevel error -y -i "$1" -vf vidstabdetect=shakiness=5:show=1:result="$tempfile" -f null -
       ffmpeg -nostdin -loglevel error -y -i "$1" -vf vidstabtransform=input="$tempfile",unsharp=5:5:0.8:3:3:0.4 -movflags +faststart "$2"
       rm "$tempfile"
   }
Usage: stabilize infile outfile.mp4
parent iwalton3 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton