View Full Version : Fasten clip and smoothing?
2E7AH
30th August 2009, 10:19
Hi,
I got a cloud evolution scene (640x480 MPEG1, 30fps) approx. 1 hour long
I need to fasten the scene so I tried with AviSynth:
SelectEvery(clip,9,0)
All went well, accept that I'll change the rate to 12 or 15 frames, but the motion is noisy.
It's fine day with partial clouds but noise is noticeable, and I would like to correct that
So I think I should use some smoother function either from VirtualDub (MSU Motion estimation or built-in VDub smoother filter) or one from AviSynth smoother functions
But I don't know which and maybe there is more appropriate approach to all this
I could just experiment but it took me 1h just to parse above AviSynth line with VirtualDub without any compression
Thanks :)
Gavino
30th August 2009, 10:55
Try adding a call to TemporalSoften (http://avisynth.org/mediawiki/TemporalSoften).
2E7AH
30th August 2009, 17:35
Try adding a call to TemporalSoften (http://avisynth.org/mediawiki/TemporalSoften).
Thanks for the input
I probably should try harder, but anyway
I used this little script:
clip = DirectShowSource(...)
SelectEvery(clip,30,0) // little faster than expected :)
AssumeFPS(30)
TemporalSoften(4,4,8,15,2) // default suggested values
unfortunately there are artifacts on the blue sky not on the clouds, and I'll play with parameters some other time
I also dubbed above script without last line and added MSU Motion estimation and temporal smoother (3), but similar result
I added MSU with TemporalSoften() too, because or irregular stops probably caused with SelectEvery() set on 30 frames
I don't know if it would be wise to sharpen the scene a little before smoothing, but it's probably bad idea?
OK, I'm reasonably happy with the result, only thing that is left now is to cut some frames where birds flew over scenery ;)
communist
30th August 2009, 22:15
http://forum.doom9.org/showthread.php?t=94650
2E7AH
31st August 2009, 13:52
Thanks comrade, almost same situation
I tried putting TemporalSoften() before SelectEvery() if that was your suggestion, but the result is not good
The thing is that original shot has little noise flickerings, and TemporalSoften() does god job, but not all are gone, especially in the darker blue parts of the sky.
It looks good now, but if it can be better I'd like to know how
Leak
31st August 2009, 15:06
It looks good now, but if it can be better I'd like to know how
Post a small sample that shows those artifacts well and I'm sure people will be able to make better suggestions... ;)
2E7AH
31st August 2009, 17:46
Hi Leak, (HA acquaintance ;))
Here (http://www.mediafire.com/?yzhmtm1tyta) is 10s preview of cropped area as example if anyone is interested
Additionally here are 4 shots of the cropped first frame:
- original
- with TemporalSoften()
- with VDub temporal smoother (3)
- with TemporalSoften() before SelectEvery()
http://img104.imageshack.us/img104/5773/orgp.png http://img80.imageshack.us/img80/360/avs.png http://img221.imageshack.us/img221/4462/vdub.png http://img44.imageshack.us/img44/7871/commc.png
Leak
31st August 2009, 19:10
Hi Leak, (HA acquaintance ;))
Hey, I thought of that first... :p
Here (http://www.mediafire.com/?yzhmtm1tyta) is 10s preview of cropped area as example if anyone is interested.
A few more clouds would have helped, since while you want the sky to look flat you probably don't want your clouds smeared to heck.
But
BlindPP(quant=4,cpu=6)
TemporalSoften(2,50,50,255,2)
doesn't look too bad - but like I said, I don't really know if it won't annihilate the clouds as well...
np: Das Bierbeben - Zwei Schinkentoast Warm, Ein Schinkentoast Kalt (Das Bierbeben)
2E7AH
31st August 2009, 21:50
A few more clouds would have helped, since while you want the sky to look flat you probably don't want your clouds smeared to heck.
Yes, I didn't thought on that, but only to point the artifact (I also forget to crop mod16 - lame)
BlindPP(quant=4,cpu=6)
TemporalSoften(2,50,50,255,2)
BlindPP() didn't work well either. Have you tried it on the linked clip?
Leak
31st August 2009, 22:50
BlindPP() didn't work well either. Have you tried it on the linked clip?
Yes, I did. Here's a after/before comparison of frame 350, magnified 3 times:
http://img168.imageshack.us/img168/184/cloudcomparison.png
If the processed image isn't lightyears ahead of the original I don't know what is. If it's actually the slight color banding in the result that's bothering you, add a call to GradFun2DB at the end...
np: Yppah - City Glow (They Know What Ghost Know)
2E7AH
31st August 2009, 23:49
Sorry for the trouble, I've made a mistake: I accidentally encoded AVS output with PICVideo JPEG codec!?
It looks really better, thanks
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.