D90 Stair-Stepping Removal

Here's a grab from AE using Halsu and Buildyo's file. I like it. I couldn't get Lee's to work cause I don't know AE that well. I just placed the two files in AE/filter/Displacement Map/ Vertical .3/Horiz 0 and this is what it turned out.

Frame.jpg
 
I can't find any displacement map tutorials or anything regarding that for premiere pro. anyone know of a solution?

I don't think PPro has a native displacement filter. I think Boris FX offers one in one of their suites, but thats a pretty expensive solution.

If one had photoshop they might export out frames and run a batch with the displacement map setup right. If one didn't have photoshop and didn't want to spend money they might pursue using a batch job with the GIMP which is free and should be able to use a displacement map and batching... LOTS of data and not very efficient, but there is no reason it couldn't be run in chunks as disk space and time allow.

Its pretty easy to save out the frames as tiffs and to import the series of tiffs back into PPro once they've been displaced. Just takes time and disk space. I did something similar to give some footage a tonemapped "hdr" type effect. I think my hdr test took something like 50x my footage length for the photoshop batch on a 2 disk'ed lappy at 2.4gh with the same 7200rpm notebook drive as both the source and target.
 
Here's a grab from AE using Halsu and Buildyo's file. I like it. I couldn't get Lee's to work cause I don't know AE that well. I just placed the two files in AE/filter/Displacement Map/ Vertical .3/Horiz 0 and this is what it turned out.


That looks pretty good to me, and you are really testing the method with those high contrast graphic images, I expect when you film real world stuff (people, trees, cats attacking children) the difference between my method and this one would be negligible.
 
If one had photoshop they might export out frames and run a batch with the displacement map setup right.


I just tried it without success. The Filter is under Distort > Displace. Photoshop CS3 only allows whole numbers for the vertical displacement which unfortunately is too coarse.
 
I just tried it without success. The Filter is under Distort > Displace. Photoshop CS3 only allows whole numbers for the vertical displacement which unfortunately is too coarse.

Lowering the contrast on the displacement image would probably fix that - i'd test, but as said i'm not using premiere...


EDIT:


Whoops me + my wooden eyes ;-)

...i'll try to test photoshop with lower contrast displacement map as soon as i have a bit of time.
 
Last edited:
thanks, works great. only thing is it seems as if the same kind of scaling is taking place horizontally too? anybody got a displacement map to do both at the same time? sorry for being too lazy to do it myself, i don't have a good clip to eyeball the magic sequence against right now, just thought i'd point it out. ;-)

/matt
 
I just tried it without success. The Filter is under Distort > Displace. Photoshop CS3 only allows whole numbers for the vertical displacement which unfortunately is too coarse.

You could effectively make the displacement increments 'smaller' by first scaling the frame up - applying the displacement - then scaling back down.

Might be a bit of a pain/slow - but in theory it should work.
 
Hi All!

I did a little gizmo(script) for Nuke 5.x by The Foundry based on Lee Wilson procedure.
(Unfortunately Displace method wasn't so good for me)
So I used similar "99989" pattern with some manual tweak. There is nothing but slicing input picture and shifting them by 1 pixel.
The main plus of using it with Nuke is speed!! The 40 sec clip takes about 5 min to render on quad 6600 with 4 gig ram.
So guys, if you are interested i can upload it somewere:)

And again Lee Wilson THANK YOU! We OWE YOU:)))
 
Been following this thread for the last week and decided to sign up in order to post, firstly to express gratitude to those who think outside the square and secondly because I believe I have a portable solution that is also quick.

The gist of it is exactly the same as Lee's fix. I'm using AVISynth to build up the video in order to be served into VirtualDub for encoding to a lossless codec (lagarith or huffyuv - in my case lagarith, I hear huffyuv is faster though).

The speed of encoding is about 18fps on my Quad core 2.4ghz CPU pegged around 50% usage.

I'm experimenting with speeding things up a bit, namely with multithreading in AVISynth (currently in experimental state which is why I didn't have it handy to check). The fact my CPU is not 100% says to me there might be room for improvement. I suspect it could even be the lagarith codec itself since I can view the AVISynth file in Media Player Classic in real time.

For those who don't have the hard drive space to be saving video to a lossless file for use in your video editing suites there is a way to fake an AVI from the AVISynth script via frameserving (e.g. VFAPI), I used that tool a long time ago when encoding my DVDs to XviDs etc. Haven't had much time to play around with it all so am not completely up to date.

I quickly applied a Denoise3D filter on the file and the resulting clip rendered at about 17fps so not much of a speed penalty here.

Rendered 1min20sec clip (video of my bedroom with little light) resulted in output file size of 945MB without NoiseReduction and 833MB with NR on.

Hopefully I will have time to provide an even faster solution and a complete guide once work leaves room to breathe. I would also like to double check the slices I have in my script are correct as well (used excel to generate the numbers and script based on the magic code provided in this thread)

A final FYI: AVISynth is free, VirtualDub is free and Lagarith is free as well. There are also a great deal of free filters for both AVISynth and VirtualDub.

I was never into shooting video, I bought my D90 for photos, but since work is making participation in the end of year film festival mandatory, I started to look around and found this site. Again, many thanks to all the knowledgeable video enthusiasts.
 
Hey alexdez, I'd like to get a copy of your Nuke script. I can also host it for others. I've sent you a PM with my e-mail address.

If anyone else needs hosting for project files, etc just send me a PM!



Hi All!

I did a little gizmo(script) for Nuke 5.x by The Foundry based on Lee Wilson procedure.
(Unfortunately Displace method wasn't so good for me)
So I used similar "99989" pattern with some manual tweak. There is nothing but slicing input picture and shifting them by 1 pixel.
The main plus of using it with Nuke is speed!! The 40 sec clip takes about 5 min to render on quad 6600 with 4 gig ram.
So guys, if you are interested i can upload it somewere:)

And again Lee Wilson THANK YOU! We OWE YOU:)))
 
I've done a bit more playing around with this, and in the process have come up with an AVISynth script that implements Lee Wilson's method. Rendering is pretty slow (about 7fps on my quad-core with 8GB of RAM), but it works nicely and can be done with all free software (I used VirtualDubMod to read from the frameserver)!

I have created a page where I will host the AVISynth script and I will also be adding instructions and examples shortly.
http://www.dc-gear.com/d90/

I also wanted to point out that while I was working on this, I used the "magic numbers" provided by buildyo on page 4 of this thread. This really helped, but I did find two spots in the sequence where I needed to switch a 9 and an 8 to get the best results. Here is my sequence:

7,9,9,8,9,9,9,9,9,8,9,9,9,9,8,9,9,9,9,9,8,9,9,9,9,9,8,9,9,9,9,9,8,9,9,9,9,9,8,9,9,9,9,8,9,9,9,9,9,8,9,9,9,9,9,8,9,9,9,9,9,8,9,9,9,9,9,8,9,9,9,9,8,9,9,9,9,9,8,9,9,7
 
Back
Top