Quantcast Sansgrip Filters: Sampler - Page 2 - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Avisynth Scripting

Reply
 
LinkBack Thread Tools
  #21  
12-22-2002, 10:25 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
Quote:
Originally Posted by SansGrip
With the current formula all you need is Sampler(). By length=1sec what I mean is length=frame_rate, which is the same thing.
Yes, I know that... but what about that discussion of the length been related to the GOP or the Framerate?
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
  #22  
12-22-2002, 10:45 PM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by muaddib
Yes, I know that... but what about that discussion of the length been related to the GOP or the Framerate?
Right now the sample length is the same as the GOP length, and I think it'll probably stay that way. But since Sampler has no way of knowing what the GOP length is, I decided to make the default sample length be equal to the frame rate, which right now is the same as the GOP length.

If we ever change the GOP length and decide to change the sample length along with it, then we'll have to start specifying the sample length explicitly to Sampler.

Hope that made sense .
Reply With Quote
  #23  
12-22-2002, 10:59 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
Quote:
Originally Posted by SansGrip
I decided to make the default sample length be equal to the frame rate, which right now is the same as the GOP length.
It's not true if your source is interlaced. I'm doing an NTSC Interlaced @ 29.970fps right now. Should I leave sampler's default, or should I set the length to 30? What will be better for the prediction? Or will it make any accuracy difference?

Quote:
Originally Posted by SansGrip
If we ever change the GOP length and decide to change the sample length along with it, then we'll have to start specifying the sample length explicitly to Sampler.

Hope that made sense .
It sure did.
Reply With Quote
  #24  
12-22-2002, 11:05 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
It's not true if your source is interlaced. I'm doing an NTSC Interlaced @ 29.970fps right now. Should I leave sampler's default, or should I set the length to 30? What will be better for the prediction? Or will it make any accuracy difference?
It shouldn't make a difference because the formula is based on the size of the GOP, which is 24 frames, no matter what frame rate you encode.

Edit: Man!, KVCD.Net is beginning to drive me nuts . I can't even go get a beer, and when I come back, I find 2 or 3 new posts . I haven't even been able to visit the spanish forum today . Switching over there now, brb

-kwag
Reply With Quote
  #25  
12-22-2002, 11:06 PM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by muaddib
It's not true if your source is interlaced. I'm doing an NTSC Interlaced @ 29.970fps right now. Should I leave sampler's default, or should I set the length to 30? What will be better for the prediction?
If the source is interlaced Sampler will use a sample length of 30, so you'll need to manually set it to 24. Right now the theory is that the sample length should always match the GOP length.

Edit: What I should have said is that Sampler will always use a sample length of 1 second by default unless you override it by specifying a length. If you know that your frame rate is not 24 (which is the value we're using right now for the formula) then you'll need to specify length=24 when you run Sampler.
Reply With Quote
  #26  
12-22-2002, 11:15 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
Quote:
Originally Posted by SansGrip
If the source is interlaced Sampler will use a sample length of 30, so you'll need to manually set it to 24. Right now the theory is that the sample length should always match the GOP length.
oops!
That's what I mean... "Should I leave sampler's default, or should I set the length to 24?"
I just have to stop drinking...
Reply With Quote
  #27  
12-22-2002, 11:24 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
Quote:
Originally Posted by kwag
It shouldn't make a difference because the formula is based on the size of the GOP, which is 24 frames, no matter what frame rate you encode.
I got it...
So, if my source is 30fps, I have to set Sampler to 24 manually. Right?

note: wouldn't be better if the default was fixed to 24?
Reply With Quote
  #28  
12-23-2002, 01:44 AM
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
Quote:
Originally Posted by jorel
@muaddib,vou contar contigo meu amigo,help me!
Hi jorel,
Do you still need some help, or did you find your way...
Reply With Quote
  #29  
12-23-2002, 01:58 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by muaddib
Quote:
Originally Posted by jorel
@muaddib,vou contar contigo meu amigo,help me!
Hi jorel,
Do you still need some help, or did you find your way...
yes, need tons of help my friend, i'm really flying,
but reading (cross-eyed) and try to understand!
Reply With Quote
  #30  
12-23-2002, 02:00 AM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by muaddib
So, if my source is 30fps, I have to set Sampler to 24 manually. Right?
Yep. Sampler(length=24)

Quote:
note: wouldn't be better if the default was fixed to 24?
I was going to do that, but I really don't want to have to do a new release every time the GOP size changes. Setting a default of 24 seems rather arbitrary since perhaps others will use it apart from the KVCD crowd, so I decided that the best defaults would be samples=minutes and length=1sec. I'd rather have two defaults that are computed and useful than one default computed and the other fixed at a certain value that's useful only to us.

That was my reasoning at the time, anyway .
Reply With Quote
  #31  
12-23-2002, 09:43 AM
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
Quote:
Originally Posted by SansGrip
Setting a default of 24 seems rather arbitrary since perhaps others will use it apart from the KVCD crowd, so I decided that the best defaults would be samples=minutes and length=1sec.
It's great!
Anyway it's a lot simpler than the old way.
But you know... how about just type "S" do to the job?
Reply With Quote
  #32  
12-23-2002, 10:53 AM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by muaddib
But you know... how about just type "S" do to the job?
heheh yes, in theory you could: just a line with an S on it. Wouldn't be too readable though .
Reply With Quote
  #33  
12-24-2002, 08:41 AM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
Ok I think I got it. With the new GOP I just use "Sampler ()" ... right?
Well what's the formula then we're talking about?
__________________
j3llyG0053
Reply With Quote
  #34  
12-24-2002, 11:40 AM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Jellygoose
Ok I think I got it. With the new GOP I just use "Sampler ()" ... right?
Yep, if your source frame rate is 23.976.

Quote:
Well what's the formula then we're talking about?
I use one that's different from the canonical version, so I'd better let kwag answer this .
Reply With Quote
  #35  
12-27-2002, 10:23 AM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
No, my Framerate is 25 fps... what's the script then?
__________________
j3llyG0053
Reply With Quote
  #36  
12-27-2002, 04:10 PM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Jellygoose
No, my Framerate is 25 fps... what's the script then?
As the "length of sample" parameter, if none is provided, Sampler will use the movie's frame rate rounded to the nearest integer. This means that when run with no arguments on a 23.976fps 92-minute movie, Sampler will produce 92 samples each 24 frames long. On a 25fps 105-minute movie, Sampler will produce 105 samples each 25 frames long.

With the current prediction method, however, our sample length should match the GOP length we're using. At the moment our GOP length is 24 for all templates, so we want to tell Sampler to make samples with a length of 24 frames, regardless of the frame rate we're using.

To accomplish this, simply supply the "length" parameter to Sampler in this way:

Sampler(length=24)

This is of course only necessary when your frame rate is not the same as the GOP length being used.
Reply With Quote
  #37  
12-29-2002, 10:46 PM
deltaboy deltaboy is offline
Free Member
 
Join Date: Apr 2002
Location: BC, Canada
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
and what scale factor are we using now in the Predictor?

0.85 is my cup o tea...
Reply With Quote
  #38  
12-29-2002, 10:50 PM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by deltaboy
and what scale factor are we using now in the Predictor?

0.85 is my cup o tea...
We're currently using 1.0 in the manual formula, so that should equate to 0% in KVCDP. Let us know if you get bad results with that...
Reply With Quote
  #39  
12-29-2002, 10:50 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 deltaboy
and what scale factor are we using now in the Predictor?

0.85 is my cup o tea...
With the new GOP 1-12-2-1-24, use a factor of 1.0.

-kwag
Reply With Quote
  #40  
12-29-2002, 10:51 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
Cross post
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Need a working link to sampler, SansGrip's filters Encoder Master Avisynth Scripting 4 12-06-2003 02:12 PM
SansGrip Filters: SansGrip Is Back Thread! Jellygoose Avisynth Scripting 8 02-28-2003 04:57 AM
SansGrip Filters: Sampler with bob issue Fiz Avisynth Scripting 10 02-17-2003 06:13 AM
SansGrip Filters: Trying to find the GripFIt, GripCrop and GripSize filters Bud Avisynth Scripting 4 01-19-2003 06:40 PM
SansGrip Filters: Filters/settings for animation/anime akrein62 Avisynth Scripting 2 11-24-2002 01:39 AM




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