[FFmpeg-user] Help with deshaking video from seaship

Andrey Utkin me at andrey-utkin.pp.ua
Thu Oct 24 21:25:15 CEST 2013


We have videorecordings from seaship, and we need the recordings to be 
viewable at ~100x fast motion.
This is a sample of recording with 120x fast motion without filtering: 
http://whdd.org/portovy-101-front__21oct_12m_from_videodump.mp4
The big problem is that on daytime the skyline shakes a lot, which is 
extremely uncomfortable to watch at.
So i tried applying deshake filters. I tried vidstab* filters, and 
deshake.
Currently i got better result with deshake:
exactly with such filter string: http://whdd.org/deshake.ts
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
=25,unsharp,unsharp,deshake=rx=64:ry=64:x=500:y=0:w=480:h=250:edge=clamp
fps decreases framerate from 50 to 25 Hz which improves deshake results, 
unsharp smoothes image so deshake better recognizes actual motion.
Magic numbers at deshake parameters mean following: we limit motion 
detection to center of skyline, if we have skyline fixed we get most of 
objects fixed.
But the result is still not quite good, a lot of details lost at 
blurring, and shaking is still not fully eliminated. Not counting the 
blockiness, which is possible to avoid by reencoding from original video 
(still fetching it from the ship to try).
Any ideas on better filters combination?
AFAIK there's no morphing filter available for ffmpeg or another FOSS 
tool?
-- 
Andrey Utkin


More information about the ffmpeg-user mailing list