digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Very low CQ for PAL video (http://www.digitalfaq.com/archives/avisynth/6162-avisynth-cq-pal.html)

audioslave 10-17-2003 05:25 PM

Avisynth: Very low CQ for PAL video
 
The movie is 104 min long and contains very few "action" scenes. Still I can't get the CQ past 56! I usually encode action movies about this length with a CQ around 70.
There is something funny about the DVD though. The picture looks almost like a bad VCD (note: VCD NOT KVCD :wink: ) when you look closely. Some blocks in the background and stuff like that.
Is there anything I can do about it? Filter suggestions please. I don't really feel like putting this (short) movie on two CD-R's.

Boulder 10-17-2003 05:31 PM

You could try turning on the postprocessing settings in MPEG2DEC3.

MPEG2Source("path\video.d2v",cpu=4) will remove at least some of the blocks. If the source is interlaced, you'll have to use MPEG2Source("path\video.d2v",cpu=4,ipp=true).

muhali3 10-17-2003 05:37 PM

try this with your own values and whatever you want to do.

AviSource("C:\unzipped\movies/resident evil.avi", false)
BlindPP(CPU=4)
LanczosResize(352, 334, 4, 0, 568, 304)
AddBorders(8, 73, 8, 73)
Undot()
deen("a3d",1,12,14)
ATC(2,3,5,0.5,false)
TemporalSoften(2,7,7,3,2)
MergeChroma(blur(1.5))
Asharp(1,4)
DCTFilter(1,1,1,1,1,1,0.5,0)

Resident Evil is 93mins. long and i got a CQ of 77 with that. so you can just try it out if you want, but if you don't want to use that, just use BlindPP then, because BlindPP gets rid of alot of DCT Blocks. :D

Boulder 10-17-2003 05:50 PM

No need to use BlindPP for DVD sources. The built-in postprocessing in MPEG2Source does a better job with them.

audioslave 10-17-2003 05:57 PM

Thanks guys!
I will start by trying Boulder's suggestion then I will try muhali3's suggestion. BTW is BlindPP a plugin or an AviSynth function? Do I have to specify the BlindPP parameters if I have an interlaced source?

Dialhot 10-17-2003 06:02 PM

Quote:

Originally Posted by Boulder
No need to use BlindPP for DVD sources. The built-in postprocessing in MPEG2Source does a better job with them.

As blindPP is included in mpeg2dec3 decoder, I guess that this is the same to add "blindPP" or mpeg2source( "cpu=4" )

The author of mpeg2dec3 simply wanted to provided a mean to make pp even on non mpeg2 source. But do not expect him to code two different procedures for that !

audioslave 10-17-2003 06:03 PM

Sorry Boulder. I wrote my reply before I got to read your last post...
OK, I will go with your suggestion Boulder. The other cpu settings, can they produce even better results or do your recommend always using cpu=4 DVD sources?

audioslave 10-17-2003 06:06 PM

@Dialhot.
Hi there. Testing your script right now :wink: Looking good so far :D

Boulder 10-17-2003 06:12 PM

Quote:

Originally Posted by Dialhot
Quote:

Originally Posted by Boulder
No need to use BlindPP for DVD sources. The built-in postprocessing in MPEG2Source does a better job with them.

As blindPP is included in mpeg2dec3 decoder, I guess that this is the same to add "blindPP" or mpeg2source( "cpu=4" )

The author of mpeg2dec3 simply wanted to provided a mean to make pp even on non mpeg2 source. But do not expect him to code two different procedures for that !

I based my argument on this:

(from the MPEG2DEC3.dll docs)
Code:

BlindPP(clip, int "quant", int "cpu", str "cpu2", bool "iPP", int "moderate_h", int "moderate_v")

To Deblock and Dering on any kind of DCT-encoded source.
Of course, less accurate than decoder intergrated PP, but still very efficient
need YV12 input.

Probably he meant a PP by the DivX or XviD codec..not sure though :?

audioslave 10-17-2003 06:16 PM

BTW how does this "deblocking" effect the image quality? Except for getting rid of some of the blocks of course :?

audioslave 10-17-2003 07:40 PM

Okay, the testing is now complete (I used prediction in CQMatic) and here are the results:

Script WITHOUT 'cpu=4, iPP=true' : CQ56,27
Script WITH 'cpu=4, iPP=true' : CQ56,26?!

The "clean" script without "cpu=4, iPP=true" got the highest CQ!? Sounds strange - but I double checked and it's true! The script with "cpu & iPP" has a cleaner look though. But still...
Is there any filter(s) I can use to clean up the source even more? I know of VagueDenoiser but I think that filter is only for getting rid of noise. Would it be useful in this case?

muhali3 10-17-2003 08:13 PM

vaguedenoiser is extremely good and preserves the detail very well too

incredible 10-17-2003 08:45 PM

Hi!
Quote:

AviSource("C:\unzipped\movies/resident evil.avi", false)
BlindPP(CPU=4)
LanczosResize(352, 334, 4, 0, 568, 304)
AddBorders(8, 73, 8, 73)
Undot()
deen("a3d",1,12,14)
ATC(2,3,5,0.5,false)
TemporalSoften(2,7,7,3,2)
MergeChroma(blur(1.5))
Asharp(1,4)
DCTFilter(1,1,1,1,1,1,0.5,0)
I would recommend to set the borders to the and of the script or in front of DCT filter, cause a sharpener behind bordering will cause "to sharpen-glowing-like" edges at the borders and the effective pixels of the movie will rise up, even if its black.
You perform a lot of denoisers but with temporalsmoother set to values like (2,7,7 ...) and above, its a littly risky to sharpen afterwards. Cause TempSmoother with higher values (if not already the most is cleaned by using deen and ATC) could cause an effect like a window in front of the picture with static grain on moving scenes. If this happens, this will not be eliminited by chromaBlur .. it will be even also sharpened by using asharp afterwards.
So just do a testing on your bad material, if this effect occurs try one step without using Tempsmoother. :wink:

Dialhot 10-18-2003 04:30 AM

Quote:

Originally Posted by Boulder
Probably he meant a PP by the DivX or XviD codec..not sure though :?

I guess he meant exactly this.

muhali3 10-18-2003 09:22 AM

so should i also take out the chromablur :?:

muhali3 10-18-2003 09:27 AM

you should also change the "a3d" in deen to "a2d", because a2d is spatial-only, and that is good because ATC can take care of the temporal cleaning.


All times are GMT -5. The time now is 05:38 PM  —  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.