digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   CQ vs. CQ_VBR ... VERY INTERESTING... (http://www.digitalfaq.com/archives/avisynth/1910-cq-vs-cqvbr.html)

black prince 01-12-2003 12:34 PM

@Kwag,

I don't know if tweaking GOP would really solve Gibbs. You sure are
making great progress with Flashing. Gibbs has been a problem
with old and new GOP's. I have an a crazy idea, what if,
SansGrip or someone re-encoded a high resolution KVCD mpg-1 using
UnDot to see if there was an improvement. :idea: Just a test clip would
satisify the question of improving Gibbs. :?: UnDot requires avisynth
2.5 alpha. Right now there is no proactive filter that could do this,
but suppose the way is to re-encode :?:

-black prince

apoc 01-12-2003 12:46 PM

Hi all

My 2 cents ;) :

Movie : Panic Room 161075 frames, 6443 sec

old matrix : http://apoc.chez.tiscali.fr/panic-ro...ix-cq-79.8.mpg
new matrix : http://apoc.chez.tiscali.fr/panic-ro...trix-cq-79.mpg

CQ for 1 CD.

This film is pretty hard to compress : lot of DCT blocks (look at the wall)

--
apoc

black prince 01-12-2003 01:14 PM

@apoc,

I encoded "Panic Room" and found the DVD source was poor to
begin with :( Then of course, the KVCD backup looked even worst.
Dark scenes on the DVD had artifacts, blockiness, etc. I didn't
expect the backup to look better :?

-black prince

kwag 01-12-2003 01:22 PM

Quote:

Originally Posted by black prince
@Kwag,

I don't know if tweaking GOP would really solve Gibbs.

Probably not. I'm just trying to find the optimal point where there's no more flashing, while keeping the minimal Gibbs that we see on the 1-12-1-1-24. Other that that, there's not much we can do, as everything else is internal to the encoder.

-kwag

SansGrip 01-12-2003 01:24 PM

Quote:

Originally Posted by Boulder
Would experimenting with MPEG-2 do any good as SansGrip said the I-frames would be less blocky? I know it produces bigger files than MPEG-1 but as we've all seen here, it's only a matter of time before the filesize gets shrunk down :idea:

I've not played much with MPEG-2 short of noticing the big difference between I-frames. I did a few tests and determined that MPEG-1 is better for bitrates ~2500, but this is of course before I discovered KVCD ;).

SansGrip 01-12-2003 01:25 PM

Quote:

Originally Posted by kwag
[Really, I hope we freeze that matrix now, and that will be the new KVCD v2 Q. Matrix.

Then freeze it. It's definitely better than the old one, and declaring it v2 will free up time (and mental energy ;)) for other things...

SansGrip 01-12-2003 01:26 PM

Quote:

Originally Posted by black prince
I have an a crazy idea, what if, SansGrip or someone re-encoded a high resolution KVCD mpg-1 using UnDot to see if there was an improvement. :idea:

I don't think there would be for the simple reason that there's no Gibbs in the source, but there is in the final encode. Even if you could remove all traces of Gibbs with UnDot, when you re-encode that you'll just end up with Gibbs again.

kwag 01-12-2003 01:34 PM

@All,

I have a feeling that when I get the final GOP, I'm going to be doing a small tweak on the high frequency end of the matrix. I think this will be the ticket to kill the Gibbs, just like the low frequency notch killed some of the low frequency DCT blocks :wink:.

-kwag

black prince 01-12-2003 02:28 PM

@SansGrip,

SansGrip wrote:
Quote:

I don't think there would be for the simple reason that there's no Gibbs in the source, but there is in the final encode. Even if you could remove all traces of Gibbs with UnDot, when you re-encode that you'll just end up with Gibbs again.
Then Gibbs is a result of Tmpgenc motion search? That makes sense.
So the only way to really improve and/or remove Gibbs is to correct
Tmpgenc encoder. Hey Frankencoder, where are you!!!!! :)

-black prince

Boulder 01-12-2003 03:09 PM

I don't think it's the motion search that creates Gibbs as it's usually seen in high-contrast areas like permanent subtitles etc. There probably is no way to a completely Gibbs-free encoding result, all we can do is try making it less noticable :?:

SansGrip 01-12-2003 03:50 PM

Quote:

Originally Posted by Boulder
There probably is no way to a completely Gibbs-free encoding result, all we can do is try making it less noticable :?:

Yep. You can see the Gibbs effect even on very high-quality JPEG files if you look closely enough. It's a consequence of the encoding method, and no amount of improvement to the encoder will get rid of it.

kwag 01-12-2003 05:01 PM

The best I've been able to do with the GOP without sacrificing compression and eliminating "almost all" flashing is 1-24-2-1-24.
One B, too much flashing.
Two Bs, flashing almost (if any!) gone.
Three B's flashing barely(almost static), but artifacts start to appear.
Four B's, zero flashing, artifacts start to increase.

I believe the "Happy medium" is 2 B's, with the GOP 1-XXXX-2-1-24 where xxxx is 24 or above, because last value is what dictates size of GOP. So I'll set it to the usual "5823" :wink:

Give it a try guys. There's not that much more we can do here, but I think we've done quite a lot :D .
I'm heading to the matrix now one more time to look at the high frequencies :wink:

Here's the latest test sample with 1-24-2-1-24: http://www.kvcd.net/1-24-2-1-24.mpg
Compare that to the old reference sample http://www.kvcd.net/kpax-newgop-newmat.mpg

-kwag

akrein62 01-12-2003 05:15 PM

Tell me if I have this right for the current "state-of-the-art":

GOP: 1-5823-2-1-24
BETA-1a notch matrix
CQ

am I missing something?

Andy

kwag 01-12-2003 05:19 PM

Quote:

Originally Posted by akrein62
Tell me if I have this right for the current "state-of-the-art":

GOP: 1-5823-2-1-24
BETA-1a notch matrix
CQ

am I missing something?

Andy

You got it :D
Try it out :wink:

-kwag

KingTuk 01-12-2003 05:23 PM

Let's put the template up to for everyone to download

:D

kwag 01-12-2003 05:37 PM

Quote:

Originally Posted by KingTuk
Let's put the template up to for everyone to download

:D

Only when everyone is happy and we all agree that the changes are positive :wink:. Need more testing :D . Feedback welcome. Please make small tests ( 15 seconds ) and compare samples with both GOPs. PLEASE, make sure that both samples are the same size before evaluation.

-kwag

jamesp 01-12-2003 06:29 PM

Could you put it under a beta section or something, just so we can verify that everyone is using the same teplate?

Jim

Quote:

Originally Posted by kwag
Quote:

Originally Posted by KingTuk
Let's put the template up to for everyone to download

:D

Only when everyone is happy and we all agree that the changes are positive :wink:. Need more testing :D . Feedback welcome. Please make small tests ( 15 seconds ) and compare samples with both GOPs. PLEASE, make sure that both samples are the same size before evaluation.

-kwag


kwag 01-12-2003 06:38 PM

Quote:

Originally Posted by jamesp
Could you put it under a beta section or something, just so we can verify that everyone is using the same teplate?

Sure Jim :D,
Here you go!: http://www.kvcd.net/KVCD-MASTER-BETA...-24-2-1-24.mcf

-kwag

black prince 01-12-2003 09:56 PM

@Kwag,

I tested 704x480, 528x480, 352x480, 352x240 using GOP 1-24-2-1-24,
Q-Matrix Notch Beta-1a, CQ 80 for all. I didn't create equal file size, since
I just wanted to see if Flashing had been effected by the new GOP. I did
however tried 528x480 CQ_VBR and I'll discuss that later. The results
were astonishing. Flashing disappeared in all the tests. Gibbs was
still noticable up close, but no worst than before with old GOP.

Now to 528x480 CQ_VBR. There was noticable Flashing. Gibbs was
slightly worst. I don't know if I want to compare CQ vs CQ_VBR
with the new GOP, since CQ would win by a mile. :D

-black prince

kwag 01-12-2003 10:25 PM

Quote:

Originally Posted by black prince
Now to 528x480 CQ_VBR. There was noticable Flashing. Gibbs was
slightly worst. I don't know if I want to compare CQ vs CQ_VBR
with the new GOP, since CQ would win by a mile. :D

-black prince

:mrgreen: I agree. I just did a test with K-Pax at 352x240, and I'm up to CQ=100 for a one CD target (min=300,MAX=1,800) and I still can't meet the 11.68MB required :mrgreen:. The sample size is 11.131MB 8O . Look at K-Pax with the new matrix and GOP: http://www.kvcd.net/k-pax-352x240.mpg
I did this sample without blocks overscan, so it will look ok in WMP.

I think CQ with the latest changes is the best mode, even for 352x240 :D
Anyone else doing more tests :?: Feedback please :!: Good or bad 8)

-kwag


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