Quantcast Avisynth Script Order? - digitalFAQ.com Forums [Archives]
  #1  
03-08-2003, 02:36 PM
hudsonhawk hudsonhawk is offline
Free Member
 
Join Date: Feb 2003
Location: New England
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,

Given the following script:

AVISource("d:\Video\Capture\Clip0001.avi")

Trim(1192,159154)
FadeIn2(30)
FadeOut2(30)
Crop(20,2,-4,-2)
Telecide()
Decimate(cycle=5)
AddBorders(0,2,0,2)
BilinearResize(352,480)
LegalClip()
Levels(14,.94,243,0,250)
Cnr2()
PixieDust()
Blockbuster(method="noise", variance=.4, seed=1)
LegalClip()

How is the order of this script? Is there anything that should be changed? The source AVI file is from a VHS cap via a DV camcorder.

Thanks in advance!
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-10-2003, 09:04 AM
digitalize digitalize is offline
Free Member
 
Join Date: Dec 2002
Posts: 99
Thanks: 0
Thanked 0 Times in 0 Posts
You could move AddBorders as the last line. This way you are not slowing the conversion down by encoding black empty space.
Reply With Quote
  #3  
03-19-2003, 11:40 AM
sh0dan sh0dan is offline
Free Member
 
Join Date: Mar 2003
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
Do you gain anything visually from the first LegalClip? Otherwise you might as well take it out.
__________________
Regards, sh0dan // VoxPod
Reply With Quote
  #4  
03-19-2003, 02:31 PM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
Also, definitely no cropping before Telecide and Decimate! They should be the very first lines after loading the clip.
Reply With Quote
  #5  
03-19-2003, 05:09 PM
muaddib muaddib is offline
Free Member
 
Join Date: Jun 2002
Location: São Paulo - Brasil
Posts: 879
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Boulder,

MovieStacker puts just LegalClip before Telecide/Decimate, do you think it could be a problem?
Reply With Quote
  #6  
03-19-2003, 07:39 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 muaddib
Hi Boulder,

MovieStacker puts just LegalClip before Telecide/Decimate, do you think it could be a problem?
I'm not Boulder, but I can answer that
That shouldn't make a difference. I recall SansGrip suggesting the use of LegalClip() right after the source line and at the end of the script.
It there's nothing to clip, it just won't clip anything

-kwag
Reply With Quote
  #7  
03-20-2003, 03:55 AM
sh0dan sh0dan is offline
Free Member
 
Join Date: Mar 2003
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
Yes - but I see no point in capping values before processing. If anything it could add detail to the rest of the processing, for instance to be used if the brightness is tweaked in the script.

I don't know any filters that has problems with these values.
__________________
Regards, sh0dan // VoxPod
Reply With Quote
  #8  
03-20-2003, 09:10 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
Quote:
Originally Posted by sh0dan
Yes - but I see no point in capping values before processing. If anything it could add detail to the rest of the processing, for instance to be used if the brightness is tweaked in the script.
In that case, it would then be an advantage , but if no luminance/brightness, etc., filtering was to be used, not using LegalClip() at the beginning would add some extra processing to the filters under it At least that's the way I see it, but correct me if I'm wrong

-kwag
Reply With Quote
  #9  
03-20-2003, 05:28 PM
sh0dan sh0dan is offline
Free Member
 
Join Date: Mar 2003
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
In 99% - No. Processing time will be the same - for most filters don't use conditional jumps based on image information. Some filters way have slightly different algorithms based on pixeldata (C3D for instance), but adding legalclip/limiter will only change perhaps 0.05% in processing time - not much compared to the cost of using the filter. So from the speed point of view, just adding legalclip/limiter at the end of the script is the best solution.
__________________
Regards, sh0dan // VoxPod
Reply With Quote
  #10  
03-20-2003, 05:42 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
Thanks for clearing that up sh0dan

-kwag
Reply With Quote
  #11  
03-20-2003, 08:23 PM
muaddib muaddib is offline
Free Member
 
Join Date: Jun 2002
Location: São Paulo - Brasil
Posts: 879
Thanks: 0
Thanked 0 Times in 0 Posts
Just to think about it a little more...
Here is what SansGrip said about why using two legal clips:

Quote:
Originally Posted by SansGrip
When encoding from an MPEG-2 source I put one instance of LegalClip directly after Mpeg2Source so that the out-of-range artifacts don't interfer with the results of other filters in the script, and then one at the very end to remove any that might have been generated during processing.
Reply With Quote
  #12  
03-20-2003, 09: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
That's exactly what I recall, but I wasn't sure about any filter actually creating "out-of-band" levels if the filters are only processing what they are fed. So just for "protection" or "insurance" I would still use the filter on input and on output. This would ensure then the input is clipped (clamped) and also the output, just in case Just my thought

-kwag
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth filters order important? Dialhot Avisynth Scripting 6 07-06-2004 06:17 PM
Avisynth: Field Order? nicksteel Avisynth Scripting 6 10-28-2003 09:35 AM
kvcd: the optimal order of the filters in the script? NismoSX Video Encoding and Conversion 2 09-07-2003 03:23 PM
Avisynth Filter order? Reno Avisynth Scripting 11 01-16-2003 04:31 PM
Avisynth: Order of Filters? LadyMiles Avisynth Scripting 4 11-09-2002 07:52 PM

Thread Tools



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