Welcome! If this is your first visit, be sure to check out the FAQ. You will have to register before you can post in the forums. (Be aware the forums do not accept user names with a dash "-") Also, logging in lets you avoid the CAPTCHA verification when searching . Select Articles, Forum, or Blog. Posting in the Forums implies acceptance of the Terms and Conditions.

This forum is NOT for asking questions, but contains submissions to be reviewed and potentially moved to the How To/FAQ area. If you see something here you really like and feel should be permanent, take a couple of seconds and give the thread a rating. Alternately, if you see something here you don't think should be made permanent for one reason or another, comment in the thread and give the thread the appropriate rating. Your input will help pinpoint which items posted here are the important ones. Thanks for taking the time to help.

HowTo install VirtualDub under wine with deshaker plugin

I debated putting this in our HowTo area, as VirtualDub is an MS-Windows application, however with the "deshaker" plugin it offers a capability that to the best of my knowledge does not exist in Linux, and hence I thought this worth while.

With the "deshaker" plugin, the program VirtualDub (when running under wine) can reduce the shake in one's home videos taken with one's Video camera.

Dell Studio 1537 laptop with an Intel P8400 CPU running a 64-bit openSUSE-11.1 with KDE-4.3.4 and VirtualDub-1.9.8 under wine-1.1.35-1.1

Athlon-2800 on a Asus A7N8X Deluxe motherboard running a 32-bit openSUSE-11.2 with KDE-4.3.4 and VirtualDub-1.9.8 under wine-1.1.35-1.1

My steps to do this with deshaker-version-2.4 were as follows:

Step-1 : VirtualDub. Download VirtualDub from here: VirtualDub download (at SourceForge) - virtualdub.org . Place in /home/your-username/windows. Uncompress it into its own subdirectory, and change that to /home/your-username/windows/virtualdub [I prefer to change the file name so as to have it the same for all virtual dub versions, that way I use the same script file between PCs without having to edit directory names]

Test virtualdub in a terminal by navigating to /home/your-username/windows/virtualdub and typing :

Lets say the file is ffdshow-rev3128-20091108.zip. Then uncompress the file, and install it with:

Code:

wine ffdshow-rev3128-20091108.exe

Accept the various default configurations in the associated dialog boxes that pop up.

Ensure you select to install the VirtualDub plugin.

I chose the default settings:
.
Again, note this is a Microsoft application. Also ensure you select to run all 3 of the configurations, including the audio, video and VFW.
.
Installation Note: When I installed this on my 32-bit openSUSE-11.2 PC, I obtained this error below (and thus far it does not appear to have impacted deshaker under VirtualDub). I did NOT get this error on my 64-bit openSUSE :
I did not get the above on my 64-bit PCs
.

Step-3 : mcf42 . (possibly not needed with deshaker-2.5) Run winetricks and select "mfc42". (I am not 100% certain this is necessary, but I did this on my PC. This was part of a work around to ensure the deshaker plugin can be found by VirtualDub running under wine). You can run winetricks by typing:

This package is also needed so that VirtualDub will see the deshaker plugin.
.

Step-5 : XviD codec. Install a codec for encoding. I installed Xvid from the Koepi's Media Development Homepage - Xvid site. Again, I downloaded the windows file to /home/your-username/windows and from a terminal installed it with:

Step-7 : check if deshaker plugin found. Now navigate to the VirtualDub directory in a konsole (/home/your-username/windows/virtualdub ) and start VirtualDub with:

Code:

wine VirtualDub.exe

and go to "Video > Filters > Add " and you should see "Deshaker v.2.4 Gunnar Thalin" in the plugin list.
.
Also take this opportunity to configure your XviD codec for compression by going in VirtualDub to video > compress and select "XviD MPEG-4 codec" and "configure" and configure the XviD codec.

Now all you have to do is figure out how to use VirtualDub and the deshaker plugin, since it is now installed.

.Some usage hints

First all, to use the Deshaker plugin in VirtulDub one really needs to examine the guidance given in these web sites:

where I hand edit the "year", "month", "day" to be the date in which the video was taken. Put anything you want in that part.
.

SECOND - deshake the entire directory at once. Note I do the deshaking in two passes - to support this I created a custom deshake01.vcf and deshake02.vcf files to define the plugin loading and processing of the two passes. I put these two files in the same directory as the videos (because I have not sorted my paths yet) and then I deshake the videos all at once with this command:

Re: HowTo install VirtualDub under wine with deshaker plugin

Here is a link to a sample (before/after comparison) of a video "stabilized" with VirtualDub: YouTube - Extreme VirtualDub Deshaker Demo (HD) ... I confess, I could never get that sort of improvement with VirtualDub's deshaker, and the user who posted that video is far more adept than I, when it comes to using deshaker.

The technique I use with long command lines to process an entire directory is different from that noted in the above guides. Occasionally for some clips, I will tune the deshaker settings for the specific clip.

I note there is now version 2.5 of deshaker available. I have been using version 2.4, and I need yet to try version 2.5 to see if I can get it to work under Linux.

Re: HowTo install VirtualDub under wine with deshaker plugin

Originally Posted by oldcpu

I note there is now version 2.5 of deshaker available. I have been using version 2.4, and I need yet to try version 2.5 to see if I can get it to work under Linux.

I note a change for the C++ and MCF libraries for the version-2.5 change history, and that may invalidate a couple of the steps [ie step-3 and step-4] that I have in my guide above (ie maybe they are not needed for VirtualDub version-2.5):

Version 2.5 (2010-07-18)

When using future frames to fill in borders, you no longer need to manually pre-collect frames and delay the audio etc. Everything is now taken care of automatically, mostly by VirtualDub. This doesn't work for very old versions of VirtualDub, though. In fact, I strongly recommend version 1.9.9 or later.

You can now turn off detection of rotation and/or zoom during pass 1. Read more under the 'Detect rotation/zoom' setting above.

When the setting Remember discarded areas to next frame is enabled, the discarded areas are now remembered for all processed frames, so that when you want to reprocess some frames with other settings during pass 1, Deshaker will know which blocks were discarded in the frame prior to the frame you're starting reprocessing at. This only works as long as the total number of blocks (horizontally and vertically) don't change, which can happen if you, for example, change the block size.

The default edge compensation type was changed from Adaptive zoom to the more basic None, since I want you to decide for yourself if and how the borders should be taken care of. Also, the default smoothness values were changed from 400 (1500 for zoom) to 1000.

The C++ and MFC libraries are now linked statically. (This means you shouldn't need to install the C++ Redistribution Package any longer.)

Other smaller changes and bugfixes. For example, I fixed a bug which caused Deshaker to sometimes ignore large areas during pass 1 for certain (unusual) settings.

Re: HowTo install VirtualDub under wine with deshaker plugin

Originally Posted by otto_oz

I would like to crop my home video to widescreen format.

What would an easy way to go about?

This is not a function I normally do, and you may get better support on this by posting in a separate dedicated thread in multimedia, as opposed to in a thread about an MS-Windows application (virtual box) running under wine.

Re: HowTo install VirtualDub under wine with deshaker plugin

Originally Posted by multismo

To use the command line for deshaker, where can I get the files with the settings (deshake01.vcf and deshake02.vcf)?

I just made up my own. In essence they are the 1st pass and the 2nd pass deshaker settings saved when in VirtualDub. I think you need to make up your own as mine is not reuseable. But thats easy to do. Apply the settings for the 1st pass, and save the file as dehake01.vcf. Then apply the settings for the second pass, and save the file as deshake02.vcf. Then once those files are in place, you can exit VirtualDub and do this from the command line.