Quantcast Avisynth: Script Slow? - digitalFAQ.com Forums [Archives]
  #1  
03-30-2004, 11:18 AM
Jimblob Jimblob is offline
Free Member
 
Join Date: Mar 2004
Location: Canada
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
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
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  
03-30-2004, 11:24 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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 )
Reply With Quote
  #3  
03-30-2004, 11:30 AM
Jimblob Jimblob is offline
Free Member
 
Join Date: Mar 2004
Location: Canada
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
The trials of a newbie. Part of the initiation process is to endure the embarassment of a useless script.

Thanks for the info.
Reply With Quote
  #4  
03-30-2004, 11:52 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #5  
03-30-2004, 01:08 PM
Prodater64 Prodater64 is offline
Free Member
 
Join Date: Mar 2003
Location: Palma de Mallorca - España
Posts: 2,925
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote
  #6  
03-30-2004, 01:55 PM
Jimblob Jimblob is offline
Free Member
 
Join Date: Mar 2004
Location: Canada
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #7  
03-30-2004, 06:29 PM
Prodater64 Prodater64 is offline
Free Member
 
Join Date: Mar 2003
Location: Palma de Mallorca - España
Posts: 2,925
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #8  
03-30-2004, 06:46 PM
Jimblob Jimblob is offline
Free Member
 
Join Date: Mar 2004
Location: Canada
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
It may seem dumb, but I didn't know that the width and height must match the target output.

Thanks
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
SLow speed in cce? zagor Video Encoding and Conversion 14 08-10-2004 12:23 PM
Avisynth: Is it me or is the latest MA script slow? audi2honda Avisynth Scripting 1 12-08-2003 04:27 AM
Avisynth: Difference between MA script and optimal script? mistermickster Avisynth Scripting 2 08-01-2003 09:36 AM
Avisynth slow after TMPG encoding? MrTibs Avisynth Scripting 9 06-18-2003 07:16 PM
Avisynth: New Script seems to be slow Jellygoose Avisynth Scripting 8 06-03-2003 05:58 AM

Thread Tools



 
All times are GMT -5. The time now is 07:37 AM  —  vBulletin © Jelsoft Enterprises Ltd