Avisynth: Adding scene change blur to static script?
Is it possible and if so - how do I do it? It would reduce the filesize, right?
|
Re: Adding the MA "scene change blur" to static sc
Quote:
The more active the movie and the more scene changes, then you'll take advantage of the MA portion of the script. You need to add the following lines right after your "Mergeluma" line: Code:
SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2 |
What I'm looking for is to only blur the frames before and after a scene change. Not to motion adapt the bluring like in the MA script...
If I have two scenes of 100 frames each I want to blur frame 100 of the first scene and frame 1 of the second scene. That must be possible, right? |
Quote:
Ok, now I read your post again. You can do it with a very high "nf" treshold. Add the lines I gave you above, but like this: Code:
ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf >=30 ? \ This is just a guess value, which I just picked up. What you really need to do is add this line at the end of your script: Code:
ScriptClip("Subtitle(String(nf),1,30)") Please note that the value will be different, depending what resolution you are encoding. What the MA part I just posted will do, is indeed blurr very heavyly only on scene changes, and "do nothing" ( unfilter (0, 0 ) ) below that treshold. Give it a try, and let me know ;) -kwag |
Thanks kwag! :D I think the fault was mine - not you reading too fast. I gave the topic a confusing name... :oops: But I changed it as fast as I could.
I will try your suggestion at once! :wink: |
Looks like I will have to raise the value to 40... It looks as if only the frame before the scene change is blurred. Is there a way of blurring the frame after too? If it's useful I mean... The idea is to make it easier on TMPGEnc and to get smaller video files.
|
Quote:
Everything is possible :cool: Then this is what you want: Code:
ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf >=18 ? \ ;) -kwag |
Thanks a lot!!! :D
|
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.