georgmartius / vid.stab

Video stabilization library
http://public.hronopik.de/vid.stab/
Other
848 stars 109 forks source link

spin walkaround video Stabilization #106

Open ahmedAlmasri opened 3 years ago

ahmedAlmasri commented 3 years ago

I'm trying to stabilize the walkaround video using this command

TRF=transformation1.trf
INPUT=$1
STB_OUTPUT=stb1.mp4
ffmpeg -y -i "$INPUT" -vf vidstabdetect=stepsize=32:shakiness=10:accuracy=15:result="$TRF" -f null -
ffmpeg -y -i "$INPUT" -vf vidstabtransform=input="$TRF":smoothing=15:interpol="bicubic",unsharp=5:5:0.8:3:3:0.4  "$STB_OUTPUT"

but still the video shaking frames

original video

stabilized video

I need help what the best command to stabilize walkaround 360 video

martius-lab commented 3 years ago

Stepsize should not be bigger than 6. If you don't care that it takes longer put it to 4 or 2. Then you can in the second pass make the smoothing higher to get less remaining movement. Try smoothing=30 or 40

ahmedAlmasri commented 3 years ago

@martius-lab I'm trying to change stepsize to 4 and smoothing to 40 but still same result video not smoother