Printable Version of Topic
Click here to view this topic in its original format
Unofficial VirtualDub Support Forums > Advanced Video Processing > Deshaker Messes Up Dissolve Transitions


Posted by: rjisinspired Apr 17 2011, 02:33 AM
Do anyone know what settings to use for deshaking where the transition points will not jump? I have the deshaker set for the type of video that I shot last week. I could redo the whole video over again but it will take 4 times as much time and effort.

Posted by: videocrack Apr 20 2011, 07:19 PM
sometimes it helps to disable ''detect rotation'' and ''detect zoom''. I don't know if it helps with your dissolve transitions though.

Posted by: rjisinspired Apr 21 2011, 03:46 AM
Thanks videocrack.

It looks like your suggestion fixed many of the dissolving scenes except a few. For example: a waterfall dissolving into a stiller scene; waterfall looks like it is moving downward while dissolving.

I have the rotation and zoom set for a value of "1", can't be totally disabled.

All-in-all bringing those two parameters down to 1 corrected a lot of the scenes.

Thanks.

Posted by: videocrack Apr 21 2011, 09:38 AM
glad it helped a bit smile.gif

I've figured the more you experiment with Deshaker the better the results


Posted by: evropej May 18 2011, 10:02 PM
I am pretty good with the settings since I use the software a lot.

To reduce unwanted tracking of motion, reduce the box dimensions.
Also, try blocking out the video portion which has the unwanted motion, say dont use bottom half of the video.

If you want specific settings for your video, upload the video and I will try to process it myself and then save the settings.

Posted by: evropej May 19 2011, 12:22 AM
http://www.evropej.com/deshaker.jpg

Posted by: rjisinspired May 19 2011, 06:26 PM
I can send you examples of shakiness from a Flip. Do you accept rar files? I'll send you also the screencap of the settings I used to deshake the walkthrough avi.

Posted by: evropej May 20 2011, 05:20 AM
Send me the clip so I can examine the motion. I will make a video of the settings and why I used.

Posted by: rjisinspired May 20 2011, 02:57 PM
https://rapidshare.com/files/1508719849/to-evropej.rar

There are some extra examples and a screenshot of the deshake settings I used for the main clip. The "58.6" for rolling shutter is in regards to the Flip Mino brand of cameras, mine is a Flip Ultra HD so i used that. I have rounded that number to 59 as of recent.

I included an example of the waterfall that dips during the dissolve.

The walkthrough nondeshaked example is probably the most shakiest out of all of them.

Posted by: evropej May 20 2011, 03:28 PM
I will check it all out when I get home and I will see what I can do.

Posted by: evropej May 21 2011, 08:30 PM
I am looking into it right now.
The scene detection might be thrown because of settings.

Question, the desolve throws deshaker off? Can you consider deshaking video first and then doing effects?

Posted by: evropej May 22 2011, 03:55 AM
First, try my settings- absolute motion is the key here and you dont need full analysis.
Second, try running phase 1 of deshaker with desolve off or other filters off.
If you can upload the two clips it would also help.
But I think my suggestion will work for you.

I have to those settings through a lot of testing.
I will still upload the tutorial on monday since a lot of people might have an interest.
Let me know how how these suggestions go.

Posted by: rjisinspired May 23 2011, 02:27 PM
the deshaker is thrown off when using dissolves. It works better when not adding them. I would had preferred to have the dissolves in so as to not have to go back into vegas but I have to anyway to add any subtitles. I should be using subtitle work in Vdub instead.

Good to know that you don't need full analysis. I just processed a handheld of a boat house and the river and it looks steadier but still wobbly. There is so much fine details in this deshaker. Would be good to know how to use it better.

Posted by: evropej May 23 2011, 03:43 PM
The wobble is generated from the change in perspective frame one from to another. Another effect is that when shaking happens, the image is blurred because the camera is moving the exposure time is to long. This seems normal when viewing the original footage however, when deshaking the video, these frames are seen more clearly and the blurriness is more pronounced.

To compensate these effects, try removing high frequency content only ( setting smoothness lower 200-600 )

Note, using half scale actually work much better since it has a filtering effect for noise. I have found that the performance hit itself is not worth using it let alone the poor matching. In some rare cases you might want to have a really small block size, less than 20, and this might require full analysis.

The whole concept behind the tool is that each block has a unique pixel sum. For example, an are of brightness will have a much lower value then a dark region. This is how the tool detects motion or at least this is my understanding of it which then makes sense of all the other parameters.

Did you try running the deshaker with desolve OFF during phase 1 and then turning desolve ON for phase 2? Remember, dehaker will use the desolve information to try and detect the motion so having the effects off will help. Trying my settings will also help deshaker in the scene changes and prevent it from jumping. Try this and let me know if you have any success.

Posted by: rjisinspired May 23 2011, 04:08 PM
The dissolves are encoded into the video through Vegas. Only way I can think of is not using dissolves then go into vdub to do the deshaking stuff then go back into Vegas to make the dissolves. This would be time consuming to do.

It would be really cool if a deshake could be done in Vegas as one process then be able to make the dissolves into another process before encoding the final video.

I'll give the settings that you had in the screencap a try.

Posted by: evropej May 23 2011, 05:26 PM
After you mentioned the fact that the desolve was done in Vegas, I am not sure my suggestion with desolve OFF will work.
A painful work around would be to delete the frame information in deshaker log file for the transition frames, telling deshaker not to deshake those frames.
The only way I see this working correctly and the way I actually do this is to deshake individually all the clips.
Then you can post process the video.
In fact, the best results from deshaker are generated from raw video.
All this time I was thinking that you were desolving in deshaker.

Posted by: rjisinspired May 23 2011, 06:01 PM
I tried the settings that you had suggested on raw video but it didn't really do anything. Video is still kind of shaky. I wish I knew how to use this thing better.


Posted by: evropej May 24 2011, 04:45 PM
I am not sure its deshaker at this point. Its just locking into two different frames.
The only thing I would suggest is doing the deshaking first and then processing the video files for effects.
If you think about it, the software gets rightly confused because of the blending effect in the scene.
I will give it a try tonight again but I am not hopeful.

Posted by: rjisinspired May 24 2011, 05:34 PM
The file I used for the last run was a straight MP4 file from the Flip with no effects at all and there was some shake left over still. I don't know what I'm doing wrong at this point.

Posted by: evropej May 24 2011, 08:21 PM
Try masking moving objects by using the ignore pixel option in phase 1.
This will force deshaker not to use information which could skew the motion detection.

Also, what settings did you try?
The settings I recommended work very well for most scenarios I have tried.

Can you upload video of the waterfall.
I think I have the desolved version.

Posted by: evropej May 26 2011, 02:19 AM
I have used the settings I recommended on both videos you provided with high success.
The only suggestion would be to decrease the smoothing in phase two to about 400 which reduces perception distortions.
I would like to try it out on the two scenes with the waterfall that you are having issues with.

Posted by: rjisinspired May 27 2011, 08:22 PM
with or without the dissolve?

Posted by: evropej May 29 2011, 11:41 PM
Without, original clips

Posted by: rjisinspired Jun 1 2011, 07:59 AM
Original files, renamed for import in AVIsynth:
https://rapidshare.com/files/3732490733/Two_water_scenes.rar

The first clip is of the waterfall. The part I had used in my project was after 20 seconds. I had walked on the bridge thinking I would use that later as a test for deshaking but decided to leave it out from the final video.

Posted by: evropej Jun 1 2011, 11:21 PM
I deshaked both videos with no issues. Then combined and used fadfx filter. Compressed with camtasia. I am not sure what the camera roll was, I used 47%.

What you are seeing is the relative motion of the camera at the end of the clip. If you dont want this motion, then cut it out. But in general, there is nothing wrong with deshaker. It is the difference in camera motion from one shot to the other, raising up to stopping.

http://www.evropej.com/water.zip

Posted by: rjisinspired Jun 2 2011, 09:38 AM
Ah I see what you mean. I'm going to have to pay more attention to that before hitting the pause button. If I'm more careful the movement might still be minor but I'll just snip it out later.

Thanks evropej for your time in working with these files. smile.gif

Posted by: evropej Jun 2 2011, 01:40 PM
Not a problem, I am glad I can help for once lol
laugh.gif

Powered by Invision Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)