Quantcast KDVD: MA Script Questions - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Video Encoding and Conversion

Reply
 
LinkBack Thread Tools
  #1  
08-13-2003, 09:55 AM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
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
}

#
####
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
08-13-2003, 10:11 AM
vmesquita vmesquita is offline
Invalid Email / Banned / Spammer
 
Join Date: May 2003
Posts: 3,726
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #3  
08-13-2003, 10:38 AM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by vmesquita
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
Can you give me a sample line for GRIPCROP() for 16:9 NTSC FILM?

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.
Reply With Quote
  #4  
08-13-2003, 10:47 AM
vmesquita vmesquita is offline
Invalid Email / Banned / Spammer
 
Join Date: May 2003
Posts: 3,726
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #5  
08-13-2003, 11:42 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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")
BicubicResize(688, 352, 0, 0.6, 6, 59, 708, 362)
AddBorders(16, 64, 16, 64)
This was using 2 blocks overscan(resize).

Just add your MA script or favorite filters

-kwag
Reply With Quote
  #6  
08-13-2003, 12:02 PM
vmesquita vmesquita is offline
Invalid Email / Banned / Spammer
 
Join Date: May 2003
Posts: 3,726
Thanks: 0
Thanked 0 Times in 0 Posts
Kwag,

This looks interesting, I'll try in my next KDVD Encode!

[]'s
VMesquita
Reply With Quote
  #7  
08-13-2003, 12:15 PM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
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")
BicubicResize(688, 352, 0, 0.6, 6, 59, 708, 362)
AddBorders(16, 64, 16, 64)
This was using 2 blocks overscan(resize).

Just add your MA script or favorite filters

-kwag
Thanks! Those are the clearest directions I've ever received. I am assuming that I don't need LETTERBOX() with the above

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.
Reply With Quote
  #8  
08-13-2003, 12:30 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by nicksteel

Thanks! Those are the clearest directions I've ever received. I am assuming that I don't need LETTERBOX() with the above
In my case, I didn't because I selected "resize" in Moviestacker. If I had selected "Overlap" ( if it was a full screen movie ), then letterbox would have been added to the script by MS
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.
No. Your values are fine, because your average bitrate is probably way above 1,000Kbps for KDVDs, and that works great

-kwag
Reply With Quote
  #9  
08-14-2003, 07:22 AM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
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")
BicubicResize(688, 352, 0, 0.6, 6, 59, 708, 362)
AddBorders(16, 64, 16, 64)
This was using 2 blocks overscan(resize).

Just add your MA script or favorite filters

-kwag
Some films identified by DVD2AVI as 16:9 have wide black areas on the top and bottom of the screen, some have narrower areas. When I open one in TMPGEnc clip with wide areas, the black areas are present and I can determine the trimmed size. The ones with smaller black areas appear without black stripes in in TMPGEnc clip. How do I determine the size with these?

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)?
Reply With Quote
  #10  
08-14-2003, 09:11 AM
totonho03 totonho03 is offline
Free Member
 
Join Date: Apr 2003
Location: Fallston, MD. USA
Posts: 419
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #11  
09-03-2003, 03:19 PM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
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")
BicubicResize(688, 352, 0, 0.6, 6, 59, 708, 362)
AddBorders(16, 64, 16, 64)
This was using 2 blocks overscan(resize).

Just add your MA script or favorite filters

-kwag
I don't have to add anything to the script to end up with source and output as anamorphic using this method, do I?
Reply With Quote
  #12  
09-03-2003, 05:00 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by nicksteel
I don't have to add anything to the script to end up with source and output as anamorphic using this method, do I?
No. The script above was for anamorphic output.

-kwag
Reply With Quote
  #13  
09-12-2003, 05:23 AM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote
  #14  
09-12-2003, 05:34 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by nicksteel
Do I need to reinstall or modify any other programs after installing avisynth 2.52?
Nothing except to DL the 2.5 version of all the plugins you used to use.

Quote:
Should I use the 2.52 filters for MA instead of my present filters?
Once you have avs2.52 installed, it will reject all 2.08 filters with a "not the good version" error message. It exist a trick to load old plugins in new avs but I do not recommand it.

The plugins are here :

http://www.avisynth.org/~warpenterprises/

Quote:
Should I use MPEG2Dec3.dll with MA?
Yes. It's the only plugin (not sure) that provides picture in YV12 (necessary for MA script).
Reply With Quote
  #15  
09-12-2003, 05:46 AM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Dialhot
Quote:
Originally Posted by nicksteel
Do I need to reinstall or modify any other programs after installing avisynth 2.52?
Nothing except to DL the 2.5 version of all the plugins you used to use.

Quote:
Should I use the 2.52 filters for MA instead of my present filters?
Once you have avs2.52 installed, it will reject all 2.08 filters with a "not the good version" error message. It exist a trick to load old plugins in new avs but I do not recommand it.

The plugins are here :

http://www.avisynth.org/~warpenterprises/

Quote:
Should I use MPEG2Dec3.dll with MA?
Yes. It's the only plugin (not sure) that provides picture in YV12 (necessary for MA script).
Thanks, Phil.

I've downloaded the new plugins and will replace mine where necessary.

Should I modify the optimum script for captures to use with MA?
Reply With Quote
  #16  
09-12-2003, 05:49 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by nicksteel
Should I modify the optimum script for captures to use with MA?
I didn't answer to that on purpose because I do not do capture. But I should say no (captures are not enought "clean sources", no ?)
Reply With Quote
  #17  
09-12-2003, 06:00 AM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Dialhot
Quote:
Originally Posted by nicksteel
Should I modify the optimum script for captures to use with MA?
I didn't answer to that on purpose because I do not do capture. But I should say no (captures are not enought "clean sources", no ?)
Thanks, again.

Do you know if "For VHS and captures:" script will run with avisynth 2.52?
Reply With Quote
  #18  
09-12-2003, 06:36 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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().
Reply With Quote
  #19  
09-12-2003, 07:11 AM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Dialhot
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().
How do I get Limiter(), can't find.

Also, Gripfit for 2.52
Reply With Quote
  #20  
09-12-2003, 07:22 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
You will find it in... the avisynth documentation
It's a new internal command of avisynth and it replace old lecalclip plugin
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Some questions about the optimal VHS script magwell Avisynth Scripting 5 10-27-2005 05:05 AM
VBV buffer, KDVD Matrix, padding script questions Jollito Video Encoding and Conversion 11 12-22-2004 06:07 PM
Some Questions about KDVD and jerkiness... davidmtml Video Encoding and Conversion 3 06-12-2004 12:42 AM
KDVD ... Quelques questions tyff Conversion et d'Encodage de Vidéo (Français) 4 12-05-2003 11:36 AM
Qu'est-ce qu'un script ?... et d'autres questions chandler86 Conversion et d'Encodage de Vidéo (Français) 10 11-28-2003 05:39 PM




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