Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
18th March 2021, 19:18 | #62 | Link |
Registered User
Join Date: Feb 2002
Location: California
Posts: 2,695
|
I have a lot of background stabilizing images, having written several VirtualDub and Vegas scripts to permit stabilization of events within Vegas Pro using Deshaker inside of VirtualDub:
Deshaker Guide Deshaker VirtualDub & Vegas Scripts I am therefore very interested in this work, but don't want to take the time to get it up and running without some idea of how well it works. I just skimmed through all the posts looking for links to "before/after" examples. Has anyone posted an example of how well this works? |
18th March 2021, 19:58 | #63 | Link |
Registered User
Join Date: Feb 2021
Posts: 124
|
johnmeyer,
I tried Deshaker for VirtualDub, but I didn't like it. It is possible that I configured it incorrectly. This script uses DePanEstimate to find motion vectors. Then DePan makes full or partial compensation based on these vectors. After working with DePan, black borders remain. FillBorders or AVSInpaint fixes them. Check out the example in post #1 - "Original and stabilized clip". |
19th March 2021, 01:07 | #65 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Yep, Nice one, I did not spot that.
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? |
19th March 2021, 02:33 | #66 | Link | |
Registered User
Join Date: Feb 2002
Location: California
Posts: 2,695
|
Quote:
I too use Depan all the time inside of my movie film restoration script. If time permits, I'll IVTC your clip, apply that script and see if I can improve it, beyond simply stabilizing it. |
|
19th March 2021, 05:44 | #67 | Link |
Registered User
Join Date: Feb 2002
Location: California
Posts: 2,695
|
The test clip has lots of problems besides gate weave:
1. Horrible encoding artifacts. 2. Really bad flicker 3. Dirt To fix these I first IVTC'd the clip. Since it is animation where the dup pattern is unpredictable I used large Cycle/CycleR values in TIVTC. I am not an animation expert so I don't know if the result of removing duplicates will make the cartoon play strangely. Someone else will have to address that. However, to remove dirt, denoise, eliminate flicker, etc. you have to remove all dups. I used Depan to stabilize, but it didn't do a good job with the rotational stability issues. Most film doesn't have these. So I used Deshaker instead. I took that stabilized footage and fed it into my film script (which is posted elsewhere in this forum). I turned off the Depan stabilization, since that work was already done, but enabled Deflicker, set DCT=1 for the noise reduction, and enabled GamMac. Each of these three things helps reduce flicker. I turned up the dirt and noise reduction too far which results in some Jello artifacts. If this was important (to me) I'd go back and fiddle around with those. Here is the result: https://www.mediafire.com/file/svdnm...noise.mp4/file |
19th March 2021, 08:58 | #69 | Link |
Registered User
Join Date: Feb 2021
Posts: 124
|
johnmeyer,
thanks for your work. I was unable to make a video comparison because you changed the frame rate by 10 fps. I made a comparison with screenshots only. Deshaker for VirtualDub stabilized the clip better, but changed the zoom a lot. In my case, this is unacceptable. If you need to fix the rotation then set MethodMS=2 and mirror=true to fix black borders. P.S. Flickering is also poorly corrected. For cartoons, this is a big problem that I cannot solve normally. Last edited by Arx1meD; 19th March 2021 at 09:15. |
19th March 2021, 21:17 | #71 | Link |
Registered User
Join Date: Feb 2002
Location: California
Posts: 2,695
|
It kinda bugged me that I don't think you really understood what I did with the deflicker, and that the stabilization was pretty good. Also, when you remove the duplicates, you HAVE to time it to play at 10 fps in order to get the right speed. If you want it to play at 23.976, then you have to re-insert duplicates.
Here is the original and my modified version, side-by-side, with duplicates added back so it will play at 23.976. https://www.mediafire.com/file/bcflo...moval.mp4/file I used Depan, since you seem to like that, even though it doesn't do a very good job with rotation stability, even with rotation correction enabled. I will be interested to hear what other people think because, to me, the right side sure looks better than the right side, especially because for this clip, flicker is a far worse problem than stability. If you walk through it frame-by-frame, the lack of flicker in the "after" (right side) is even more apparent. Last edited by johnmeyer; 20th March 2021 at 23:13. Reason: clarification |
20th March 2021, 16:29 | #73 | Link |
Registered User
Join Date: Feb 2002
Location: California
Posts: 2,695
|
I only used Depan because you like it and you have spent a lot of time in this thread perfecting it. As I said earlier, I use it with the more normal gate weave on film, which usually does not include the rotation instability of your clip. So, for this clip, Depan didn't do a very good job, but I have other better ways to stabilize video (Deshaker, and the "ultimate" stabilizer, Mercalli), so I don't need help with Depan. I use it only because you didn't like my results with Deshaker.
I don't know why Depan introduced those strange jumps in the last scene. For flicker reduction I used the Deflicker plugin, with default settings AND I changed the DCT setting in the MVTools2 denoiser to DCT=1 which substantially reduces flicker as a fortuitous side effect. Finally, I used StanlessS' "GamMAC" to help even out exposure. Between the three of them I was quite pleased with the flicker reduction. Last edited by johnmeyer; 20th March 2021 at 16:34. |
1st April 2021, 22:47 | #75 | Link | |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Quote:
and mt_merge now don't has this problem thanks to pinterf
__________________
See My Avisynth Stuff |
|
1st April 2021, 23:26 | #76 | Link | ||
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Quote:
Quote:
The Mt_Merge thing is fixed anyway, either by the use of v2.60 Echo(), or my mod which changed to using c clip as input.
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? |
||
2nd April 2021, 02:53 | #77 | Link | |
Registered User
Join Date: Nov 2009
Posts: 2,361
|
I made the original script long ago so I don't remember many things of it (like the Dither stuff or how I proceeded to load ClipClop formatted call, prolly through macros).
The stabilization tools pack was always a proof of concept, was never meant to be the end it all. At the time I tested DeShaker and I found it great for handheld shakiness but not for pixel or subpixel jitter like in anime. I made stab2() to fix the following shortcomings of Depan: Quote:
|
|
Tags |
deshaker |
Thread Tools | Search this Thread |
Display Modes | |
|
|