I use FFMPEG to stabilize video.
Here's what I do. (Test on Windows 11)
1>
Download / Install FFMPEG. I used "Windows Builds by BtbN"
2>
Downloaded the Win64 build
3>
Extracted to a folder (my example I extracted it to c:/downloads/FFMPEG
Open up Powershell
5>
run this command to analyze the video
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.
6>
Run this command
ffmpeg -i SourceVideoName.mp4 -vf vidstabtransform=smoothing=30:zoom=5 -c:v libx264 -preset slow -crf 18 DestinationVideoName.mp4
7>
Now view the final file your system created and see if the end result is satisfactory. 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.