Of course... the audio... :x
i am usualy not using AviSource(movie, FALSE). Anyway thanks a lot :D |
Quote:
Ok I finally finished my spreadsheet- lot of work for file prediction :!: I encode samples of Heist with this script: Code:
Mpeg2Source("D:\HEIST\VIDEO_TS\heist.d2v") here's the result: http://www.digitalfaq.com/archives/error.gif here's the excel file for the Sigmoidal Curve parameter sticky post 8O: Heist_data.xls I still think it may be possible to create a linear equation based on cq0 to ~cq50 and combine another one for cq50 to ~cq80 8O ren |
Quote:
http://www.digitalfaq.com/archives/error.gif |
Quote:
-Tenra |
If this means that the curves are different for each resolution, we're screwed 8O
|
Quote:
-Tenra |
I encoded a bunch of samples of"the Matrix" at 528x480 and graphed the sizes and it follows exactly the same pattern!
http://www.digitalfaq.com/archives/error.gif The peak file sizes (or the "ceiling") is higher with the Matrix samples 8O The bottom line is that it may be possible to determine the final size of the encode with one short sample at cq-100 and with a good formula (maybe range adjusted by resolution or number of pixels), making the process simpler :D :tongue2: ren |
OK, I'm finally done, and I think I have good news :!:
First, a chart, and then the explanation :lol: : Code:
CQ FS ABR !ABR *CQ FS=File Size. ABR=Average Bit Rate. !AVBR=Linear(should be) Average Bit Rate. *CQ=Use this CQ to encode. This was done with 352x480 template to pick a "half way" point for resolution. Now you only need to run a sampler ( ~30% or full ) one time only with CQ=100 :!: And do this: (1)Lookup the average bit rate that MovieStacker suggested. (2)Divide Moviestacker's suggested average bit rate by your real average bit rate of your sample as seen on BitRate Viewer, and multiply by 100. (3)Look up the closest number you got in step (2) IN THE LEFT CQ values column of the chart, and use the *CQ on the same line on the far right Tada!. That's it. Please let me know if this is on target, or if it has been a waste of time :cry: Edit: Suggestion, I think it's better to run the one time full sampler instead of ~30%. This way we get a more accurate bit rate for the prediction. Also these numbers are to be used with KVCD's Q Matrix and GOP. They will be WAY off with anything else :!: -kwag |
@Ren,
Take a look at the numbers and see if it now matches close to what you had encoded before :wink: -kwag |
Hey! 8O
If this works I can code this chart into MovieStacker and make a Prediction Tab to make all the choices and calculations! :wink: |
Quote:
I need people to test this. The chart was based on a 20 second sample. If the prediction is not at least 98% accurate, then I'll do a batch job overnight with a longer sampler, and then feed in the new values to the spreadsheet. -kwag |
Ok, my movie was Ronin.
MovieStacker says average bitrate was 2064 kbps. Bitrate viewer says 1495 2064/1495 = 1.380602007 x 100 = 138.0602007 ?!?!?! I used 528x480 with this script: Code:
Import ("G:\sample avisynth scripts\LoadPlugins.h") |
Quote:
Look again at the LEFT value on MovieStacker. Right under the "Minutes" field. -kwag |
LOL! :imstupid: i figured it out, thanks!
Ok, so.... Ok, my movie was Ronin. MovieStacker says average bitrate was 1001 kbps. Bitrate viewer says 1495 1001/1495 = .6695652174 x 100 = 66.95652174. So, i would use a CQ of 83? |
Quote:
Tell me your results :wink: -kwag |
8O Wow. A lot has happened since I was last here......
It might be just me but when I ran a full sampler, got the correct CQ, and then used this CQ and ran another sampler using manual file size prediction, the resulting file was about 2 megs bigger than my target size... :( |
Quote:
That's related to ALL my posts in this thread. Ok, so you mean your "sampler" file size was ~2MB larger than with the standard method of file prediction :?: What was your resolution :?: -kwag |
hey kwag,
I tried the table and it worked great 1/2 times- first time very close- second time off pretty badly :? If you want you can download my excel worksheet of Heist that I posted-- did you see that? I'm confused about a couple things though: 1. The curve range is totally different between 352x240 and 528x480 (assuming the resolution is causing this)- so won't the error factor be different? 2. Why not just use filesize and not bitrate? Using the bitrate is a serious pain- first the recommended bitrate to use in MovieStacker is based on all the settings on the page (most relate to SVCD) :roll: It would be so much easier to just enter your error factor into the Predict2 function and it will display the correct cq to use :idea: thanks, ren |
Quote:
|
Quote:
Yes, the resolutions throw off the curve completely 8O. I guess this exercise did turn into a "crap" ( for my posts :cry: ), because the method is very tightly integrated with the MIN, MAX and resolution I used. So there would have to be a chart for every template, and then if anything is changed ( matrix, etc. ) that would mean that a whole new chart would be needed. So, I slipped and fell on this one :twisted: Thanks for trying it out. Now I'll go dig a hole in the ground and proceed to insert myself in it for a couple of hours, and meditate :roll: :x :x -kwag |
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.