Removing DCTs in the source
Hello everyone,
I am trying to get rid or at least reduce the DCT blocks in my DivX sources. I am doing KDVD conversions. Looks like the only big problem of a good DivX source (2 CDs). I have thought of two ways to solve this: 1-Filter the DCTs and add blockbuster noise. I have tried this approach with the following script: BlindPP() MergeChroma(blur(1.58)) MergeLuma(blur(0.05)) Convolution3D(preset="movieLQ") BlockBuster(method="noise", variance=1, seed=1 ) GripCrop(720, 480, overscan=1, source_anamorphic=false,dest_anamorphic=false) GripSize(resizer="BicubicResize") undot() GripBorders() I found this script somewhere in this forum. The DCTs got a little less noticiable, but not enough to me. 2-To the second approach I thought is why DCT blocks are placed? Seems to me that this happens because the encoder thinks that the area of the DCT block is dark, so we won't see it anyway. And this is true in the computer monitor, but TV has a lot more brightness and contrast and... The DCTs get very noticeable. This is so true, that when in the morning I open the window and watch my movies, the DCTs block seem to be gone... But at night, specially if the lights are off and just the TV is on, the become visible everywhere. It also depends on the TV, my father's old sanyo 29' non-flat TV shows a LOT less DCTs than my own Sony Wega 29'. So if we could make the dark areas darker, but keeping the bright ones bright, maybe this could be solved, without killing compressibility. But how can I do this, I have no idea... But I really want to try this out, anyone knows how? Or has a better idea to solve this? I know the information from the area is gone forever, but maybe it could be masked someway... :) []'s Vmesquita |
@vmesquita you might like to try this snippet to process divx/xvid sources. Add AVISource and resize lines as required.
Code:
... |
Thanks, girv!
I'll try that and post the results. []'s Vmesquita |
Depending on your sources, you might get better results with
the following tweaks: Change ATC to ATC(2,3,4,0.5,false) ...or... Change ATC to ATC(2,3,5,0.5,false) ...and/or... Change ASharp to ASharp(2,3) Also I've found that using Kwag's motion adaptive stuff with divx sources causes excessive softening of the picture, to my eyes at least. I avoid it myself but give it a try if you like. |
I just tested with my worst case scenario (Panic Room, a DivX 3.11 1-CD rip) and it did improve the DCTs. Some were masked by noise, and some became static and stopped dancing, which I consider the most annoyng effet. The movie also got a lot more sharper (seems that DivX encoding tend to soft things).
Seems to me that if I did a good quality 2 CD rip, probably it would get near perfect! I'll test again as soom as possible using a 2 CD rip and post the results. I have to mention that this filter combination is also very fast. Using just BlindPP() CCE gives me the speed of 1.13 realtime, using the script it only drops to 0.92 realtime! I don't use MA since it takes a loooong time with DivX stuff... []'s Vmesquita |
Hello vmesquita,
Can you post the full script you used for that worst case scenario. What resizer did you use and which parameters for atc? Thanx in advance |
I used this variation of Girv script:
Blockbuster(method="noise",detail_min=1,detail_max =8,variance=0.3,seed=5823) ATC(2,3,5,0.5,false) TemporalSoften(2,7,7,3,2) ASharp(2,3) Blockbuster(method="noise",detail_min=1,detail_max =10,variance=0.5,seed=5823) Of course this won't do miracles but helped a lot! []'s Vmesquita |
Wow this sounds great I can't wait to give it a try! So is this all the filtering you guys do? You don't incorporate the MA script in there at all? Will this work at 528x480, because I read that blockbuster is ineffective at that resolution or higher in CQ mode. And finally are you using bicubic resizing? Thanks!
|
Quote:
Quote:
Quote:
|
Wow Girv your script really does work wonders on my divx files! The sharpness is great and the DCT blocks are significantly reduced. I did a test by removing the second BB line and comparing the two video files in virtualdub but the one with both lines was clearly better at reducing the DCT blocks, even at 528x480! Are there any suggested tweaks to the BB lines to try and filter out more of the blocks? Thanks again!
|
Quote:
Quote:
PM me a couple of screenshots or huffy avi's so I can see the type of problems you're left with. Maybe we'll come up with something! |
Actually I am encoding in tmpgenc first, then viewing the sample m1v in virtualdub. Comparing screenshots at 2x view mode helps to show any DCT blocks left behind. I seem to remember old 2.0x scripts where DCT blocks were completely eliminated, replaced by grainy "noise" which looked more natural than dancing blocks. Hopefully we can get others in on this little project since it doesn't look like Kwag and the gang are supporting avi's for now! :D
|
I am really interested in this! But what scripts are you talking about? We can always use 2.0x plugins in 2.5 using LoadPluginEx.dll (not very fast anyway, but works).
[]'s Vmesquita |
Quote:
Quote:
Quote:
Quote:
|
oh btw girv, what are you setting your min/max bitrate in tmpgenc? I was wondering if I should go back to 300/2500 since this script is not MA.
|
You can do that. I'm currently making a conversion of a 42 min video that I plan to put with 3 of its brother on one CD (that means, 200 Mo only for each, or if you prefer 160 Min on on CD) using VCD res (352*288) and 64/2000 as min/max setting : the CQ is not determinated yet but will be near 77 !
I modified a little the original script btw, and that is the one I use : Code:
Undot() |
Cool so would you use this new script for higher res like 528x480? Also do you not find that lancoz resize creates strange artifacts or mosquito noise? Thanks
|
@DialHot
Great! I'll test your modified script agains my worst case scenario (Divx 3.11 1-CD rip of panic room) to see the results! @J-Wo I am testing with 720x480, so I guess you can! I don't have artifacts with lanczos unless I am doing a big horizontal resize (like 640x480 to 352x480) []'s Vmesquita |
Quote:
For lanczos : no I don't find this. I always prefer using Lanczos alone rather than asharp+bilinear. I have a sample I use for all my test and Lanczos is the only one than preserve the "2-day beard" of one of the character. All others litteraly shave him :-) |
when i did monsters sa in december with lanczos i got "moving ants".
then was needed to encode again with bicubic,unfilter and temporalsmoother...i didn't knew asharp in december. i stop to use lanczos. i have the 2 encodeds kvcds with and without lanczos and the second(without lanczos) is really best... in the legends and edges i got less "moving ants"..seems "staircases". this was encoded as 320x240 mpeg1... this could be the reason of this strange artefacts? if i choose more resize like 480x480 give less problems? :? |
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.