Dark scenes unnatural, surfaces producing a rippling effect ?
There is a thread in the Optimal Scripts forum dealing with "unnatural" surfaces producing a rippling effect using the old MA script. Dialhot made some suggestions about using the "new" Deen 1.0 beta (which has actually been around since August 03 and linked on http://www.avisynth.org/warpenterprises/). I PM'd him about a script using this new deen for AVI sources and here's what he sent me:
Code:
AviSource("yourfile.avi",false) Here is a short clip of the scene in question. I invite you all to test them out for yourself and if someone can come up with a good alternative script PLEASE let me know!!! Thanks! :D http://qlink.queensu.ca/~7jw6/chunk_1.avi |
Re: Dark scenes
Quote:
Quote:
|
Hi Dialhot. Yes I know the site was down but I accessed a cached version while doing a google search and the link for deen was dated 8-03. I did add the second blockbuster line to v3 and v4 but i still think v1 handles these dark scenes better (it already includes two blockbuster lines). but as I said there is some detail lost.
On another note, I gave Mencode-ME a try using the predefined AVI filtering and it did an amazing job in these dark scenes. I find there is always blockiness no matter what incarnation of your avi optimal script I try, but with mencoder there is a general "spray" of pixelation. Not too sure how to describe it... but the problem with mencoder is there is a definite loss in sharpness and detail. Perhaps you could give it a try on the sample I included and see for yourself what I mean? Hoping you might be able to help... thanks! |
Quote:
Quote:
|
J-Wo: I saw the sample clip that you put on. There doesn't appear to be any "dancing dark blue blotches" as you mentioned, but there is definetly a "graininess" to your video. Other than that i can't see anything wrong with it.
|
The sample clip is the offending dark scene from the ORIGINAL avi file. So what you need to do is try v3 or v4 script to see the "dancing blue blotches". I used CCE for encoding at Q=15, min/max bitrate = 64/4500, quantizer charactistic = 17. I am encoding for KDVD, so I compiled using DVD-Lab Pro beta 4. Here is an example of the v4 script I used:
Code:
AviSource("E:\Movies\chunk_1.avi",false) |
Misty Scenes
I am using DIKO which essentially is using the Dialhotv4 avs script.
I have similar "wet-paint" problem when converting a thriller movie AVI clip. The moive was converted in CCE using Max Bitrate= 7000 bps, QC=25 and Q Factor=1. The AVI was an xvid with bitrate=900kps. The output KDVD Video stream was 2.5GB for 80 mins. The movie has a lot of dark and misty scenes and the result is that all the details and texture of hairs and actors' faces become wet-paint. I think it is a consequence of over-filtering. I thought Deen() was a solution but from this thread it seems not. :( Will removing the temporal dimension totally solve this wet-paint problem? Could anyone suggest filters/scripts that can deal better with low bitrate and dark scenes. Or parameters in CCE that can improve the encoding. |
Re: Misty Scenes
Quote:
As told in private to J-Who you can also try with temporalcleaner insteed of temporalsoften. I didn't have tilme to do some tests on his current problem yet. Quote:
|
I've been using a script like this for AVI sources and have had no problems:
Code:
AviSource("path\clip.avi") |
thanks for the suggestions boulder, i'll give them a try. could you tell me a bit more about codec postprocessing? I'm pretty sure I had all mine turned off. Which ones do you enable and at what settings please? Thanks!
|
Thank U Dialhot,
I just found the following in CCE manaul which may help to reduce the wet-paint effect: Quote:
|
J-Wo,
I set the postprocessing in DivX at max deblocking, no deringing. Automatic post-proc adjust, both disabled. Film effect disabled. In quality settings, YUV extended mode and Disable logo ticked, others unticked. The DivX team released an updated version with some bugfixes in the decoder some time ago but they didn't change the version number. I think the latest one is v5.1.1 build 1031. In XviD (Koepi's v1.0.1) I have deblocking for Y and UV ticked and output colorspace set as YV12. All the others are not ticked. In CCE I've got 28 as the quantizer characteristics. |
great suggestions boulder, I'll give them a try!
In your script, I was wondering if the last two lines are needed. For some reason I have never needed a converttoyuy2() or converttoyv12() at the end of my script using CCE, I have no idea why! If I can avoid colorspace conversions, I should if at all possible right? And finally is the limiter() line necessary? I've stopped using that one a long time ago based on some previous suggestions. Just wondering why you include it. Thanks! |
Quote:
With CCE 2.6 and above, the line is no more necessary. |
I've found out that CCE still needs YUY2 data, it's just that some codec does the YV12->YUY2 conversion - most likely XviD. I don't trust that so I do the conversion in the script. You can check the registry to find out which codec does the conversion, it can be found at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32 . See if there's a string vidc.yv12 and what the value is, I've got xvidvfw.dll. On a side note, I also edited vidc.yuy2 and placed huffyuv.dll there as from what I know, msyuv.dll is a bit buggy.
What comes to Limiter(), I've never had any problems. |
Okay, I did a bit of testing and found that I actually get the best results with the v2 script (I previously might have mentioned v1 but I think I was wrong). Surfaces such as skies, fog, walls etc appear grainy and pixelated, which I find actually GOOD. With v2 the graininess is somewhat stable which is another good thing. With all other incarnations of avi scripts, instead of a grainy/pixelated surface I see largish blocks of colour or a rippling effect that dances around a bit, distracting the eye. I also don't like to enable post-processing in divx/xvid codec, I find the result is a little "overprocessed" and these flat surfaces don't look as good.
I'm trying to do a QC test in CCE to find that qc value is the best. To be honest I could tell a whole lot of difference from qc=10 to qc=28, except that the higher qc goes the more compression you get. Anyone got some suggestions? here's the v2 script I'm using right now Code:
AviSource("E:\Movies\test.avi",false) |
Hi J-wo
I am also working hard to eliminate the wet-paint effect. I did some search and found that contouring noise & DCT occurs when the encoder compresses too much or the area has too few details. One rescue is to add noise to the scene to increase the details. This coincides with your findings that V1 & V2 work better because in their scripts the BLOCKBUSTER line has max_detail=8, which add noises more generally to the frame. The V4 version has max_detail=3, making less areas are subjected to BLOCKBUSTER. You can also add dithered noise in CCE as there is a "dither quantization" parameter. Maybe Dialhot can advise whether adding Quote:
Quote:
BTW I did some experience this morining and was much puzzled by the result. I used a script which essentially contained only resize up (GRIPFIT and GRIPCROP) and viewed the avs in VDub, prominent wet-paint effect was already very visible. The wet-paint was not there when I put the original avi in VDub. The only difference was resize. I knew that my clip was of low bitrate (around 900kps xvid) but this result was not expected as I assumed that the wet-paint was coming from other filters. Now it wasn't the case :oops: Can someone confirm resize up will always introduce contouring noise? Will different resize methods matter? :roll: |
Quote:
Quote:
Quote:
What resizer did you use in your test when you see that this is the possible source of the painting effect ? |
Quote:
I'm hoping that thru my feedback you might be able to provide some suggestions to help tweak v2 a little bit, or perhaps make some updates to your v4 script. Thanks! |
Quote:
Can you test this "old" V2 but with "Deen()" insteed of the ATC line ? (I'm still talking about the new deen, the one from august 2003). |
I tested the script line by line and found the cause of my wet-paint effect was the ConvertToYUY2.
I followed the suggestion of Boulder's here to change to xvidvfw.dll and huffyuv.dll for YV12 and YUY but the result was the same. I am using CCE 2.67 SP, which according to some reply here, accepts only YUY2 colorspace. DIKO generates and requires YV12 at the beginning. Converting to YUY2 leads to wet-paint. Does it mean that I am stuck :x I am curious why nobody else encounter this problem when changing from YV12->YUY2 :?: |
Quote:
Quote:
|
Quote:
So currently, here is my "modified" V4 script. Dialhot if you got any more suggestions please let me know!: Code:
BlindPP(cpu=4) |
Quote:
|
:lol:
Remove the "limiter" and you have the script I personally use for all my jobs since I discovered the new Deen (5 month ago perhaps ?). Okay, I never spoke about that, sorry :-p . (note : I never had problem with the "official" V4 so a modification wasn't so urgent). |
HAhaha okay, that's a coincidence. Could you please tell me why you don't use Limiter but others do? What are the pros/cons? Thanx.
edit: oh wait, never mind, found it! :D http://www.kvcd.net/forum/viewtopic.php?t=9994 I did find though that compression was better with limiter() at the end... so with that being said, perhaps it does have some merit? :?: |
Quote:
At first, the goal of limiter was to restraint the luma in the range [16-235] because the TV set are supposed to be hurted by extrem values (even if that is not true since years but habits are habits...). THIS is useless : CCE, Tmpgenc, Mainconcept... all the encoder we use already clip the luma in this range by default ! So no need to have a filter to do that. After a long time, people started to agree with that and limiter was removed form the optimal script for instance. NOW the limiter filter is saw as an way to reduce the file size, as many other filter we use in fact, AND it was reintroduced in the script for this purpose. Just like you do. But I'm not sure it's so harmless on the result (the "dark green blacks" phenomena is probably due to this limiter...) |
excellent answer my friend. I'm giving the modified V4 script with Deen() a try now. Please keep us posted on any suggestions/update you come up with! They are no doubt invaluable to us all.
|
reply
well, well, :D
thead very interesting.... I will use yours script if I can..... And I would to know when to use the second blokbuster in the script. thank you very much.. byby |
Quote:
|
@zagor
Hum... it's hard to say exactly when. The problem is that you need to doa test for that. In fact, personally, as I always use CQMatic to calculate the CQ, I look at the sample that it left on the disk at the end of its work. Then I look into the dark areas to see if there is "dancing" block in the flat areas (these are the so called "DCT blocks"). If there is, I do again the process with the second line. @boulder For some people they appear dark green, and I never understood why. Probably a matter of wrong gain on the Green component in their TV. (you can also change the gain indivually for each color on your PC monitor, you see what I mean ?). For the borders, that's true that when we tried to see if tmgpenc does clip or scale of the luma into the range [16-235] we discovered that all internal commands of avisynth ouptut in that range ! Impossible to generate a true dark (luma=0) even with the command "blackclip" :!: |
Quote:
Quote:
|
reply
Quote:
deen.dll 245.760 byte In the readme file is call: (Deen 1.0 beta 1) thanks by |
This is the correct one.
|
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.