Quantcast How to use Sampler? - digitalFAQ.com Forums [Archives]
  #1  
12-26-2002, 07:17 PM
m0rdant m0rdant is offline
Free Member
 
Join Date: May 2002
Posts: 137
Thanks: 0
Thanked 0 Times in 0 Posts
Kwag, can you give me a hand here and walk me through setting up how to use the sampler function for size prediction?

...with a sample avs as well...

Please? =)

Taking it from the point where I've done my rip and used DVD2AVI...

Can the result still be used with the KVCD_Predictor?

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  
12-26-2002, 08:54 PM
LadyMiles LadyMiles is offline
Free Member
 
Join Date: Sep 2002
Posts: 124
Thanks: 0
Thanked 0 Times in 0 Posts
Yes I could use a hand also

black prince gave me this
#
Minutes = round((Framecount/Framerate)/60 )
SL = 24
Sampler(Minutes, SL)
#
as the script to input
and the formula is this

#((total frames / total minutes) / 24 ) * (test file size * .98 ) = est mpeg file

is total minutes in seconds ?
Reply With Quote
  #3  
12-26-2002, 08:57 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
I'll write a manual step-by-step "sticky" in the head section of this forum in a while

-kwag
Reply With Quote
  #4  
12-26-2002, 09:38 PM
m0rdant m0rdant is offline
Free Member
 
Join Date: May 2002
Posts: 137
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks, that would help out a bunch...

Are all the templates, including the originals using the same matrix? I thought they had all been updated to the same matrix, but looking at them right now they seem to be different.
Reply With Quote
  #5  
12-26-2002, 10:56 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
Done

-kwag
Reply With Quote
  #6  
12-26-2002, 10:58 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 m0rdant

Are all the templates, including the originals using the same matrix? I thought they had all been updated to the same matrix, but looking at them right now they seem to be different.
All the PLUS templates have the new GOP and KVCDs Q Matrix. They are still set to CQ_VBR encoding, so just change the encoding to CQ, and save your template.

-kwag
Reply With Quote
  #7  
12-26-2002, 11:33 PM
m0rdant m0rdant is offline
Free Member
 
Join Date: May 2002
Posts: 137
Thanks: 0
Thanked 0 Times in 0 Posts
Last question on prediction (I hope) is the formula in your new mini guide the same when doing 29.97 NTSC interlaced material (something that can't use ForceFilm)?
Reply With Quote
  #8  
12-27-2002, 12:33 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 m0rdant
Last question on prediction (I hope) is the formula in your new mini guide the same when doing 29.97 NTSC interlaced material (something that can't use ForceFilm)?
The formula will be the same, as long as you don't change the GOP. However, if the source is 29.97fps interlaced, then I believe you must tell that to "Sampler". I think the correct sampler line should read: "Sampler(30)". I know the answer is buried somewhere here: http://www.kvcd.net/forum/viewtopic....er=asc&start=0 but that's a Loooooong thread

-kwag
Reply With Quote
  #9  
12-27-2002, 12:54 AM
m0rdant m0rdant is offline
Free Member
 
Join Date: May 2002
Posts: 137
Thanks: 0
Thanked 0 Times in 0 Posts
I found this in that link

http://www.kvcd.net/forum/viewtopic....=asc&start=360

It seems you were suggesting that frame rate didn't matter, that the setting for sampler was based on the gop we are using?

I'm confused again
Reply With Quote
  #10  
12-27-2002, 01:14 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 m0rdant
I found this in that link

http://www.kvcd.net/forum/viewtopic....=asc&start=360

It seems you were suggesting that frame rate didn't matter, that the setting for sampler was based on the gop we are using?

I'm confused again
The default for "Sampler()" is 24. So I believe you have to change that to read "Sampler(30)" if your source is 29.976 interlaced. The formula remains the same, because we're still encoding a MAX number of frames per GOP of 24.

Edit: And I am wrong Quoting SansGrip's reply and answer on another post:

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.


-kwag
Reply With Quote
  #11  
12-27-2002, 01:20 AM
m0rdant m0rdant is offline
Free Member
 
Join Date: May 2002
Posts: 137
Thanks: 0
Thanked 0 Times in 0 Posts
Okay, I tried the sampler(30) setting but that seemed to make the file way too small...

I'm going to stick with the result I got with the default as a trial (I had encoded this movie once with a CQof 65 and it came out too big. With the default setting I get a CQ of 60. With the sampler (30) my CQ would end up higher than 65 and I know 65 was too big.

I'll let you know the results in the morning.

Thanks for the help with this.

Goodnight for now =)
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Erro com Sampler julianogarcia Conversão e Codificação de Vídeo (Português) 5 06-29-2004 12:24 PM
Sampler.dll AcidburN192 Video Konvertierung und Encodieren (Deutsch) 2 01-26-2004 08:02 AM
Sampler dll ratuna Conversão e Codificação de Vídeo (Português) 2 11-02-2003 03:38 PM
Avisynth: sampler.dll tigger Avisynth Scripting 3 07-24-2003 03:42 AM
Sampler.dll Tutankhamun Avisynth Scripting 3 01-05-2003 10:03 PM

Thread Tools



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