Quantcast Encoding the Whole Movie - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Avisynth Scripting

Reply
 
LinkBack Thread Tools
  #1  
12-09-2003, 11:08 AM
canon canon is offline
Free Member
 
Join Date: Oct 2003
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Simple question???

I don’t care about the time it takes (the computer is running when I’m asleep),
But I want to make sure that the movie will come out 795 mb.
Is there a way to determine the exact cq by encoding the whole movie (twice) instead of using samples?
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  
12-09-2003, 11:10 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
No.

YOu can use 2-pass VBR or encode the whole movie more than 2 times (the same number of time you would have encode a sample in fact).
Reply With Quote
  #3  
12-09-2003, 05:20 PM
Anerboda Anerboda is offline
Free Member
 
Join Date: Mar 2003
Location: Denmark
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
@Dialhot, how about using ToK ?

Can't we tell ToK to do a full encode at a certain CQ, and then small samples starting at the same CQ, I think it's called "Faster Prediction".
If we set ToK to do length of sample = 75, and 20 samples per minute (for GOP of 25, PAL movie), and after that use "Faster Prediction" with "Speed Up" = 10% or perhaps 20%...

Wouldn't that make a full encode, and then compare the size of the full encode with a lot of small samples? ( I know this would take a lot of time, but if it is done over night, then it wouldn't matter )

Maybe I'm wrong, I haven't tried it myself.

What do you think, is it possible?

Anerboda
Reply With Quote
  #4  
12-09-2003, 05:44 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
For sure it's possible but whatever you do, when using samples you don't compute the real CQ but an estimated one. So the CQ you will find at the end of the "fast prediction" pass won't be the absolutly exact one (it will be closer than with the standrd tok prediction, but not THE one).

At the end you can have a file that is still a few MB other the target.
(in a certain part of the curve, the file size move very quicly even for a very small variation of CQ).
Reply With Quote
  #5  
12-09-2003, 05:47 PM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
@ Anerboda

Well in case of TOK this wont give you a 99% chance to hit the 796 MB muxing Target.

Because the first log pass gives a value, so: long=(resulted MB * (calculation of long slices ))@ CQ 65 for example (stream minus audio).
Now the same CQ will be used on a small sample ... which gives small= (resulted MB * (calculation of small slice sizes)). So TOK calculates that "long" should be in relation to "small" at same cq and so with this "long" in mind he starts approching the nearest CQ using therefore the resulting new "small"s but you still use this "unlinear" CQ behaviour on just all the same sliced "small" samples on every turn. And thats why you'll never get even that 99% acuracy seen as an average on all your predictions done on all your movies If CQ would be linear we just could perform the mathematical "rule of three" but ... it won't work as we know. So in my opinion an almost 100% acurate prediction will depend on future code-updates of TmpgEnc belonging to its CQ mode.

EDIT: (DialHot just replied also .. he typed it more brought to the point)
Reply With Quote
  #6  
12-09-2003, 06:18 PM
Anerboda Anerboda is offline
Free Member
 
Join Date: Mar 2003
Location: Denmark
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
@Dialhot
@Incredible

Thanks for your observations and explanations, this will save me from a lot of testing...

So this will still be trial and error, I guess...

But I allready started a few encodes out of this theory, so I'll get back to you...

Anerboda
Reply With Quote
  #7  
12-09-2003, 06:31 PM
Anerboda Anerboda is offline
Free Member
 
Join Date: Mar 2003
Location: Denmark
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Dialhot wrote:
(in a certain part of the curve, the file size move very quicly even for a very small variation of CQ).
I know, and a lot of times I have found that around a CQ of 79 to 81 there are very big differences in filesize, even with a little increase/decrease in CQ...
...and it seems to be in these incidents, that it's very difficult to predict the right CQ...
...so if we raised or lowered the min. bitrate we would get out of this area, where CQ is difficult to predict..?

If somehow we could find a min bitrate that would leave us in an area where the CQ is more linear, it would be easier to predict...?

Just wondering... It's late here in Denmark, and I'm probably not thinking straight anymore today...I'll go to bed now, have to get up at 5:00...

Anerboda
Reply With Quote
  #8  
12-10-2003, 04:35 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Anerboda
...so if we raised or lowered the min. bitrate we would get out of this area, where CQ is difficult to predict..?
Once a time Kwag told me that using "B spoilage" in tmpgenc setting bows the CQ curve. Perhaps it's possible to make it a little less difficult to predict.

Quote:
If somehow we could find a min bitrate that would leave us in an area where the CQ is more linear, it would be easier to predict...?
That was the idea of CQMAtic (using 0.57*AVG as min and 2000 as max). But Kwag finally realize that it wasn't enought.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
DVD2SVCD: movie was encoding at 480x480 password Video Encoding and Conversion 8 07-09-2004 03:32 PM
Encoding: How to insert a movie into PowerPoint? EduFonseca Video Encoding and Conversion 8 04-26-2004 04:30 PM
TMPGEnc: movie encoding does not complete James Alan Video Encoding and Conversion 7 04-24-2004 01:35 PM
MovieStacker: Movie encoding successful? password Video Encoding and Conversion 2 03-25-2004 04:01 PM
KVCD: Encoding only some frames of movie? paull2k Video Encoding and Conversion 9 07-16-2003 12:44 AM




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