Friday, 27 September 2024

Note to self: Video stabilization on Linux

Using some low-end phone isn't free from perks, especially when it comes to taking short videos in the field.

Command line/scripting has beaten other options once again (so far), and I'm once again surprised by that.

Part of me is still expecting I'm doing things the wrong way around, yet it feels the blame isn't on me, rather it's just another case of Linux scripting being better documented/accessible than GUI solutions...

Tried & failed / could not safely run: kdenlive, OpenShot, ffmpeg (parameterised differently from below)

Did the job: ffmpeg + libvidstab

ffmpeg -i somevideo.mp4 -vf vidstabdetect -f null -
ffmpeg -i somevideo.mp4 -vf vidstabtransform somevideo-stabilized.mp4

 

No comments:

Post a Comment