digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   KDVD: MA Script Questions (http://www.digitalfaq.com/archives/encode/4995-kdvd-ma-script.html)

nicksteel 08-13-2003 09:55 AM

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
}

#
####

vmesquita 08-13-2003 10:11 AM

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

nicksteel 08-13-2003 10:38 AM

Need some specifics.
 
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.

vmesquita 08-13-2003 10:47 AM

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

kwag 08-13-2003 11:42 AM

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

vmesquita 08-13-2003 12:02 PM

Kwag,

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

[]'s
VMesquita

nicksteel 08-13-2003 12:15 PM

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.

kwag 08-13-2003 12:30 PM

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 :D

-kwag

nicksteel 08-14-2003 07:22 AM

Kwag, different stripes
 
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)?

totonho03 08-14-2003 09:11 AM

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

nicksteel 09-03-2003 03:19 PM

Kwag,
 
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?

kwag 09-03-2003 05:00 PM

Re: Kwag,
 
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

nicksteel 09-12-2003 05:23 AM

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?

Dialhot 09-12-2003 05:34 AM

Re: Confused about MA script requirements.
 
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).

nicksteel 09-12-2003 05:46 AM

Re: Confused about MA script requirements.
 
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?

Dialhot 09-12-2003 05:49 AM

Re: Confused about MA script requirements.
 
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 ?)

nicksteel 09-12-2003 06:00 AM

Re: Confused about MA script requirements.
 
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?

Dialhot 09-12-2003 06:36 AM

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().

nicksteel 09-12-2003 07:11 AM

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

Dialhot 09-12-2003 07:22 AM

You will find it in... the avisynth documentation :-)
It's a new internal command of avisynth and it replace old lecalclip plugin ;-)


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

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