"Deshaking" means fixing the video captured from camera hold in hands.

Is there open source video deshaker apart from y4mstabilizer from mjpegtools? Patch for mencoder is preferred.

My current command line for processing video looks like:

mplayer  video_from_camera.avi -nosound -vo yuv4mpeg:file=/dev/stdout -really-quiet | y4mstabilizer -n -a 0.8 -r 30 -s 100 | mplayer -cache 1000 /dev/stdin -noconsolecontrols -vf crop=500:380:70:50,denoise3d=3:3:5:5 -vo yuv4mpeg:file=temporary.yuv

y4mstabilizer is itself very unstable and often crashes (and it didn't work at all until I have patched memory allocation in it).

link|improve this question

64% accept rate
feedback

2 Answers

up vote 2 down vote accepted

Use transcode with "stabilize" and "transform" plugin pair. http://www.transcoding.org/

transcode -i temporary1.yuv -J  stabilize=maxshift=100=fieldsize=20 -y null,null -o /dev/null
transcode -i temporary1.yuv -J transform=smooth=50,denoise3d=luma=3:chroma=3:luma_strength=5:chroma_strength=5 -y yuv4mpeg -o temporary2.yuv
link|improve this answer
feedback
filter_stabilize.so] Image Stabilization Settings:
[filter_stabilize.so]       maxshift = 100
[filter_stabilize.so]       stepsize = 2
[filter_stabilize.so]       allowmax = 1
[filter_stabilize.so]           algo = 1
[filter_stabilize.so]     fieldsetup = 3
[filter_stabilize.so]      fieldsize = 20
[filter_stabilize.so]         result = yuv.trf
[export_null.so] v0.1.2 (2001-08-17) (video) null | (audio) null
[import_yuv4mpeg.so] chroma mode: 4:2:0 JPEG/MPEG-1 (interstitial)
Segmentation fault-512],   9.77 fps, CFT: 0:00:17,  ( 9| 0|11) 
link|improve this answer
Should be a comment (or even a question). – Vi. Jan 4 '11 at 23:07
Check that transcode works for you at the first place. Also AFAIR I installed external "filter_stabilize.so". Also I used to successfully myself (including for processing of still images - about 3000x2000 frames) – Vi. Jan 4 '11 at 23:09
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.