View Single Post
  #27 (permalink)  
Old 05-Nov-2009, 15:38
oldcpu's Avatar
oldcpu oldcpu is online now
Global Moderator
 
Join Date: Mar 2008
Location: Europe
Posts: 10,729
oldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of light
Default Re: KDENlive from Packman?

Not really kdenlive per se, but one weakness of kdenlive is a lack of video stabilization software. Now kdenlive is not the only NLE lacking that feature as many Windoze and Linux NLE do not have it.

But I managed finally to setup a neat one line in bash to stabilize my videos prior to importing them into kdenlive, by using wine, VirtualDub and the deshaker plug-in. I got the major hint on how to do this from the VirtualDub forum thread: Image Stabilization | Kdenlive

That sent me to a VirtualDub forum thread, where the hint how to use the VirtualDub command line lay: Unofficial VirtualDub Support Forums -> Could I Script A Batch Deshake?

Currently I'm using this rather basic one line command, ... possibly if I learn a bit more I may be able to optimize it more in the future:
Code:
for i in *.avi; do wine /path/to/virtualdub/VirtualDub.exe /c /s deshake01.vcf /p $i temp.mp4 /r /x; wine /path/to/virtualdub/VirtualDub.exe /c /s deshake02.vcf /p $i deshaken_${i/%avi/mp4} /r /x; rm temp.mp4; done
In the above example one has a directory of video files with the .avi extension that one wishes to deshake. One also has the VirtualDub configuration files deshake01.vcf and deshake02.vcf in the same directory as the .avi files (I have not sorted paths under wine) setup such that deshake01.vcf is pass01 of deshaker configured, and deshake02.vcf is pass02 of deshaker configured. One can also put any other filters they want in the deshake02.vcf file.

After deshaking them with VirtualDub and deshaker, the final files ending up with a .mp4 extension and the words "dehaken_" in front of the file. ie if original file was "original.avi" the output file would be "deshaken_original.mp4".

I not have my Intel Core i7 920 busy stabilizing MANY of my home video clips. ... I figure it will be busy for DAYS doing this, ... hopefully I do not run out of hard drive space first ...

EDIT _ I still need to do a quality check on the above command, to see how well the output videos turned out. ... It all appears to be running MUCH too fast to be working properly ... so I have some checking to do.
Reply With Quote