digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Motion adaptive filtering now possible? (http://www.digitalfaq.com/archives/avisynth/3594-avisynth-motion-adaptive.html)

black prince 06-08-2003 10:18 AM

@vhelp,

Gibbs Effect or mosquitos appears at the edge of objects and people,
especially when moving as a very thin wavy chrona. It's more noticable
at low CQ's and for now is believed to be a result of Tmpgenc's inability
to apply bitrate for scene changes due to motion search algo. With higher
CQ the bitrate is overused on every frame. :) If a new filter could trick
motion search to apply more bitrate in action scenes and less in still or
slow scenes, a lower CQ could be used and still have picture quality
similar to using higher CQ. :)

-bp

vhelp 06-08-2003 10:32 AM

ha bp..

Quote:

With higher
CQ the bitrate is overused on every frame. If a new filter could trick
motion search to apply more bitrate in action scenes and less in still or
slow scenes, a lower CQ could be used and still have picture quality

similar to using higher CQ.
..and that's just what Motion Adap.. is all about !! hehe.. right ??

Who is now working on the AVIsynth script now (fine-tuning it) ??
My head is still hurting from the spinning (reading all these pages) I had
printed out a hard copy for offline reading - over 100 pages I think.


@ bp..

:idea: Are you going to include a script in your DOWNLOADS section for this script ??
..and the all the necessary filters required for this script ??

:idea: This could really be useful and would really help lots of us out here w/ this
new script.

I just finished working out an
issue w/ the latest version of AVIsynth (v2.52) and have also D/L'ed all
filters for this version, so that I wouldn't have to later on. I'm now happy
thus far :)

Well, I can't wait to start trying this script out. I'm not sure if I have everytihng,
but I do hope that all work out w/ out too much issues :)

Thanks everyone (for all these crazy ideas - - keep them comming)
-vhelp

DKruskie 06-08-2003 10:54 AM

I just happen to take a peak to see if the optimal script was changed and I found something..there is nothing assigned for the Unfilter in the script...Here is the script .

## DLL Section ##
#
LoadPlugin("C:\Filters25\MPEG2Dec3.dll")
LoadPlugin("C:\Filters25\STMedianFilter.dll")
LoadPlugin("C:\Filters25\UnFilter.dll")
LoadPlugin("C:\Filters25\asharp.dll")
LoadPlugin("C:\Filters25\undot.dll")
#
####

## Defined Variables and Constants ##
#
MaxTreshold = 1.50
scd_trigger = 15 # Scene change trigger value.
nf = 0 # Current frame.
#
####

## Main section and static filters ###
#
Mpeg2Source("Your_D2V_Source_Here")
#
undot()
Limiter()
asharp(2, 4)
BicubicResize( Your_Resize_Values_Here )
STMedianFilter(8, 32, 0, 0 )
MergeChroma(blur(MaxTreshold))
MergeLuma(blur(0.2))
#
#

## Dynamic Linear Adaptive Filtering and Scene Change Detection ##
#
# ( Portions from AviSynth's manual ) - This will apply temporalsoften to
# very static scenes, and apply variable blur on moving scenes.
# We also assign a variable - and this is why a line break is inserted:

ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf > 2.5 ? asharp( -(fmin((nf/35), 1)), 0 ) : \
TemporalSoften(2,7,7,3,2) ")

#
# Scene change detection ( kwag ) - If a scene change is detected, we
# blur heavily. This affects the scene before and the one after the
# scene change, thus providing a softer transition for the encoder instead
# of a sharp "spike".
# If it's not a scene change, then we just blur dynamically, depending on
# the action.

ScriptClip("nf > scd_trigger ? asharp( -2,0) : asharp(0,0) ")

#
#
#

#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
#AddBorders( Your_Values_Here ) # Depends on situation. Use MovieStacker!
Limiter()

#
#
## Functions ###

function fmin(float f1, float f2) {
return (f1<f2) ? f1 : f2
}

#
####


David

kwag 06-08-2003 10:56 AM

Hi David,

Yes, you're right :D
I forgot to remove the "LoadPlugin("C:\Filters25\UnFilter.dll")" line :!:
So you might as well delete it from the script.
I'll update the script later today.

Thanks,
-kwag

jorel 06-08-2003 12:24 PM

:wink:

thanks for all hints bp.

i have Diskeeper 7.0, isn't installed now but is very cool.
don't know if i have ace utilities ...searching.
if i can't find it i download the trial.

a backup of the registry and then compresses it?
i never did but is the very cool hint.

thanks :wink:

ps:
i don't have fear to edit the registry cos
before this i do a ghost image. :wink:

i am writing the guide to make a boot cd with ghost that i
use for more than a year in the portuguese forum for
backup the system and i will post all in zip file
with images to burn in nero.
i'm making my little page only with images and zip files
and turn my dvi connection to dsl, than will be easy to post...
only will need that you have the ghost .exe and nero.
this i can't post.

:!:

vhelp 06-08-2003 12:32 PM

@ jorel..

Sorry for off-topic here, but..

I'd be interested in having a look at your guide :)
I use NGhost but could never figure out HOW to make my CDRW a bootable
disk.. I always have to insert a 3 1/2 diskette :(

-vhelp

vhelp 06-08-2003 12:47 PM

@ Kwag..

Sample from Page 27 (repeated here)...
* http://www.kvcd.net/red-planet-19second.mpg

Your sample above...
* Did you do this one based on a chapter ??
* OR, did you just merge a bunch of scenes gotether ??

I was hoping to give this one a shot of encode, but using 720 as my max
resolution. 544 works ok in my AD-1500, but still produces some minor
zizags on diaginals. But, that 704 res. came out pretty good on your sample though :wink: The 720 is PERFECT for me though !! For me, I'm a
step up on the higher scale of quality FWIW :wink:

Also, I noticed that on that sample above, it would seem that brighter lit
scenes, do come out nicer looking (or is it my eyes)

-vhelp

kwag 06-08-2003 01:21 PM

Quote:

Originally Posted by vhelp
@ Kwag..

Sample from Page 27 (repeated here)...
* http://www.kvcd.net/red-planet-19second.mpg

Your sample above...
* Did you do this one based on a chapter ??
* OR, did you just merge a bunch of scenes gotether ??

I just picked a random start point, and encoded that clip. Its not different scenes merged. It's a complete un-edited 19 second encode.
Quote:

Also, I noticed that on that sample above, it would seem that brighter lit
scenes, do come out nicer looking (or is it my eyes)
Depends on the film. Usually dark scenes are bad for any MPEG-1/2 encoder, but that's where the KVCD "Notch" matrix shines :wink:

Edit: Also, play that clip with WinDVD or better yet VideoLan client player :D. Don't use WMP :x

-kwag

vhelp 06-08-2003 01:39 PM

@ Kwag..

Quote:

Edit: Also, play that clip with WinDVD or better yet VideoLan client player . Don't use WMP
Actually, my order of preference SW players are:
* PDVD v3.0 (4:3 [Change to 1024x768], 16:9 [Change to 1024x768, [x] Keep AR]
...and keep color set to "0" (for my LCD screen)
...why ? cause when viewing 16:9 encodes/DVD movies, it keeps 16:9 AR !!
* WDVD v3.0 (has no AR changing, keep colors at ( max-8 )=PDVD's)
* Zoomplayer v2.90 (if using MPEG-2, it crashes on my pc otherwise, but
...MPEG-1 and other formats ok)

Red Planet, (and others)...
When I'm doing test encodes, using smartriper v2.27, I usually just do the
first VOB or 10 chptrs, which is what I did today, unless someone asks me
to help them out w/ encoding testing or I'm debuggin a scene elsewhere.

There's always a method to my madness.. So far, so good.
-vhelp

totonho03 06-08-2003 02:38 PM

Jealousy (Not the tango)
 
I am just soooo jealous (and full of envy) to see all of these wonderful ideas floating all around me, and not being able to at least experiment and make believe that I am learning something..... Actually, I have learned a lot just by reading the threads, not to mention the help received with conversations held with "El Maestro" Sr. Kwag. I should also mention that Mr. Black Prince and Red m, have helped a lot towards my understanding of this wonderful KVCD world you (and sometimes myself), are evolving around.
I am going to wait a little bit more for the new optimal script, and see if I can get back to releasing my stress, and create a KVCD. Meanwhile I will try to clean up my registry (Thanks Jorel and BP) and load the new version of Avisync with their respective filters

Senor Kwag: Are you planning on updating the CD test version? Just asking about it.

Thanks to you all

Totonho03

kwag 06-08-2003 02:43 PM

Re: Jealousy (Not the tango)
 
Quote:

Originally Posted by totonho03

Senor Kwag: Are you planning on updating the CD test version? Just asking about it.

I don't think so, because the test CD is really for testing the playback resolutions on standalone players, and they are all in there :)
It's really not a "quality test" CD.

-kwag

black prince 06-08-2003 03:04 PM

@Kwag,

I was browsing thru old posts and came across this link:

http://shelob.mordor.net/dgraft/msmooth/msmooth.html

I haven't tried MSmooth, but it looks promising. We need a
"proactive filter for mosquitos" (as SansGrip would say). Undot(),
DCTFilter, Unfilter, etc. are worth a try if the source is already
contains Gibbs effect. But to correct this before it happens is
another issue. Give me your opinion about MSmooth :)


-bp

vhelp 06-08-2003 03:19 PM

@ bp..

ok, so NOW I know what Gibbs are :!:

So, then, the other thing I was going about is relating to something else..
Great!! Ok, mov'en on..

FYI: I see that this filter is for AVIsynth v2.5
* http://shelob.mordor.net/dgraft/msmooth/msmooth.html

-vhelp

vhelp 06-08-2003 03:26 PM

.
.
About Gibbs and Encoding..
I was looking at the two pics (beore/after) and studying them. Now, I have
a few questions as a result:

* Are these gibbs produced DUE TO an effect of the encoding source materials ??
* OR, is it a LEFT-OVER artifact AFTER the encoding process ??

After looking at MSMOOTH's final result, I'm wondering if this will increase
our encoding qulaity and size, or will it not matter. I mean, I know it will
make the final encode look better. Is this a cosmetic fix to the final encode, and as a plus, decreases our size, or what.. just wanna get a better
understanding :!:

-vhelp

jorel 06-08-2003 04:14 PM

Quote:

Originally Posted by kwag
@Black Prince ( and all! ),

I just did a quick test, by changing the motion estimation to "Fast" in TMPEG, and there are CLEARLY less Gibbs. Maybe with the new adaptive method of filtering, we can use this motion estimation, and even though the CQ might be slightly smaller than with "High Quality" estimation, the final quality will be better :idea:

Edit: I just did two encodes with ToK. One with "High quality" and another with "Fast"

Here are the results:

http://www.kvcd.net/red-planet-sampl...on-cq62.70.mpg
http://www.kvcd.net/red-planet-sampl...y-cq63.031.mpg

I can clearly see less Gibbs with motion estimation set to "Fast".
If you want to try this with ToK, change the line in the file "video.en1" that reads:

Job.MPEG.Video.MotionSearchSpeed=MPEGVideoEncoder_ MotionSearchSpeed_Slow

To:
Job.MPEG.Video.MotionSearchSpeed=MPEGVideoEncoder_MotionSearchSpeed_MotionEstimate

Not to mention that the encoding speed is now a rocket :)

-kwag


Kwag,
i was trying and don't got results...
than i see that we have 2 files "video.en1" in ToK.
one file is in "opt" folder and another in "work" folder.

than i change the :arrow: "video.en1" in the "opt" folder.
working faster now.
thanks.

the quality remains after the change?
i don't see more posts about this.
no one more try the change?
:?:

black prince 06-08-2003 04:22 PM

@Kwag,

Kwag wrote:
Quote:

@Black Prince ( and all! ),

I just did a quick test, by changing the motion estimation to "Fast" in TMPEG, and there are CLEARLY less Gibbs. Maybe with the new adaptive method of filtering, we can use this motion estimation, and even though the CQ might be slightly smaller than with "High Quality" estimation, the final quality will be better

Edit: I just did two encodes with ToK. One with "High quality" and another with "Fast"

Here are the results:

http://www.kvcd.net/red-planet-sampl...on-cq62.70.mpg
http://www.kvcd.net/red-planet-sampl...y-cq63.031.mpg

I can clearly see less Gibbs with motion estimation set to "Fast".
If you want to try this with ToK, change the line in the file "video.en1" that reads:

Job.MPEG.Video.MotionSearchSpeed=MPEGVideoEncoder_ MotionSearchSpeed_Slow

To:
Job.MPEG.Video.MotionSearchSpeed=MPEGVideoEncoder_ MotionSearchSpeed_MotionEstimate

Not to mention that the encoding speed is now a rocket

-kwag
I checked Tmpgenc Settings after changes and found "Motion Search Precision" is still
set to High Quality (Slow) instead of Low Quality (fast) after your change.
I manually changed motion search and Gibbs lessened even more and
the encoding time dropped by 2 hours :?: I don't know if editing video.en1
will make this work.

@vhelp,

I tried MSmooth() instead of UNDot() and used default settings. It did
something alright. It caused the picture to be blurry, encoding time to
increase by 4 hours and of course Gibbs was decreased. This filter needs
tweaking. I commented UNdot() and MSmooth() to see if picture
quality decreased without them and it stayed the same. I will play around
more with MSmooth(), but the script appears pretty good already without
them. :D

-bp

jorel 06-08-2003 04:31 PM

hey bp,
read my last post about the change of "video.en1" file.
works ok and faster.
:wink:

vhelp 06-08-2003 04:37 PM

@ bp..

Can I vear from the topic slightly ??

Thanks bp.. right now, I'm batteling two things.
1, a slowly forming head-cold :(
2, Major problem getting VFAPI working.

As for line 2..
if you don't mind my vearing off slitely.. only because I'm banging my head
on this one..

1 - I've successfully installed AVIsynth v2.52, and all working great.
2 - I seem to have the filters working. I can open my captures just fine :)
3 - But, MAJOR issue w/ .D2V files. They won't open !! And, I need help !!

Ok, I have VFAPI v1.04 right ?? As, that's what I'm using on my MAIN pc
w/ no problems. So, I copy all my MAIN pc's files to my 2nd PC and run
the VFAPI.inf install and tell it the NEW directory (in the same as vdub)
* vdub files and directories
* dvd2avi files (including .vfp)
into a new folder on my 2nd PC and proceed to assume I installed all correctly.

* Now, when I open dvd2avi w/ a VOB file, and create my project .d2v file,
all is well.
* Then, when I open "VFAPIConv-EN.exe" and drag my .d2v file to convert,
all is well to. It converts.
* Then, when I drag the converted VFAPI.AVI file into vdub (as I do on my
MAIN pc w/ success all the time) IT DOESN'T WORK!!
I keep getting the error message: "cannot determine file type" ratts!!

So, please tell me, did I miss something ??

Thanks all, for any assistance.
-vhelp

audioslave 06-08-2003 05:31 PM

Thank you for the tip about changing the "motion precition" in the "video.en1" file! :wink:

Now onto another problem. I have ripped a movie and I can't get correct resize values. When I open the "*.d2v" file in MovieStacker I get all info (correct I believe) but when I start encoding it in TMPGEnc I get a screwed up aspect ratio! Any ideas on why?
The movie is mixed NTSC/NTSCFilm and in the 4:3 format. In MovieStacker it says the movie is PAL and Anamorphic 8O . When I try encoding it with those values the height gets messed up. Inversed egg-head effect (squashed)... And when I uncheck PAL and Anamorphic the aspect is correct althought the movie is not centered but sort of in the upper region of the frame - and with thick borders on the sides??? Please help me, I have no idea of what to do! :cry:
I've never had this problem before. I usually encode PAL movies and the resize values have always worked...

HEEEELP!!


EDIT: I also get a thick green line at the bottom of the frame!?

audioslave 06-08-2003 06:04 PM

Never mind my last post. I removed MovieStacker and unpacked the *.zip again to start fresh and now it works :oops: .
Don't know what happened...?
Sorry to bother you.

kwag 06-08-2003 06:43 PM

Quote:

Originally Posted by black prince
@Kwag,

I was browsing thru old posts and came across this link:

http://shelob.mordor.net/dgraft/msmooth/msmooth.html

I haven't tried MSmooth

I have tried it, and the result is :stickouttongue: :lol:
Just load the dll and add "MSmooth(strength=7,debug=true)" anywhere on the current script. You'll see what I mean :D
You can even drop the strength down to 1, and still, it will mess up your picture. Maybe on cartoons it works better, but it definitely doesn't on regular movies.

-kwag

kwag 06-08-2003 06:46 PM

Quote:

Originally Posted by jorel

the quality remains after the change?
i don't see more posts about this.
no one more try the change?
:?:

I've tried on two movies, and the result is far better with "MotionEstimate". I guess the current script is doing a good pre-filtering job, that we can now use "MotionEstimate" instead of 'High quaity".
At least, I'm getting MUCH better results this way :!:

-kwag

jorel 06-08-2003 06:53 PM

Quote:

Originally Posted by kwag
Quote:

Originally Posted by jorel

the quality remains after the change?
i don't see more posts about this.
no one more try the change?
:?:

I've tried on two movies, and the result is far better with "MotionEstimate". I guess the current script is doing a good pre-filtering job, that we can now use "MotionEstimate " estimation instead of 'High quaity".
At least, I'm getting MUCH better results this way :!:

-kwag

thank Kwag
:D

i have tons to encode and the new scrip is :arrow: really cool
and changing ToK to "faster" is fantastic :!:

my 60gb hd is full of vobs. :lol:

8)

kwag 06-08-2003 06:58 PM

Quote:

Originally Posted by jorel

my 60gb hd is full of vobs. :lol:

8)

Yeah mine too :!:
Now I have to go back an re-encode a lot of my DVDs :x :)
The difference is just too great to previous encodes 8)
I'm going to look for my "K-Pax" movie. That movie, encoded with this script, should look like the original DVD :lol:

-kwag

mrj03 06-08-2003 07:37 PM

Re: 704x480 Showoff !!!
 
Quote:

Originally Posted by kwag
And here's the showoff for the day :mrgreen:
www.kvcd.net/704x480-showoff.mpg ( CQ=68 MIN=300, MAX=2,500 ~6MB 25 seconds :!:, which should be about the right CQ to fit this particular movie on one CD, looking just like this sample 8) )

Enjoy!,
-kwag

I don't know about everyone else but I'd REALLLYYYY like to DOWNLOAD ALL of kwag's samples along with which template he used for each one. This would be GREATLY appreciated.......

THANKS....... GREAT SAMPLES......

black prince 06-08-2003 07:46 PM

@jorel,

jorel wrote:
Code:

hey bp,
read my last post about the change of "video.en1" file.
works ok and faster.

Thanks jorel :D Works great now :wink:

@Kwag,

Your right. MSmooth() was pretty bad at any setting, but UnDot()
doesn't show much improvement either. Encoding speeds up without
it too. :)

-bp

kwag 06-08-2003 08:28 PM

Re: 704x480 Showoff !!!
 
Quote:

Originally Posted by mrj03

I don't know about everyone else but I'd REALLLYYYY like to DOWNLOAD ALL of kwag's samples along with which template he used for each one. This would be GREATLY appreciated.......

THANKS....... GREAT SAMPLES......

Hi mrj03,

All the samples in this thread were done with ToK. In ToK, there's no notion of a tempate. You just select the resolution you want, and ToK will make your KVCD mpeg with all parameters already set :!:
That is, the Q. matrix and GOP settings are already taken care by ToK. All samples I did in this thread were done at 704x480 :)

-kwag

kwag 06-08-2003 08:30 PM

Quote:

Originally Posted by black prince
UnDot()
doesn't show much improvement either. Encoding speeds up without
it too. :)

-bp

I'm taking a look at that right now :!:
Maybe UnDot is good for some other sources, but not for DVDs :idea:
I'm testing now..

Edit:

UnDot() stays :!: :!:
It makes a HUGE difference :!:
The sample I posted before "red-planet-19second.mpg", took 59 seconds to encode without undot, and 60 seconds with undot. Only one second longer.
But the file size without undot is 2,148KB and with undot, it's 2,109. And that makes a big difference on a complete movie :!:


-kwag

ovg64 06-08-2003 08:43 PM

know wonder CQ when down when i took out the filter :!:

ovg64 06-08-2003 09:13 PM

@ all,

You might also want to take a look at Cnr2 filter this is a noise reduction filter on at 15 sec clip i got,

Frames 368 Default setting Cnr2()
with Cnr2 = 2182kbs
with out Cnr2 = 2204 kbs

thats a 22 kbs differece, encode speed seams the same, quality is so good with 252 that i couldn't tell you that it looks any better.

kwag 06-08-2003 10:02 PM

Quote:

Originally Posted by ovg64
@ all,

You might also want to take a look at Cnr2 filter

Cnr2 is a winner :D
The file size is now even smaller, and the time to encode was just the same as without the filter :!:
Thanks ovg64 :wink:
I just updated the current script :)

EDIT: CNR IS A LOOSER :!:
Look at this without CNR:
http://www.digitalfaq.com/archives/error.gif

And look at this flaw using CNR2:
http://www.digitalfaq.com/archives/i.../2003/06/2.png

I just noticed this going back and forth in Vdub, and I noticed something strange 8O
So I went back to the scene and look at that thing. It screwes up the chroma big time :!:
It could be, maybe because of the dynamic filtering being applied. I don't know, but it's out of the script for the time being :roll:
There is one frame difference between the screenshots, but the one that looks bad, looks correct without Cnr2.

-kwag

jorel 06-08-2003 11:28 PM

Quote:

Originally Posted by kwag
Hi jorel,

Maybe it's your 29.97fps movie you're trying to encode :!:
Have you tried the script on a 23.976 Force FILM .d2v :idea:

-kwag

hey Kwag,
you give some more hints here.

if my movie show this values in the
statistics window from dvd2avi 176:
aspect radio - 4:3,
frame rate - 29.970 fps,
video type - ntsc,
frame type - interlaced...

can i use forced film to get more CQ :?:

thanks
:)

kwag 06-08-2003 11:48 PM

Quote:

Originally Posted by jorel

can i use forced film to get more CQ :?:

thanks
:)

Not if the source is interlaced and was not originally FILM :roll:

-kwag

jorel 06-09-2003 12:04 AM

ok,thanks :!:
i always forget this "feature".

..cnr2 got a pleasure to stay some minutes in the new script.
the picture with cnr2 have a horrible error. 8O

is need changes or some filter to turn the script better :?:

kwag 06-09-2003 12:29 AM

Quote:

Originally Posted by jorel
is need changes or some filter to turn the script better :?:

The only thing I changed in the script was the scd_trigger = 25 # Scene change trigger value.
It was 15, and it was "falsing" on some scenes as if they were scene changes. So at 25, I have not seen that problem. I also slightly adjusted asharp( -(fmin((nf/30), 1)), 0 )
I had 35 before. Seems that 30 is more withing the "bluring" range we need. Over 35, we start loosing some blur on some key movements, so we loose compression.
These are minor tweaks, so I would say that the script is 100% useable as it is right now, and even the one posted before this update, excluding the one that had Cnr2 :!:

-kwag

Bchteam 06-09-2003 03:51 AM

Hi Kwag,

Do you finally recommend to use "MotionSearchEstimate" instead of "Hihgh Quality" :oops: :?:

Icarus3000 06-09-2003 08:33 AM

Wow! you guys are picky! ( I guess that's why we count on you to come up with the perfect script! :) )

For those of us with less discerning eyes, can you explain where in the sample I should be looking for this terrible flaw?

Thanks,
Icarus

ovg64 06-09-2003 09:16 AM

Quote:

I just noticed this going back and forth in Vdub, and I noticed something strange 8O
So I went back to the scene and look at that thing. It screwes up the chroma big time :!:
It could be, maybe because of the dynamic filtering being applied. I don't know, but it's out of the script for the time being :roll:
There is one frame difference between the screenshots, but the one that looks bad, looks correct without Cnr2.

-kwag
I dont know Kwag I went frame by frame with bigger
samples and i didn't see any of that on mines, could it be
the position where you put the filter in the script :?: or maybe just a conflict between to filter :?: than again i dont use STMFilter in my script i use another Spatial filter. But i got to admit the image is dischomanise, is that a word :?: :lol:
Take a look at my script:

LoadPlugin("C:\Documents and Settings\Osvaldo\My Documents\Avi Synth 2.51\MPEG2Dec3.dll")
LoadPlugin("C:\Documents and Settings\Osvaldo\My Documents\Avi Synth 2.51\asharp.dll")
LoadPlugin("C:\Documents and Settings\Osvaldo\My Documents\Avi Synth 2.51\deen.dll")
LoadPlugin("C:\Documents and Settings\Osvaldo\My Documents\Avi Synth 2.51\Dnr2_for_25.dll")
LoadPlugin("C:\Documents and Settings\Osvaldo\My Documents\Avi Synth 2.51\deen.dll")
LoadPlugin("C:\Documents and Settings\Osvaldo\My Documents\Avi Synth 2.51\undot.dll")

MaxTreshold = 1.50
scd_trigger = 15 # Scene change trigger value.
nf = 0 # Next frame.
Mpeg2Source("C:\Documents and Settings\Osvaldo\Desktop\Red Planet\RP.d2v")
Limiter()
asharp(2,0)
BicubicResize(528, 366, 0, 0.6, 5, 0, 710, 480)
Undot()
Dnr2()
deen("a2d",4,10,12)
TemporalSoften(2,7,7,3,2)
MergeChroma(blur(1.50))
ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf > 2.5 ? asharp( -(fmin((nf/35), 1)), 0 ) : \
TemporalSoften(2,7,7,3,2) ")
ScriptClip("nf > scd_trigger ? asharp( -2,0) : asharp(0,7) ")
AddBorders(0, 57, 0, 57)
LetterBox(0, 0, 16, 16)
function fmin(float f1, float f2) {
return (f1<f2) ? f1 : f2
}

Remember the changes on the adaptive line is just 4 me. :wink:

black prince 06-09-2003 09:35 AM

@Kwag,

Kwag wrote:
Quote:

I'm taking a look at that right now
Maybe UnDot is good for some other sources, but not for DVDs
I'm testing now..

Edit:

UnDot() stays
It makes a HUGE difference
The sample I posted before "red-planet-19second.mpg", took 59 seconds to encode without undot, and 60 seconds with undot. Only one second longer.
But the file size without undot is 2,148KB and with undot, it's 2,109. And that makes a big difference on a complete movie


-kwag
Maybe it's time to look at DCTFilter. SansGrip was experimenting with it
some time ago to correct mosquitos and found it produced a 30%
decrease in file size without any noticable effect to picture quality :idea:
This tweaking is really fun, since picture quality is already great and issues
of encoding speed and filesize remain. :D

-bp

kwag 06-09-2003 10:08 AM

Quote:

Originally Posted by Bchteam
Hi Kwag,

Do you finally recommend to use "MotionSearchEstimate" instead of "Hihgh Quality" :oops: :?:

With this script, Yesssss :!: :D

-kwag


All times are GMT -5. The time now is 06:30 PM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2026 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2026 Jelsoft Enterprises Ltd.