Avisynth for Underwater Scenes?
Hi everybody!
Encoded a movie yesterday, and watched it on my standalone! Movie was "Below" (kind of a submarine mystery thriller) with some underwater scenes... Well the movie looked fantastic, except for the underwater scenes! :evil: Artifacts and blocks all over the place! It was actually hard to watch, because you just didn't know what's happening because of the artifacts! Has anyone had those problems with underwater scenes yet, and how did you try to solve them! I already increased CQ to 90 on those scenes, but artifacts are still showing! Later today I post some screenshots and maybe a sample! |
Hi Jellygoose,
How do the underwater scenes look on the original source :?: If there are any artifacts visible, then they will look worse on the recompression :!: -kwag |
Did you try cranking the max bitrate higher and then using CQ90?
|
Hi all!!
Ok, here we go! I uploaded a small sample, where you can see how these underwater scenes look like. This scene is taken out of my encode, and you can see how the rest of the movie actually looks pretty good. Here's the sample: http://www.angelfire.com/film/jellygoose/Underwater.m1v There are not a whole lot of these scnes, so i actually might get away by using the Force Picture Settings of TMPGEnc... I never tried this before, but it might really help with those scenes, what do you think? :roll: Make all frames of these I-Pictures? Or every second frame of these scenes? :roll: @kwag: The Original picture has a few artifacts on these scenes, you're right! however in those pictures there are lots of bubbles and mud, so it's hard for me (and probably also for the encoder) to distinguish those from noise and artifacts! I think that's what's leading to those results... @boulder: Tried it with max. Bitrate 10.000 and CQ 100... Picture was better, but still blocky with artifacts! -Andy |
Jell,
i always have problems in scenes with water(or underwater),(big flames)fire and smoke(like in musical clips)! i try everything but can't solve. seems that this kind of scenes need big CQs and high(max)bitrate! my tese(maybe wrong or stup): this scenes are always in moviments and have dimentional(2d or 3d) variations! i was clear? :? |
I totally understand you jorel! I know you cannot make a perfect copy of these scenes, however we might get it better! It's some work, but maybe with these "Force Picture settings", we can get it right!
|
No way to download your exampe m1v :cry:
But it would be more interesting to see the source! But if your source does contain artefacts as performing also on Dvix sources you should do a preprocessing by adding ... BlindPP(CPU=4) ATC(xxxxxxx) I added these lines on top of the MA next to the Mpeg2source last Week when when I tried to reencode a very bad quality DVD d2v stream. Code:
nf =* 0 Code:
ATC(xxxxx) Code:
TemporalCleaner(round(6+nf), round(13+nf)) So in your case the best way would be a specific "selected frame area "if"-routine" where these heavyer filters do perform and where on the other areas an "else" routine would call a lighter filtering part in the script ;-) |
Sample should work now... :oops:
|
For what I can see, you problem is a typical DCT blocks problem that you can reduce with a blockbuster line at the end of your script :
(just before the borders) Code:
Blockbuster(method="noise",detail_min=1,detail_max=10,variance=0.3,seed=5623) |
Sorry, still Angelfire/Error when trying to download or watching the m1v in the browser ...
|
:evil: Angelfire just deleted my account because of "File Storage Only"... Well Dialhot could actually see the sample, and I already considered using the Blockbuster Filter, but I always thought that Blockbuster has no effect on Encodes with a Resolution above 352xxxx... I think SansGrip himself talked about that when he first tested the filter...
|
I didn't remember that so I did an encoding in SVCD resolution with and without blockbuster line and I'm quite sure the effect wasn't only in my mind :-). Try it.
|
:D Worked like a charm Dialhot! Those scenes look far more natural with that blockbuster line! Thanks a lot to you and incredible!
|
Try the Script I posted above with Blockbuster added (before adding the borders).
With this yesterday I compressed Matrix reloaded (even it got a good quality) fitting one CDr80 at 480x576 inkl. 2 audio Channels (112kbit)! at CQ 61, ... picture is really nice! No Blocks, clear surfaces and preserved details. 8O Success cause the movie contains a very lot of black/dark parts and the fast moving scenes where handled by the heavier working MA routine (multiplicator at 4 and Threshold set higher). On the other hand ... no way to get a right prediction using CQ matic, so I used TOK set to numbers of samples=2 and SampleLenght=75 (PAL). |
Does it matter what number I put in the "seed" parameter for BlockBuster? From what I recall this parameter only tells BlockBuster to put the same amout of noise in each frame. Is this correct?
|
The "seed" is just the starting point for the randomizer. You can choose whatever you want but if you have two BB lines in your script, you should take a different seed for each one.
|
Thanks again! :D
|
Hi incredible!!
I'd love to try your script, but ATC always gives me a corrupt output (whole image is green)... :roll: Downloaded the newest version of the filter... Any ideas? |
Do you work in YV12 ? I don't have any problem but I never work in YUY2.
|
Source is DVD and I don't convert to YUY2 in the script, so I suppose yes I do work in YV12...
|
One question:
In what order should I put the filters if I use both BlockBuster and DCTFilter? Now I use these lines right above AddBorders Quote:
|
@ Jellygoose
Whatch out what kind of Output you set in DVD2AVI.... long time ago I don't remeber why :wink: I started to do some tests with DVD2AVI and set the output to RGB24 instead to YUV .... and suddenly ... well you can assume (even without avisynth). On the other Hand .... Just write a simple Mpeg2Source(.........) Script following a ... info() .... line This will tell you exactly which colorspace is served as meal to Avisynth and so tell us whats the string output. @ Audioslave I everytime add the DCT line at the end cause this is the last point and thats it what the encoder hast to handle by his mpeg encoding mechanism. But be shure to put the Blockbuster line BEFORE the Addborders or Letterboxing line, cause if not the black bars will be "sprayed" by the noise generator of Blockbuster to ... this makes no sense and ALSO the black border parts won't be compatibel for macroblock refered space safed encoding anymore. (I hope I explained this understandable) :wink: |
@incredible
Okay. Then I can keep my script as it is, right? |
@ incredible & dialhot :
In DVD2AVI it is set to YUV not RGB and Info() tells me Colorspace is YV12... Still get the green picture with ATC, even on a blank script... |
Do you have FFDShow in use when you watch your video ? It caused me some strange "everything is green" effects also.
You can you tell me how and when you see the green screen with ATC ? |
@ JellyGoose
Also do one try NOT to use Gripfit but the normal BicubicResize(.......) way given by FitCD or Moviestacker and therefore using Addborders(......) instead of Gripborders(). @ Audioslave please show us your script as a whole .... |
:lol:
Thanks guys, I got it working! It was indeed GripFit that was causing the green screen! So I'll try your script at once incredible! What settings are you using for ATC? |
@ incredible
How on earth were you able to get such a high CQ for "Matrix Reloaded"??? 8O Could you post your complete script please? I tried the script you posted earlier in this topic but my CQ landed on 50,82 :!: That's wierd if you consider I used only one audio track of 128kbps. From what I read I understand that you got a CQ above 60 and with 2 audio tracks of 112kbps each? Another thing is that even though my CQ was so low the muxed video size got as big as 816 MB. Would be grateful if you could post the exact script you used for this movie cause I just don't get how you pulled it off. :wink: |
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.