summaryrefslogtreecommitdiff
path: root/scripts/stabilize-video
AgeCommit message (Collapse)Author
2026-07-12scripts: stabilize-video — delete original .MOV after successful stabilizePaul Buetow
The source .MOV is removed only when the stabilized output decodes cleanly in the verify pass, so a failed encode never loses the original.
2026-07-12scripts: stabilize-video — fix EXIT trap unbound var under set -uPaul Buetow
trf_dir was declared local in main(), so the EXIT trap referencing it fired after main returned — under set -u that became an unbound variable error and the script exited non-zero even though stabilization succeeded. Hoist trf_dir to script scope and guard the trap.
2026-07-12scripts: stabilize-video — 2-pass vidstab + VAAPI HEVC for Fujifilm .MOV clipsPaul Buetow
Reusable wrapper around the workflow from the fujifilm-video-stabilization skill: parallel pass-1 motion detection, serial pass-2 stabilize+sharpen+encode on Intel VAAPI (software libx265 fallback), skip-existing outputs, and a decode/size verification pass at the end. Usage: stabilize-video [DIR] # all *.MOV in DIR stabilize-video ~/Videos stabilize-video clip1.MOV clip2.MOV # explicit files Outputs stabilised-<base>.mp4 next to each source.