Sunday, March 29, 2026

Stabilize a video

 I use FFMPEG to stabilize video.  

Here's what I do. (Test on Windows 11)

Download / Install FFMPEG.  I used "Windows Builds by BtbN"


Downloaded the Win64 build

Extracted to a folder (my example I extracted it to c:/downloads/FFMPEG

Open up Powershell



  run this command to analyze the video

ffmpeg -i SourceVideoName.mp4 -vf vidstabdetect=shakiness=5:accuracy=15 -f null NUL

This will create a file called 'transforms.trf' in the folder which contains info about what actions need to be done to stabilize the video.

ffmpeg -i SourceVideoName.mp4 -vf vidstabtransform=smoothing=30:zoom=5 -c:v libx264 -preset slow -crf 18 DestinationVideoName.mp4

Now view the final file your system created.  

You can go back and tweak the Shakiness numeric value and accuracy numeric value to try and fine tune it

You can also adjust "smoothing" and "Zoom" to see if you can create a more satisfactory stabilization.

No comments:

Post a Comment

Feel free to leave a comment! If you have any information that you think should be included, please do so here and I'll get it added in.