Quantcast Having Trouble Predicting Actual Finished File - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Avisynth Scripting

Reply
 
LinkBack Thread Tools
  #1  
02-20-2003, 10:01 AM
TCC TCC is offline
Free Member
 
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
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:



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
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
02-20-2003, 10:11 AM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
Sample points = minutes in movie
Error margin = 2%
Reply With Quote
  #3  
02-21-2003, 09:27 PM
Tutankhamun Tutankhamun is offline
Free Member
 
Join Date: May 2002
Location: Ohio - U.S.
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
So that is why I could never get it to work!

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

Thanks for pointing that out Boulder!
__________________
Thanks for the help
Reply With Quote
  #4  
02-21-2003, 09:45 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #5  
02-21-2003, 10:03 PM
Tutankhamun Tutankhamun is offline
Free Member
 
Join Date: May 2002
Location: Ohio - U.S.
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
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 ##
__________________
Thanks for the help
Reply With Quote
  #6  
02-21-2003, 10:52 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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 ##


-kwag
Reply With Quote
  #7  
02-22-2003, 10:58 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
but

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 !



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!
but

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)

why i got this final size?


thanks for any explanation!
jorel
Reply With Quote
  #8  
02-23-2003, 12:22 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Hi jorel,

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

-kwag
Reply With Quote
  #9  
02-23-2003, 12:27 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote
  #10  
02-23-2003, 12:35 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #11  
02-23-2003, 12:47 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
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


Reply With Quote
  #12  
02-23-2003, 12:54 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by jorel

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


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
Reply With Quote
  #13  
02-23-2003, 12:58 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts


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

thanks for help and script!
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
kvcd: set bitrate in TMPGenc, instead of file predicting? maikeru Video Encoding and Conversion 7 06-15-2003 08:42 PM
Avisynth: Predicting File Size for VBR ..... black prince Avisynth Scripting 73 03-11-2003 05:21 PM
KVCD: file predicting DVD to 1 cd-r disc? 2COOL Video Encoding and Conversion 0 10-14-2002 07:17 PM
Avisynth: File Size Predition vs Actual file size? Rig R. Mortis Avisynth Scripting 2 10-12-2002 06:04 PM
KVCD: How to cut the finished mpg with the file size that I want? bigbob2 Video Encoding and Conversion 11 06-25-2002 02:56 AM




 
All times are GMT -5. The time now is 06:34 AM  —  vBulletin © Jelsoft Enterprises Ltd