Quantcast Bitrates: CQ File Size Went up? - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Video Encoding and Conversion

Reply
 
LinkBack Thread Tools
  #1  
08-10-2003, 12:25 PM
audi2honda audi2honda is offline
Free Member
 
Join Date: Jun 2003
Location: Orange County, CA
Posts: 291
Thanks: 0
Thanked 0 Times in 0 Posts
Kwag can you help explain this to me.

I used the same movie and .avs file.

On the first encode I used a max and min in my TMPGEnc project file of 300 and 2500. It picked a CQ of about 63 and the final video size was 635,563

On the second I used a max of 2500 and min of .57*Avg which was about 650kb for the min. It picked a CQ of 57 and the final video size was 649,798

So the CQ went down, but the final video size went up?? How can that be
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  
08-10-2003, 12:41 PM
vhelp vhelp is offline
Free Member
 
Join Date: Jan 2003
Posts: 1,009
Thanks: 0
Thanked 0 Times in 0 Posts
hi audio2honda,

I've experienced this too, in other encoding projects and things.

I've not ben able to come up w/ an 100% explanaa, but I have theorised
that..

when you encode w/ your scenerio as in your example:
* max2500 and min300

.. the quality at that given scale, macro block for macro block had reached
an equalized bitrate distribution (or equlibrium)

when you upped the min to:
* max2500 and min650

.. in effect, changed the scale (or threshold) and all of the sudden, the
macro blocks had some more time to deal w/ those pixels, and did a better
job at giving smoother blocks, hence in short, lesser bitrate was needed.

Thats the only theory I have come up with in my past encodes with type
of expeirence (phenominon) and I've had plenty of those, using a few of
my SuperBit DVD's.

I hope all that made some sense out of it.. as it does to me w/ my encodes

I'm sorry I can't exactly express in better, clearer words, but perhaps
Kwag can

-vhelp
Reply With Quote
  #3  
08-10-2003, 01:10 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 audi2honda
Kwag can you help explain this to me.

I used the same movie and .avs file.

On the first encode I used a max and min in my TMPGEnc project file of 300 and 2500. It picked a CQ of about 63 and the final video size was 635,563

On the second I used a max of 2500 and min of .57*Avg which was about 650kb for the min. It picked a CQ of 57 and the final video size was 649,798

So the CQ went down, but the final video size went up?? How can that be
Because when you increase the MIN, you increase the CQ curve. The CQ value is just a reference for CQ calculations. It wil give you a complete different value if you change MIN or MAX.
That's the reason for the (avg. * 0.57). To push the CQ curve into a more predictable range. The problem is related to the low average we use on KVCDs. If you were predicting for 2 CDs or for a DVDs, where the average is high up in the ~1,500Kbps+, then TMPEG has a better linear range for bitrate allocation. When we use a MAX of 2,500, MIN of 300 and average down around 800Kbps, the MIN and MAX are to far apart and not centered, in reference to the average bitrate.
This problem is also clearly seen with the MainConcept encoder, when trying to use low averages, and high MAX bitrates.

Edit: I'm currently running some tests, related to MIN, Avg. and MAX suggestions for higher file size preciction accuracy. I'll post results later today.

-kwag
Reply With Quote
  #4  
08-10-2003, 01:14 PM
audi2honda audi2honda is offline
Free Member
 
Join Date: Jun 2003
Location: Orange County, CA
Posts: 291
Thanks: 0
Thanked 0 Times in 0 Posts
Ok makes sense. So is it safe to say that in this case the lower CQ, but higher file size will look better?

I just feel like I'm losing out on quality when I use 2000 as a max although that prolly does give the most accurate file size.
Reply With Quote
  #5  
08-10-2003, 01:32 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 audi2honda
Ok makes sense. So is it safe to say that in this case the lower CQ, but higher file size will look better?
Yes.
Quote:

I just feel like I'm losing out on quality when I use 2000 as a max although that prolly does give the most accurate file size.
That could be case, if you are not using the MA script. I'm using 2,000 MAX all the time with the MA script. But if I wasn't, then a MAX of 2,000 might be a problem
That now brings me to think of a new addition to our procedures, and that is to do some kind of analysis on the material to be encoded, and if it is a low action material, we can increase the MIN bitrate much closer to the average and if it's a very high action material, we can drop the MIN further apart from MIN
This would guarantee that if it's an action movie, more bitrate would be allocated on high speed scenes without wasting it on dark and low motion scenes with a MIN above the real needed MIN bitrate. So maybe some formula could be derived, that would give us an optimal MIN/MAX/Average ratio depending on the movie activity

Looks like this week is going to be another fun week

-kwag
Reply With Quote
  #6  
08-10-2003, 01:35 PM
audi2honda audi2honda is offline
Free Member
 
Join Date: Jun 2003
Location: Orange County, CA
Posts: 291
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag

Looks like this week is going to be another fun week

-kwag
Yes it does.
Reply With Quote
  #7  
08-10-2003, 01:39 PM
vhelp vhelp is offline
Free Member
 
Join Date: Jan 2003
Posts: 1,009
Thanks: 0
Thanked 0 Times in 0 Posts
.
.
But, Kwag.. how would we know for sure, or, HOW MUCH action
is considered a change in algo ??

That's always ben my issue. I have to see the movie, and notice what makes
it action vs very action, vs calm vs. whatever else. Maybe a scale could
be derived, based on a table of some sort for this.. must like what I have
for the (0.57 * ave) in vcalc though

But, still, it would be rather difficult to conjure up such a receipe
-vhelp
Reply With Quote
  #8  
08-10-2003, 01:43 PM
vhelp vhelp is offline
Free Member
 
Join Date: Jan 2003
Posts: 1,009
Thanks: 0
Thanked 0 Times in 0 Posts
.
.
Yeah, much like a lever switch:

* Very High -- -- (Arnold, water, fences, rain etc)
* High -- -- -- --- (some Arnold, water fences and rain drops)
* Low -- -- -- --- (ie, k-pax)
* Boring -- -- -- -(talk shows ie)



-vhelp
Reply With Quote
  #9  
08-10-2003, 02:02 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
It's soooo easy
Ratio = Movie Source (DVD) Video Stream Size in MB / Movie Time in Minutes
The larger the Ratio, the more active the movie is

-kwag
Reply With Quote
  #10  
08-10-2003, 02:20 PM
vhelp vhelp is offline
Free Member
 
Join Date: Jan 2003
Posts: 1,009
Thanks: 0
Thanked 0 Times in 0 Posts
hi Kwag..

Actually, I don't get it, but I'll massuage it around a bit in my spreadsheet and my head

But, basiclaly, you're saying then, that whatever the final file size would be
ie, say MStaker reports Wanted Filesize: 695mb, that THAT becomes my
Ratio ?? or else, how to obtain my "Movie Source..." size ??

..otherwise, the above analygy would be something like:

Ratio = Movie Source (DVD) Video Stream Size in MB / Movie Time in Minutes..

... or ...,

Ratio = (695mb / 123min) = 4 --> compare to scale(1,2,3,4,5)

So, given the Scale below w/ values:
1 = 820mb - Very High action
2 = 790mb - Very High action
3 = 770mb - High actoin
4 = 720mb - Mid action
5 = 650mb - low action

I don't know what you would concider the scale to be w/ just the right values
and all, but you would prob be the best one to revise the above scale w/
more accurate values

EDIT: - - then, based on 4 value, go to algo to handle the
bitrate calc for that given encode ??

Those above are just random thought

What are your comments regarding the above ??
-vhelp
Reply With Quote
  #11  
08-10-2003, 02:42 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 vhelp
But, basiclaly, you're saying then, that whatever the final file size would be
ie, say MStaker reports Wanted Filesize: 695mb, that THAT becomes my
Ratio ?? or else, how to obtain my "Movie Source..." size ??
No. I clearly said: Movie Source (DVD) Video Stream
That means Stripped MPEG-2 video stream. You can see that size with DVD Shrink. It let's you "see" the video stream file size, wthout overhead of the other streams. So just divide the true video size by the time of the movie, and that will give you a ratio. Obviousy, the larger the file/movie time ratio, means more film activity.

-kwag
Reply With Quote
  #12  
08-10-2003, 02:54 PM
vhelp vhelp is offline
Free Member
 
Join Date: Jan 2003
Posts: 1,009
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Kwag..

Quote:
Originally Posted by kwag
Quote:
Originally Posted by vhelp
But, basiclaly, you're saying then, that whatever the final file size would be
ie, say MStaker reports Wanted Filesize: 695mb, that THAT becomes my
Ratio ?? or else, how to obtain my "Movie Source..." size ??
No. I clearly said: Movie Source (DVD) Video Stream
That means Stripped MPEG-2 video stream. You can see that size with DVD Shrink. It let's you "see" the video stream file size, wthout overhead of the other streams. So just divide the true video size by the time of the movie, and that will give you a ratio. Obviousy, the larger the file/movie time ratio, means more film activity.
I got it. I realized, after seeing the "DVD" inside that formula, that you
ment for the Actual DVD source size, not our calculated size

But, I was still able to play around w/ this in my spreadsheet
Anyways..

Thanks for all your helpful pointer and explanations,
-vhelp

PS: After a second run on "Get Karter" s/ CQM v1.1.07, I went from an
previous CQ value of 39 to a CQ of 56.021 now. Quality was way much
better than the first, but I'll have to double check that score to be sure the
previous value was 39. In any event, latest CQM showed much better
results for my MPEG-2 tests, though based off a 21 minute test VOB.
I'll do a full "Get Karter" test, later on, if I have the opportunity and post
the results. Hope it's not weird though.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Bitrates: File size prediction problems Drisanna Video Encoding and Conversion 23 04-29-2004 08:54 AM
Bitrates: CQMatic - File size always 10-25mb too big? DanoSaurus Video Encoding and Conversion 6 01-20-2004 05:04 PM
Bitrates: file size too big? Nobody Video Encoding and Conversion 0 01-03-2004 11:56 AM
Bitrates: CQ 89.77 but file size difference is positive! daone Video Encoding and Conversion 5 12-30-2003 02:58 PM
Bitrates: Calcumatic file size detection nicksteel Video Encoding and Conversion 2 09-10-2003 11:56 AM




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