digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Script slow? (http://www.digitalfaq.com/archives/avisynth/8872-avisynth-script-slow.html)

Jimblob 03-30-2004 11:18 AM

Avisynth: Script slow?
 
Hi

I'm trying my first AVS script with TMPGEnc doing the encode of an AVI to KVCD.

AviSource("PATH\NAME.avi",false)
BlindPP(cpu=4)
Blockbuster(method="noise",detail_min=1,detail_max =3,variance=0.1,seed=1)
Convolution3D(1, 6, 12, 6, 8, 2.8, 0)
#GripCrop(WIDTH, HEIGHT, overscan=1, source_anamorphic=false)
#GripSize(resizer="LanczosResize")
Undot()
TemporalSoften(2,7,7,3,2)
DCTFilter(1,1,1,1,1,1,0.5,0)
#Blockbuster(method="noise",detail_min=1,detail_ma x=10,variance=0.3,seed=5623)
GripBorders()

I'm noticing that with the avs, tmpgenc runs approx 50% slower. Is this normal? Should I be changing anything in the script?

Thanks

Dialhot 03-30-2004 11:24 AM

1/ sure it's normal. Do you expect filtering all the noise in the source is done in no time ? Let avisynth working ;-)

2/ you completly screwed up the script by commenting some important lines ! Gripcop and Gripsize aren't optionnal !

(btw I wonder how gripborder can work without gripcrop :?:)

Jimblob 03-30-2004 11:30 AM

The trials of a newbie. Part of the initiation process is to endure the embarassment of a useless script.

Thanks for the info.

Dialhot 03-30-2004 11:52 AM

If you want to see something "quickly" even if it is not beautiful, you can remove the filters like Convolution3D and Undot.
But Crop/resize/border musn't be removed else you will obtain a non standard resolution for you VCD and no standalone will play that.

Prodater64 03-30-2004 01:08 PM

Quote:

Originally Posted by Dialhot
... 2/ you completly screwed up the script by commenting some important lines ! Gripcop and Gripsize aren't optionnal !

Like gripborders give me a access violation error, I uses in your V4 script BicubicResize:

1 - What do you think about this?
2 - Do you know how can I deal with this error?

Jimblob 03-30-2004 01:55 PM

My source is a 720x368 avi which I want to turn into an skvcd. Can you suggest settings for the following and a link for me to get an understanding of gripfit?

GripCrop(WIDTH, HEIGHT, overscan=1, source_anamorphic=false)
GripSize(resizer="LanczosResize")

Thanks

Prodater64 03-30-2004 06:29 PM

Quote:

Originally Posted by Jimblob
My source is a 720x368 avi which I want to turn into an skvcd. Can you suggest settings for the following and a link for me to get an understanding of gripfit?

GripCrop(WIDTH, HEIGHT, overscan=1, source_anamorphic=false)
GripSize(resizer="LanczosResize")

Thanks

I you found your script in Latest optimal script for AVI to KVCD thread (http://www.kvcd.net/forum/viewtopic....asc&highlight=), you can read there as following:

Quote:

Originally Posted by Dialhot
Don't forget to change WIDTH and HEIGHT according to your wishes.

Version 4

Code:
AviSource("PATH\NAME.avi",false)
BlindPP(cpu=4)
Blockbuster(method="noise",detail_min=1,detail_max =3,variance=0.1,seed=1)
Convolution3D(1, 6, 12, 6, 8, 2.8, 0)
GripCrop(WIDTH, HEIGHT, overscan=1, source_anamorphic=false)
GripSize(resizer="LanczosResize")
Undot()
TemporalSoften(2,7,7,3,2)
DCTFilter(1,1,1,1,1,1,0.5,0)
#Blockbuster(method="noise",detail_min=1,detail_ma x=10,variance=0.3,seed=5623)
GripBorders()

(second Blockbuster line optional - use it in worst cases)

Your question then, is about your target WIDTH and HEIGHT.
You can select between:

352 288/240 if NTSC.
352 576/480 if NTSC.
528 576/480 if NTSC.
544 576/480 if NTSC.
480 576/480 if NTSC.
704 576/480 if NTSC.
720 576/480 if NTSC.

Your choice should be agree with your encoding type (mpg1, mpg2, KVCD, KSVCD or KDVD)

Take a look a this webpage where are the KVCD/KDVD templates:
http://www.kvcd.net/dvd-models.html

Jimblob 03-30-2004 06:46 PM

It may seem dumb, but I didn't know that the width and height must match the target output.

Thanks


All times are GMT -5. The time now is 05:54 AM  —  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.