![]() |
MA Script Questions
I want to try the MA script instead of the "For DVD and clean material (AviSynth 2.0x) for my KDVD full encodes
## DLL Section ## # LoadPlugin("C:\Filters25\MPEG2Dec3.dll") LoadPlugin("C:\Filters25\GripFit_YV12.dll") LoadPlugin("C:\Filters25\STMedianFilter.dll") LoadPlugin("C:\Filters25\asharp.dll") LoadPlugin("C:\Filters25\unfilter.dll") LoadPlugin("C:\Filters25\undot.dll") # #### ## Defined Variables and Constants ## # MaxTreshold = 1.50 nf = 0 # Current frame. # #### ## Main section and static filters ### # Mpeg2Source("Your_D2V_Source_Here") Understand. # undot() Limiter() asharp(1, 4) GripCrop(Your_GripCrop_Parameters_Here) For KDVDfull 720,480 Anything else? GripSize(resizer="BicubicResize") STMedianFilter(8, 32, 0, 0 ) MergeChroma(blur(MaxTreshold)) MergeLuma(blur(0.1)) # # ## Linear Motion Adaptive Filtering ## # # ( 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: SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2 ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf >= SwitchThreshold ? \ unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ) : \ TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1) ") # # # GripBorders() #LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker! Exactly what data do I get from MovieStacker? For example, almost all of my encodes are for 16:9 film. Do I change any other data than I've noted in blue? Limiter() # # ## Functions ### Also, do I remove AviSynth 2.0x and install AviSynth 2.5x, or keep both? Also, which version of AviSynth, 2.5.2 or another release? function fmin( int f1, int f2) { return ( f1<f2 ) ? f1 : f2 } # #### |
Nicksteel,
Good idea! You have to remove AviSynth 2.08 to install 2.52. Even if you don't remove they will overwrite each other, so you better remove to avoid confusion. Also make sure you predict all movies you want to put in the DVD together, that will give you even more quality in your encodes. []'s VMesquita |
Need some specifics.
Quote:
Can you give me a sample line for LETTERBOX() for 16:9 NTSC FILM? This is for 720x480 16:9 DVD output from original 16:9 NTSC FILM DVD using KDVDFULL. Telecine() and Decimate() used in avs file. |
This is what I use:
GripCrop(720,480,overscan=1,Source_anamorphic=true ,dest_anamorphic=false) GripSize(resizer="BicubicResize") GripBorders() You may need converttoyuy2() in the end of the script. []'s Vmesquita |
For KDVD encodes, I wouldn't use Gripfit.
I'd rather open the .d2v in TMPEG to get the "Film Pixels", then feed that in Moviestacker to get the correct resize and overscan blocks. Example: I open my "K-Pax" .d2v with TMPEG. Go to "Clip frame" and cut off the top and bottom black bars. Now I read on the top left the actual film size. It reads: 720x362 So I exit TMPEG, canceling the clip frame (was only used to get the film area), and run MovieStacker and open the same .d2v. Now Moviestacker reads the source as 720x480, so I enter 720x362 in the Film Pixel fields. Now I select my blocks overscan, etc. And because I'm doing a DVD, and my source is 16:9 anamorphic, I select anamorphic on output too :!: This is important, to create the same anamorphic DVD aspect as the original. Now a basic .avs script looks like this: Code:
Mpeg2Source("F:\KPAX\VIDEO_TS\movie-dvd2avi-1.77.3.d2v")Just add your MA script or favorite filters ;) -kwag |
Kwag,
This looks interesting, I'll try in my next KDVD Encode! []'s VMesquita |
Quote:
Also, when I use the MA script, modified as above, do I need to change TMPGEnc min/max for CQMatic. I've been using KDVD's 300/5000 default so far. |
Quote:
Quote:
-kwag |
Kwag, different stripes
Quote:
I am getting smaller than wanted CQMatic output with the narrow striped film. Unchecking Detect Screen Change resulted in even a lower predicted CQ. Also, in TMPGEnc with 16:9, I am setting Video/Video stream setting/Aspect ratio to 4:3 and Advanced/Source aspect ratio to 16:9 and Advanced/Video arrange Method to Full screen (keep aspect ratio). :?: Is this correct (the output looks right)? |
Hello nicksteel:
Just to let you know my short esperience related to 16:9 and Tmpegenc. When the source was 16:9, I was setting both - video and advance-Tmpgenc video settings to 16:9, and the result was a horizontally stretched video, viewed by the dvd players. Then I changed this setting to 4:3 on both video settings - video and advcanced tabs, and the video ratio was correct, as viewed by PowerDvd and my players. I need to experiment a bit more prior to have a definitive conclusion regarding this 16:9 issue....... By the way, I also have the Advanced/Video arrange Method to Full screen (keep aspect ratio), similar to yours. I have not encoded using the Unchecking Detect Screen Change. Will do that either today or tomorrow. Regards Totonho03 |
Kwag,
Quote:
|
Re: Kwag,
Quote:
-kwag |
Confused about MA script requirements.
I want to try MA optimum scripts. Now I use non-MA for DVD and the non-MA video capture script for tv captures. I use KDVD for DVD and KVCD and SKVCD for captures.
I understand that I should uninstall avisynth 2.08 and install 2.52. :?: Do I need to reinstall or modify any other programs after installing avisynth 2.52? :?: Can I use the MA script for captures? Filters exist for both avisynth 2.08 and 2.52. :?: Should I use the 2.52 filters for MA instead of my present filters? :?: Where do I get GripFit_YV12.dll? I presently use MPEG2DEC.dll. :?: Should I use MPEG2Dec3.dll with MA? |
Re: Confused about MA script requirements.
Quote:
Quote:
The plugins are here : http://www.avisynth.org/~warpenterprises/ Quote:
|
Re: Confused about MA script requirements.
Quote:
I've downloaded the new plugins and will replace mine where necessary. :?: Should I modify the optimum script for captures to use with MA? |
Re: Confused about MA script requirements.
Quote:
|
Re: Confused about MA script requirements.
Quote:
:?: Do you know if "For VHS and captures:" script will run with avisynth 2.52? |
You have to modify it a lot :
1/ Legalclip() becomes Limiter() 2/ StMedianFilter has only 4 parameters (use STMedianFilter(8, 32, 0, 0)) 3/ DustV5 does not exist in avs2.5 so I suggest you to change FaeryDust (or PixieDust) by Deen(). |
Quote:
Also, Gripfit for 2.52 |
You will find it in... the avisynth documentation :-)
It's a new internal command of avisynth and it replace old lecalclip plugin ;-) |
Quote:
All I can find is GripCrop_Preview which TMPGEnc says not 2.5 plugin. |
|
Quote:
"deen need a YV12 input" error in TMPGEnc |
... as do MA script. So that's a problem that you have to correct quicly.
What kind of source do you use ? (avi or mpeg2 ?) |
Quote:
LoadPlugin("c:\video\dlls\MPEG2DEC3.dll") LoadPlugin("c:\video\dlls\decomb.dll") LoadPlugin("c:\video\dlls\deen.dll") LoadPlugin("c:\video\dlls\gripfit_yv12.dll") LoadPlugin("c:\video\dlls\unfilter_2.5\unfilter.dl l") #LoadPlugin("c:\video\dlls\dustv5.dll") LoadPlugin("c:\video\dlls\stmed_2.5a\STMedianFilte r.dll") AviSource("H:\love\love.avi") Limiter() Telecide() Decimate() GripCrop(480, 480, overscan=2, source_anamorphic=false, dest_anamorphic=true) GripSize(resizer="BicubicResize") STMedianFilter( 8, 32, 0, 0 ) Deen() UnFilter(25, 25) MergeChroma(blur(1.58)) MergeLuma(blur(0.2)) #GripBorders() Limiter() |
Quote:
If that is a codec abble to provides YV12 output, just configure it in this way (xvid codec for instance is configured for outputting YUY2 by default, where Divx codec is configured for YV12) If the codec can't give you YV12, add the line "ConvertToYV12()" just after the avisource. |
Thanks, Phil.
I'll try this. Also, I now get a TMPGEnc message "can not open or unsupported" for my avs file. I've checked the path and can open in notpad. ## DLL Section ## # LoadPlugin("c:\video\dlls\MPEG2DEC3.dll") LoadPlugin("c:\video\dlls\decomb.dll") LoadPlugin("c:\video\dlls\deen.dll") LoadPlugin("c:\video\dlls\gripfit_yv12.dll") LoadPlugin("c:\video\dlls\unfilter_2.5\unfilter.dl l") LoadPlugin("c:\video\dlls\stmed_2.5a\STMedianFilte r.dll") LoadPlugin("c:\video\dlls\asharp.dll") LoadPlugin("c:\video\dlls\undot.dll") LoadPlugin("c:\video\dlls\decomb.dll") # #### ## Defined Variables and Constants ## # MaxTreshold = 1.50 nf = 0 # Current frame. # #### ## Main section and static filters ### # Mpeg2Source("h:\core\core.d2v") # undot() Limiter() asharp(1, 4) GripCrop(720,480,overscan=1,Source_anamorphic=true ,dest_anamorphic=false) #GripCrop(Your_GripCrop_Parameters_Here) GripSize(resizer="BicubicResize") STMedianFilter(8, 32, 0, 0 ) MergeChroma(blur(MaxTreshold)) MergeLuma(blur(0.1)) # # ## Linear Motion Adaptive Filtering ## # # ( 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: SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2 ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf >= SwitchThreshold ? \ unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ) : \ TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1) ") # # # GripBorders() #LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker! Limiter() # # ## Functions ### function fmin( int f1, int f2) { return ( f1<f2 ) ? f1 : f2 } # #### |
Can you open the avs in WMP ?
Do you have READAvs installed correctly . Do you have such problem with other scritps or just this one ? |
Quote:
READAvs in TMPGEnc looks same as before installing 2.52. Problems only started after installing 2.52. TMPGEnc\Environmental\VFAPI plugin All checked 0 AVI2(OpenDML) File Reader 0 BMP/PPM/TGA/JPG File Reader 0 CRI Sofdec MPEG Decoder 0 Ligos MPEG-1 Decoder 0 Microsoft MPEG-1 Decoder 0 Wave File Reader 0 Avisynth/VirtualDub script reader v0.1 ReadAVSA dll 0 DVD2AVI Project File Reader 1.76 DVD2AVI.vfp 0 TMPGEnc Project File Reader 2.520 TMPGEnc.vfp -1 DirectShow Multimedia File Reader -2 AVI VFW compatibility Reader |
Quote:
You probably don't have avisynth installed correctly. Can you do a script with just "Version()" in it and try to open it under WMP ? |
Quote:
You're a prince of a fellow. Reinstalled Avisynth. Runs. I'll start playing with it now! |
Quote:
|
Kwag's Clip Method
deleted
|
Re: Kwag's Clip Method
Quote:
Your input aspect depends of what you captured. If the captured material is 16:9 (where you have top/bottom black bars), you're going to have to get the "Film pixel" area with TMPEG or with a null transform filter in Vdub, and then use the values to feed them to Moviestacker. Then you'll have the correct aspect. -kwag |
Re:
:?: Where and how is the output flagged as anamorphic?
My goal is to go in with an anamorphic, out with an anamorphic. |
I knew it, if DVDburners get that cheap the KDVD forumpart and the questions about anamorph encoding will explode :lol:
As you did all that resizing in Avisynth you can enter both values to 4:3 and 4:3 which means "let it as it is" Because by avisynth you feed TmpgEnc with a Letterboxed 16:9 format and that results in effective 4:3 proportions and no more anamorphic! Quote:
Quote:
When using the resize values mentioned by Kwag you end up in a letterboxed non-anamorph stream! If you still want encode anamorph on KDVD (needs more bitrate! cause of more active moviepixels!) you don't need to resize. Yust add a ... Crop(8,0,704,576) instead of resizing And maybe overlapping borders for better compresion Letterbox(16,16,8,8 ) I did choose just a value of 8 on the sides and 16 on top& bottom as anamorph videos will be stretched in their width on 16:9 Tvsets. This above will give you a 704x576 incl. overscan area and still in an anamorph state. Nic that avatar is really big, you know, cause poeple who don't got a big resolution on their screen will see the Replies cutted at the right side :? |
The original post from Kwag is above. I guess I misinterpheted it.
|
Quote:
Only 1.77 and 1.85 anamorphic DVD have a fullscreen image. 2.35 and others have black borders encoded into the 702*576 picture. So you must find the picture area, cut the borders, apply the filters and put back the borders back. This way you will have perfect border edges and you will gain some time to process. |
I just wanted to point out with this if the source is 1.85: or 1.77:1 and NOT 2.35:1.
Just to explain also that 704 width in our encoding case are just 720 cropped on each side by 8 where the AR will be keeped right. So there's no need to still encode at 720 width. But you're right that was just a bit confusing to others as they also deal with 2.35:1 sources. |
Site design, images and content © 2002-2026 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2026 Jelsoft Enterprises Ltd.