digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   How to use sampler? (http://www.digitalfaq.com/archives/avisynth/1937-how-sampler.html)

m0rdant 12-26-2002 07:17 PM

How to use sampler?
 
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

LadyMiles 12-26-2002 08:54 PM

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 ?

kwag 12-26-2002 08:57 PM

I'll write a manual step-by-step "sticky" in the head section of this forum in a while :wink:

-kwag

m0rdant 12-26-2002 09:38 PM

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.

kwag 12-26-2002 10:56 PM

Done :wink:

-kwag

kwag 12-26-2002 10:58 PM

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

m0rdant 12-26-2002 11:33 PM

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)?

kwag 12-27-2002 12:33 AM

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 8O

-kwag

m0rdant 12-27-2002 12:54 AM

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 :)

kwag 12-27-2002 01:14 AM

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 :roll: 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

m0rdant 12-27-2002 01:20 AM

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 =)


All times are GMT -5. The time now is 04:22 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.