adjusting file prediction
Iīm trying to program a little application to automate file prediction, and I've got these results, using the "standard" prediction formula.
Code:
352x576, 25 Ok, you gurus, what kind of strategy could I use to stop this thing happen ? How many times do I need to predict ? What file size is aceptable (5% deviation of estimated file, 10 %...) ? Any other advice is really welcome. Thank you in advance |
@hedix,
I suppose this is a program you've written. I'm using a macro program called "AutoIt" to loop (keep excuting) until the target file size is within +-3%. I supply the audio file size and it does the rest from an avs script I've created using "MovieStacker". To decide how to help you, we need to know more about your process. :) -black prince |
OK. Here I go.
It is a delphi program. I supose it does basically the things your script does. I feed an AVS (with filters, gripcrop...etc), the audio file, min and max bitrate, initial CQ, MPG-1 or MPG-2. I pretend to include number of cd's ..etc. When I finish the program, I pretend it to do the non-thinking things: I will feed the AVS, and the application will extract and compress the audio, the prediction, and then encode. The source code prediction section: Code:
//1st pass for prediction Code:
Set_VTPR_Values(fNextCQ,slVTPR); The main reason to develop this is lazyness :lol: , and to learn. I'm learning from delaosa work, ACP, and from DVD2SVCD, a lot. Matrix and GOP are coded, so the program focus on KVCD. The question is: What to do when I have "Predicted" six or more times (like in the example in my first post), and I canīt reach that 3% you say. I think six predictions must be enough... or... 8O |
@hedix,
SansGrip was in the process of creating such a program that would give a final prediction. My process takes 2 to 4 passes before reaching an approximate file size of +-3%. My program is based on the manual process we use at KVCD with the new 10% sample in my avs. This speeds my prediction from ~20 minutes to ~3 or 4 minutes. The results are close to the actual encoded file size. I would like to see an automated program available at KVCD for file size prediction. Present your program in the Delphi forum where there are quote gurus that can help you with coding problems. :) Check with VHelp in the Delphi Forum here at KVCD. -black prince |
black prince, hedix and all....
my sincere impression without breaking any "rule" : seems..... 8O 8O 8O waiting for you and "gurus that can help"! :wink: ps: you are gurus too! |
Inside the loop:
1) Save previous CQ and Sample Size. 2) Calculate a rate of CQ against Size. 3) use this in a linear equation y=ax+b Code:
DeltaSize:=(SampleSize-PreviousSampleSize); //Size variation PreviousCQ=60 PreviousSampleSize=8000K NextCQ=70 SampleSize=10000K desiredSize=9000K Then DeltaSize=10000-8000=2000 DeltaCQ=70-60=10 CQSlope=10/2000=0.005 NextCQ=70+(9000-10000)*0.005=70-1000*0.005=70-5=65 This won't diverge unless your movie needs CQ>100 to reach the desired size (so you may want to put a max CQ to stop the looping). I'd be interested in using your software if you decide to make it public. GFR |
PS
You may also want to stop the loop if the CQ changes are below a certain threshold (like for example 0.1 or 0.05). |
Thank you all !
OK, GRF, I'll try your formula, and I'll tell you. Black prince wrote Quote:
Edit: formal prediction results CQ: 67,02 10% prediction results CQ: 64,35 And jorel, Quote:
hedix: 11 posts :oops: guru....naaaaa...just playing ! |
@ hedix,
you wrote: "jorel: 592 posts (knowledge, donīt fool me) hedix: 11 posts" an explanation about my 592 posts: 200 was for ask, :oops: 250 was for thanks :D other posts are mix of: ...i dont understand :? ...what? 8O .....oh no :cry: .....sorry :( .... where is it? :?: :? :roll: ....heeeeeeeeeeelp!!! :bawl: , ... things like this! :lol: to teach anything: 0 (zero) :eeks: to learn in future: maybe,more or less 99999999999999,9 posts :dunce: hedix: 11 posts....yeah,but with a big project! 8) GFR rocks too,like other gurus here! 8) ps: don't need to post the names of other gurus,is clever in the forum! :) thank you! :wink: |
@black prince:
Did you say you had that program done? Well if it works for you, it might work for others :wink: ! This would be more than useful to me because i'm lazy too ! |
hi black prince,
I'm lazy three :D Is AutoIt easy to use? What does an AutoIt script look like? I've downloaded AutoIt but I can't install it yet because I'm encoding now :wink: thnx, ren |
Jellygoose, ren ,hedix, GFR, black prince:
i'm a lazy four,(and maybe this is a thread "lazy tree"). ren, like you i was download autoit,but don't try yet. "Well if it works for you, it might work for others..." yes i think the same! waiting.....but seems ok and working. :wink: |
@All,
I want to find a better way than "AutoIt". It still requires some manual setup, e.g. total frames, total time, sampler frames, etc. I'm almost as fast as "AutoIt" using Ren's 10% file prediction method. I hope hedix can develope a stand-alone program to do the same thing. SansGrip mentioned working on this before he disappeared. I hope when he returns, he'll continue with an automated program :) -black prince |
Quote:
|
@Hey SansGrip,
Great to hear from you!!! :D We thought you were drafted into the war in Iraq on a secret mission and had to leave without telling anyone. They heard about your filters (e.g. GripFit, etc.) and needed you to convert satelite video survilance of Iraq into a KVCD to fit on 1 CD. Any way good to see you again :D -black prince |
Quote:
|
so what file prediction have we settled on for 1CD and 2CD encodes? I am having trouble setting this since the prediction needs to be changed for the amount of CD's you want. If I set a prediction for 1CD and looks fine then do a 2CD with the same prediction the file sizes are way off.
Thanks |
Hi Holomatrix,
You just use the same formula, but target for twice the size. For 2 CD's, it's basically 1600MB - YourAudioSize (if you are using 80 minute CDs ) Use ToK, it's easier :wink: -kwag |
We'll why I ask this, is that the same move, same file prediction gave me 782meg for 1CD and 1800meg for two CD's. So looks like I would need to increase file prediction for 1CD but decrease file prediction for two CD's.
What file prediction do you stick with? 1.15 (74CQ) was good for 101min move "FEARDOTCOM" 528x480 gave me around 800meg file. Thanks |
Quote:
Please try ToK instead of predictor, because predictor is still based on the old CQ_VBR method and it might not give accurate results with CQ. -kwag |
Nope, I'm using ToK. I changed the file prediction from 0.99 because my file was way to low.
|
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.