digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Having trouble predicting actual finished file (http://www.digitalfaq.com/archives/avisynth/2709-trouble-predicting-actual.html)

TCC 02-20-2003 10:01 AM

Having trouble predicting actual finished file
 
I'm at a loss here :( Every time I use the predictor with the sample file size it says I should have, the size of the file after using the avs script is MUCH larger than predicted. Here's my info:
http://www.digitalfaq.com/archives/error.gif
http://www.digitalfaq.com/archives/error.gif

Now keep in mind I'm not using a CQ of 25. It's usually around 60-70. But when I do reach close enough to my sample file size and then encode it, it comes out to be almost 100MB bigger.

Also, what values are you suppose to use in the Miscellaneous section??

Thanks

Boulder 02-20-2003 10:11 AM

Sample points = minutes in movie
Error margin = 2%

Tutankhamun 02-21-2003 09:27 PM

So that is why I could never get it to work! :oops:

Never knew I had to change the sample points to minutes of movie.

Thanks for pointing that out Boulder! :D

kwag 02-21-2003 09:45 PM

The original formula was fixed at 100 points. After many (hundreds :!: ) of hours, SansGrip and I decided that it was more accurate to use a dynamic figure based on the length of the film. So we agreed on the number of minutes. This way the longer the movie, the more snapshots are taken, and the more accurate is the file size prediction :)

-kwag

Tutankhamun 02-21-2003 10:03 PM

So Kwag, since I now have updated template can you tell me which sampler line is the correct one to be using

Sampler(length=24)
## MPEG size = ((Total frames/MovieTimeInMinutes)/24) * MPEG sample file size * .98 ##

or

Sampler(length=24)
## MPEG size = ((Total frames/MovieTimeInMinutes)/24) * MPEG sample file size ##

kwag 02-21-2003 10:52 PM

Quote:

Originally Posted by Tutankhamun
So Kwag, since I now have updated template can you tell me which sampler line is the correct one to be using

Sampler(length=24)
## MPEG size = ((Total frames/MovieTimeInMinutes)/24) * MPEG sample file size * .98 ##

or

Sampler(length=24)
## MPEG size = ((Total frames/MovieTimeInMinutes)/24) * MPEG sample file size ##

Sampler(length=24)
## MPEG size = ((Total frames/MovieTimeInMinutes)/24) * MPEG sample file size * .98 ##
:wink:

-kwag

jorel 02-22-2003 10:58 PM

:? but :D

with me was diferent....KVCDx3Mpeg2(modif 352x480)
audio = 160mp2 (105mb)

using this script from muaddib's fitcd:

LoadPlugin("D:\convert\FitCD_v1.0.5_Prediction&Fil ters_v0.2\MPEG2DEC3.dll")
LoadPlugin("D:\convert\FitCD_v1.0.5_Prediction&Fil ters_v0.2\legalclip.dll")
LoadPlugin("D:\convert\FitCD_v1.0.5_Prediction&Fil ters_v0.2\decomblegacy.dll")
LoadPlugin("D:\convert\FitCD_v1.0.5_Prediction&Fil ters_v0.2\dustv5.dll")
LoadPlugin("D:\convert\FitCD_v1.0.5_Prediction&Fil ters_v0.2\temporalcleanerold.dll")
LoadPlugin("D:\convert\FitCD_v1.0.5_Prediction&Fil ters_v0.2\Unfilter.dll")
LoadPlugin("D:\convert\FitCD_v1.0.5_Prediction&Fil ters_v0.2\sampler.dll")

Mpeg2Source("D:\convert\352x480\01.d2v")
LegalClip()
FieldDeinterlace()
BicubicResize(352,480,0,0.6,8,0,704,480)
SpaceDust()
TemporalCleaner()
#AddBorders(0,0,0,0)
Unfilter(20,20)
LegalClip()

Sampler(length=24)
## MPEG size = ((Total frames/MovieTimeInMinutes)/24) * MPEG sample file size ##


((166274/92)/24)*8,63(cq60) ( without *.98 ) = 649,884mb !

then i redo with cq66,....
((166274/92)/24)*9,50(cq66) ( again without *.98 ) = 715,399mb !



8O now i don't understand: :?

i encode the film with

CQ 66 ... ... ... ... and after 04:30 i got:

677mb (693,965kb)
and with
audio 160mp2 (108,087kb)...
final:

783mb (821,300) and rest more or less 17mb in a 800mb cdr!
8O but :D

am i doing something wrong cos don't get the total size of the cd? :?
...and unfilter ever increase a little the final size !
the sound and images are incredible(of course) :D

why i got this final size?
:? :? :? :?

thanks for any explanation!
:wink: jorel

kwag 02-23-2003 12:22 AM

Hi jorel,

Why are you using FieldDeinterlace() :?:
Isn't your movie an NTSC FILM movie :?:

-kwag

jorel 02-23-2003 12:27 AM

Quote:

Originally Posted by kwag
Hi jorel,

Why are you using FieldDeinterlace() :?:
Isn't your movie an NTSC FILM movie :?:

-kwag

yes, is NTSC Film...
but in the preview(tmpgenc) i see some deinterlaced images,
than i use this.....
don't need?
:?

kwag 02-23-2003 12:35 AM

Quote:

Originally Posted by jorel

yes, is NTSC Film...
but in the preview(tmpgenc) i see some deinterlaced images,
than i use this.....
don't need?
:?

Run DVD2AVI for a couple of minutes ("F5") on your VOBs, and tell me if it says >95% FILM.

-kwag

jorel 02-23-2003 12:47 AM

Quote:

Originally Posted by kwag
Quote:

Originally Posted by jorel

yes, is NTSC Film...
but in the preview(tmpgenc) i see some deinterlaced images,
than i use this.....
don't need?
:?

Run DVD2AVI for a couple of minutes ("F5") on your VOBs, and tell me if it says >95% FILM.

-kwag

reading:

aspect radio = 4:3
frame rate = 29970fps
video type = ntsc
frame type = interlaced
.....
elapsed time= 00:03:35

:wink:
:?:

kwag 02-23-2003 12:54 AM

Quote:

Originally Posted by jorel

aspect radio = 4:3
frame rate = 29970fps
video type = ntsc
frame type = interlaced
.....
elapsed time= 00:03:35

:wink:
:?:

Ok, try this script:

Code:

LoadPlugin("D:\convert\FitCD_v1.0.5_Prediction&Filters_v0.2\MPEG2DEC3.dll")
LoadPlugin("D:\convert\FitCD_v1.0.5_Prediction&Filters_v0.2\legalclip.dll")
LoadPlugin("D:\convert\FitCD_v1.0.5_Prediction&Filters_v0.2\decomblegacy.dll")
LoadPlugin("D:\convert\FitCD_v1.0.5_Prediction&Filters_v0.2\dustv5.dll")
LoadPlugin("D:\convert\FitCD_v1.0.5_Prediction&Filters_v0.2\temporalcleanerold.dll")
LoadPlugin("D:\convert\FitCD_v1.0.5_Prediction&Filters_v0.2\Unfilter.dll")
LoadPlugin("D:\convert\FitCD_v1.0.5_Prediction&Filters_v0.2\sampler.dll")

Mpeg2Source("D:\convert\352x480\01.d2v")
LegalClip()
Bob()
BicubicResize(352,480,0,0.6,8,0,704,480)
SpaceDust()
TemporalCleaner()
#AddBorders(0,0,0,0)
Unfilter(20,20)
LegalClip()

Sampler(length=24)
## MPEG size = ((Total frames/MovieTimeInMinutes)/24) * MPEG sample file size ##

And try prediction again.

-kwag

jorel 02-23-2003 12:58 AM

:D

ok,i encode and post the result.(of course will be good)

thanks for help and script!
:wink:


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