Quantcast CQ vs. CQ_VBR ... Very Interesting... - Page 4 - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Avisynth Scripting

Reply
 
LinkBack Thread Tools
  #61  
12-25-2002, 01:14 PM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
kwag I don't have a clue how to compensate for those low frequency blocks, but when you come out with an optimized Q-Matrix I'll definetely start testing it!!
__________________
j3llyG0053
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
  #62  
12-25-2002, 01:15 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
I'm on 256Kbps DSL, so no prob here
Downloading...

Edit: 2 minutes to go ....

-kwag
Reply With Quote
  #63  
12-25-2002, 01:18 PM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
....... waiting.... for ..... reaction....
__________________
j3llyG0053
Reply With Quote
  #64  
12-25-2002, 01:27 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
This is what I think of that sample:







That looks like a DVD . Actually I've seen worse DVD encodes
I renamed the file from .m1v to .mpg so I could see the correct aspect and play it on WinDVD. "A>W>E>S>O>M>E" I have no better words to describe that

-kwag
Reply With Quote
  #65  
12-25-2002, 01:34 PM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
That's YOUR work kwag!!

We should go on testing and try to get rid of those low frequency blocks...
I'll let you know when the complete movie is done and if it fits... right now it's a little too big for 24%... well we'll see. I used "Sampler ()" and this formula for the prediction :

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

was that the latest for the new GOP?
__________________
j3llyG0053
Reply With Quote
  #66  
12-25-2002, 01:41 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 Jellygoose
That's YOUR work kwag!!
Not anymore!, it's OUR work
Quote:

We should go on testing and try to get rid of those low frequency blocks...
I'll let you know when the complete movie is done and if it fits... right now it's a little too big for 24%... well we'll see. I used "Sampler ()" and this formula for the prediction :

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

was that the latest for the new GOP?
You bet!. I'm running some tests analyzing the low frequency spectrum of mpeg files
Your formula is correct. Make sure you're using 1-12-2-1-24 for your GOP.

-kwag
Reply With Quote
  #67  
12-25-2002, 01:44 PM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
Make sure you're using 1-12-2-1-24 for your GOP.
-kwag
that's what the sample is using.

BtW: That GOP kicks ass... far better than the old ones we had!
__________________
j3llyG0053
Reply With Quote
  #68  
12-25-2002, 03:17 PM
black prince black prince is offline
Free Member
 
Join Date: Jul 2002
Posts: 1,224
Thanks: 0
Thanked 0 Times in 0 Posts
Hey Kwag,

I included Blockbuster noise with a variance of .3 and detail_min=1,
detail_max = 10 (defaults) in my script. I changed Tmpgenc's
motion search to motion estimate search (fast). The picture
quality was just as great as before with dark areas showing no
blocking and the time to encode went from ~12hrs to ~10hrs.
I tested the above changes using 1 minute clips, but with
detail_min & max, I don't know what improvements in the
video to look for This will probably come together before
SansGrip gets back to testing. I know you'll have a Q-Matrix for
us to play with before then
This is very exciting.

-black prince
Reply With Quote
  #69  
12-25-2002, 03:44 PM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
Bad news, as for the prediction... The Encoding process is at 88% and right now it looks like it's gonna be over the predicted size by 28 MB..

I just noticed what I did wrong... no wait... I'm confused now... I used "Sampler ()" is that correct or do we need to use any values? sampler took 100 mini samples, but didn't we only use 60 ? I also divided through 25 instead of 24 because framerate is 25 for PAL? what did I do wrong w/ the predicition?
__________________
j3llyG0053
Reply With Quote
  #70  
12-25-2002, 04:04 PM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
Ok it's 21 MB over... That I can't even fit with overburning... Well I'll try again... Would just be good to know where my error was... any comments?
__________________
j3llyG0053
Reply With Quote
  #71  
12-25-2002, 04:26 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 black prince
I know you'll have a Q-Matrix for
us to play with before then
This is very exciting.

-black prince
You're 100% correct . A little later tonight, as I'm currently cranking out a new Q Matrix
Will let you know. I'm still running boocoo tests on low frequency domains right now.

-kwag
Reply With Quote
  #72  
12-25-2002, 04:35 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 Jellygoose
Ok it's 21 MB over... That I can't even fit with overburning... Well I'll try again... Would just be good to know where my error was... any comments?
Seems you didn't apply the formula correctly. It's this:
Predicted MPEG size = (( Total frames/MovieTimeInMinutes)/24) * (MPEG sample file size )

-kwag
Reply With Quote
  #73  
12-25-2002, 05:17 PM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
Quote:
Originally Posted by Jellygoose
Ok it's 21 MB over... That I can't even fit with overburning... Well I'll try again... Would just be good to know where my error was... any comments?
Seems you didn't apply the formula correctly. It's this:
Predicted MPEG size = (( Total frames/MovieTimeInMinutes)/24) * (MPEG sample file size )

-kwag
Does this apply to PAL too? We have 25 as framerate as you know...
__________________
j3llyG0053
Reply With Quote
  #74  
12-25-2002, 06:31 PM
apoc apoc is offline
Free Member
 
Join Date: Dec 2002
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Maybe something interesting :

The filesize is smaller with high quality motion search than estimate fast :

CQ_VBR=8 544x576 85 seconds

estimate fast : 8193968 bytes
high quality : 7955238 bytes

diff : 238730 bytes (2.91%)

here is the script :

LegalClip()

Crop(8, 74, 692, 42

BilinearResize(512, 320)
FluxSmooth()
Blockbuster( method="noise", detail_min=1, detail_max=10, variance=.5, seed=1 )
AddBorders(16,128,16,12

LegalClip()

with CQ=64

estimate fast : 8104839 bytes
high quality : 7924119 bytes

diff : 180720 bytes (2.2%)

--
apoc
Reply With Quote
  #75  
12-25-2002, 06:47 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 Jellygoose

Does this apply to PAL too? We have 25 as framerate as you know...
Yes. It applies to PAL too, because we're still creating a MAX frames per GOP of 24. So it's the same formula

-kwag
Reply With Quote
  #76  
12-25-2002, 07:04 PM
black prince black prince is offline
Free Member
 
Join Date: Jul 2002
Posts: 1,224
Thanks: 0
Thanked 0 Times in 0 Posts
Hey Kwag,

The file prediction forumla used to be:

Predicted MPEG size = (( Total frames/MovieTimeInMinutes)/24) * (MPEG sample file size * .98 )

Now it's this:

Predicted MPEG size = (( Total frames/MovieTimeInMinutes)/24) * (MPEG sample file size )

Which is correct

-black prince
Reply With Quote
  #77  
12-25-2002, 08:57 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 black prince
Hey Kwag,

The file prediction forumla used to be:

Predicted MPEG size = (( Total frames/MovieTimeInMinutes)/24) * (MPEG sample file size * .98 )

Now it's this:

Predicted MPEG size = (( Total frames/MovieTimeInMinutes)/24) * (MPEG sample file size )

Which is correct

-black prince
The second one. The prediction is now so accurate that you don't need the .98 multiplier
Predicted MPEG size = (( Total frames/MovieTimeInMinutes)/24) * MPEG sample file size

-kwag
Reply With Quote
  #78  
12-26-2002, 03:10 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
After hours of trials and trials with different matrixes, modification, changes and whatever, I have come to the conclussion that the DCT blocks can not be removed without damaging the quality of the picture. No matter how low I change the low frequency values that work with the matrix coefficients at the low frequency domain, the DCT blocks still show. I also confirmed SansGrip's findings that adding Blockbuster "Noise" just makes the quality worse. I believe there is a treshold point to use Blockbuster. If there is enough bit rate available for an encode, then we can use Blockbuster "noise" method to our advantage. If we're trying to squeeze a very long movie on a CD-R, then we're better off just using FluxSmooth filters but not Blockbuster, because the available bits are so scatered throughout the picture that trying to add the noise to kill the DCT blocks just lowers the overall quality of the picture. So that's it
Here's the final 704x480 sample. This is what will go into one CD-R with audio at 112Kbps from the movie K-19 which is 138 minutes long. Here's the script I used:

Code:
LoadPlugin("C:\encoding\MPEG2DEC.dll")
LoadPlugin("C:\encoding\fluxsmooth.dll")
LoadPlugin("C:\encoding\sampler.dll")
LoadPlugin("C:\encoding\legalclip.dll")
mpeg2source("K:\K19\VIDEO_TS\k19.d2v")
LegalClip()
BilinearResize(672,336,0,0,720,480)
FluxSmooth()
AddBorders(16,72,16,72)
LegalClip()
And here's a 33 second sample, cut out of the ~11MB prediction sample:
http://www.kvcd.net/final.m1v

Enjoy ,
-kwag
Reply With Quote
  #79  
12-26-2002, 04:50 AM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
mmmm I don't know kwag... I think here's still room to play around, with YOUR matrix. I encoded LOTR now, with "High Quality" Motion Search, and the quality is even better than the last sample! I'll upload it later today.

kwag, try this script for blockbuster with cq mode and your matrix... I'm sure it will give you better results...

Blockbuster( method="noise", detail_min=1, detail_max=10, variance=1, seed=1 )
__________________
j3llyG0053
Reply With Quote
  #80  
12-26-2002, 06:01 AM
GFR GFR is offline
Free Member
 
Join Date: May 2002
Posts: 438
Thanks: 0
Thanked 0 Times in 0 Posts
I'll try to do some tests with anime - maybe (CQ + HQ search) gives less mosquitoes...
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Interesting results with YlevelsS supermule Avisynth Scripting 2 08-06-2006 11:59 PM
Avisynth: Interesting ASharp phenomenon... audioslave Avisynth Scripting 12 10-23-2003 06:36 AM
Interesting info about the Luminance Level in CCE digitalize Video Encoding and Conversion 0 04-28-2003 12:29 PM
A couple of interesting links.. kwag Off-topic Lounge 0 12-31-2002 03:47 PM
KVCD: Interesting poll found kwag Video Encoding and Conversion 2 12-31-2002 02:44 AM




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