digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Latest script using Avisynth 2.51 (http://www.digitalfaq.com/archives/avisynth/3201-avisynth-latest-script.html)

J-Wo 04-07-2003 02:07 AM

Latest script using Avisynth 2.51
 
Hey guys, I wanted to give Avisynth 2.51 a try so here's my attempt at Kwag's latest script (for VHS and TV captures). I'm a real novice when it comes to 2.5 so I'm really not certain if I'm using all the right syntax. For example, I'm really not certain if I'm using the commands ConvertToYUY2() and ConvertToYV12() correctly. The way I have it, the encode could be possibly slower than with 2.08. But who knows.
Code:

#==============================================#
# -= AviSynth script by MovieStacker v1.1.1 =- #
#==============================================#

LoadPlugin("D:\Program Files\AviSynth 2.5\plugins\MPEG2Dec3.dll")
LoadPlugin("D:\Program Files\AviSynth 2.5\plugins\GripFit_preview.dll")
LoadPlugin("D:\Program Files\AviSynth 2.5\plugins\DustV5.dll")
LoadPlugin("D:\Program Files\AviSynth 2.5\plugins\LoadPluginEx.dll")
LoadPlugin("D:\Program Files\AviSynth 2.5\plugins\UnFilter.dll")

AviSource("E:\Movies\Farscape\Farscape - 3x06 - Eat Me.avi")
Limiter()

ConvertToYUY2()
GripCrop(352, 480, source_anamorphic=false)
GripSize(resizer="BicubicResize")
FaeryDust()

ConvertToYV12()
unfilter(50,50)
mergechroma(blur(1.58))
mergeluma(blur(0.2))

ConvertToYUY2()
GripBorders()
LetterBox(16, 16, 16, 16)
Limiter()

ConvertToRGB24()

Does anyone know if the GripCrop lines could be replaced by just Crop(), which is an internal 2.51 command? I also tried to use ConvertBackToYUY2() before the last GripBorders() line but that didn't seem to work.

Let me know what you guys think!

Boulder 04-07-2003 05:32 AM

Several colorspace conversion will give you a quality hit, that's for sure. Speed will also suffer.

I'm not sure if there's any need to do the colorspace conversions, I use AVS2.51 and don't have to convert my YUY2 captures in the script. Try to remove them and see if it works.

I'm also wondering, why are you using Letterbox?

J-Wo 04-07-2003 09:43 AM

Quote:

Originally Posted by Boulder
I'm not sure if there's any need to do the colorspace conversions, I use AVS2.51 and don't have to convert my YUY2 captures in the script. Try to remove them and see if it works.

Well I tried commenting them out and it doesn't seem to work. I check this by doing Preview in Tmpgenc. The annoying thing with 2.51 is that it doesn't display any error messages when you've done something wrong, all it does is doesn't preview your movie correctly. It seems the only line I need is ConvertToYUY2() before GripCrop. I was also told I need the ConvertToRGB24() at the end of my script. The reason I put in ConvertToYV12() in the middle is because Unfilter and Mergeluma/chroma are 2.51 plugins
Quote:

I'm also wondering, why are you using Letterbox?
Only because Kwag mentioned he's using Overlap in his GripCrop command and not Overscan=2. When I make my scripts in MovieStacker and click Overlap, it automatically adds the Letterbox lines. I really don't know if there's a big difference, I just do what others say to! :)

J-Wo 04-07-2003 10:19 AM

Okay so I just burned the resulting mpg I made and realized that the colours were all messed up! Reds become blues and blues become red... What am I doing wrong? If I comment out all convert lines except for the first ConvertToYUY2(), that seems to be where the problem originates.

Boulder 04-07-2003 11:21 AM

Swapped UV channels? Put SwapUV() in your script and it should be OK.

AVS2.5 does work in YUY2 too, it just added the support for YV12 :wink:

KingTuk 04-08-2003 08:56 AM

avisynth 2.5
 
I've been waiting for some people to post results about Avisynth 2.5 and how stable it is...

Last time I used it (quite some time ago) I had all kinds of problems since I don't even think it was at an Alpha stage in development yet...

I am curious about these settings with one of the optimal scripts...

Soft filtering:
Temporalsoften(2,3,3,mode=2,scenechange=6)

Medium filtering:
Temporalsoften(3,5,5,mode=2,scenechange=10)

Heavy filtering:
Temporalsoften(4,8,8,mode=2,scenechange=10)

Boulder 04-08-2003 11:46 AM

IMO version 2.5 is at least as stable as 2.0x. Besides, I think that 2.0x will only have bugfixes (if needed) from now on and 2.5x will be the main project.


All times are GMT -5. The time now is 09:20 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.