![]() |
Quote:
|
So what should be added to the AVISynth script to implement the function Sampler(int movielength, int gop)?
I tried Code:
function Sampler(int MovieLength, int GOP) {I tried adding Code:
IL = round((Framecount/Framerate)/60) Would I just change the Error Margin in KVCDP to 2% and go from there? |
Quote:
Total frames/Framerate/MovieTimeInMinutes = 60 so formula going to be : 60 * 0.98 * sample file size or file size = Sample file size * 58.8 Very simple , Right ?!!! bman |
Sampler?
Quote:
|
Quote:
I believe that it's not right. Remember... IL = Interval Length, not the quantity of samples. If you want the number of samples to be equal the movie time in minutes, you have to do this: Code:
MI = (Framecount/Framerate)/60 |
Re: Sampler?
Quote:
Try this and you'll get what you want: MI = (Framecount/Framerate)/60 IL = round(Framecount/MI) SL = round(Framerate) SelectRangeEvery(IL,SL) |
Quote:
|
Quote:
Another quick question -- I realize this probably isn't the thread to post it in, but this thread is hot and I'd like this answered immediately so I can get on with my encoding =) When using Code:
BB_Resolution = 352 * 480 |
Quote:
Good morning :D -kwag |
Quote:
If we have: Code:
IL = MovieTimeInMinutesSL=24 ( rounded frame rate ) And if done like this: Code:
IL = round((Framecount/Framerate)/60)Then my total frames are 153233 / 23.976 / 60 = 106.51832 which will round to 107. And the SL will be 24 ( round 23.976 ) Edit: I see where the confususion is. IL was wrongly labled. It's not "Interval Length". It's really "Every Interval" Code:
SelectRangeEvery(clip,every,length[,offset]) -kwag |
Quote:
For my test I'm using an 86min film, so I'm using an 86:24 sample. The sample with Sampler has 2063 frames, and the sample with avs has 2087. The exact value should be 2064 frames (86x24). I don't know why Sampler always produce 1 frame less then the total, but it's much more accurate than avs. Now the strange part: after encoding the sample, TMPG is producing 1243 frames, instead of 2063! I don’t know if I made my self clear, but what I mean is at TMPG Source Range the sample has 2063 frames, but after the encode it end up with 1243 frames. I can’t understand… is that supposed to be happening? |
Quote:
If you use IL=107 (your red planet example) and SL=24, them you are getting 24 frames of every 107!! This would result in an HUGE total sample! If you want 107 samples, then you have to do Framecount/107 !! |
But I think that we should start to use the Sampler from SansGrip.
It IS more accurate. |
......i need a "resume" to understand it all. "i'm flying" :?
|
Quote:
You are correct. Maybe I should step away from the computer for a couple of hours :lol: Edit: And the correct lines are what you posted: MI = (Framecount/Framerate)/60 IL = round(Framecount/MI) SL = round(Framerate) SelectRangeEvery(IL,SL) Thanks, -kwag |
Quote:
If you look at how many frames TMPGEnc sees when it's actually doing the encode, it should be right on the money. |
There's a new Sampler out. I posted details here. No more monkeying about with Source Range now :).
|
Quote:
|
Quote:
Sampler(minutes, 24) :mrgreen: |
Quote:
And I just thought that this "supposed" missing frame would be the "information" frame that we talk on the other thread. :mrgreen: |
Site design, images and content © 2002-2026 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2026 Jelsoft Enterprises Ltd.