Quantcast Avisynth: Very Low CQ for PAL Video - digitalFAQ.com Forums [Archives]
  #1  
10-17-2003, 05:25 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
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 ) 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.
__________________
AudioSlave
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
10-17-2003, 05:31 PM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
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).
Reply With Quote
  #3  
10-17-2003, 05:37 PM
muhali3 muhali3 is offline
Free Member
 
Join Date: Sep 2003
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #4  
10-17-2003, 05:50 PM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
No need to use BlindPP for DVD sources. The built-in postprocessing in MPEG2Source does a better job with them.
Reply With Quote
  #5  
10-17-2003, 05:57 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
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?
__________________
AudioSlave
Reply With Quote
  #6  
10-17-2003, 06:02 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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 !
Reply With Quote
  #7  
10-17-2003, 06:03 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #8  
10-17-2003, 06:06 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
@Dialhot.
Hi there. Testing your script right now Looking good so far
__________________
AudioSlave
Reply With Quote
  #9  
10-17-2003, 06:12 PM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #10  
10-17-2003, 06:16 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
BTW how does this "deblocking" effect the image quality? Except for getting rid of some of the blocks of course
__________________
AudioSlave
Reply With Quote
  #11  
10-17-2003, 07:40 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
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?
__________________
AudioSlave
Reply With Quote
  #12  
10-17-2003, 08:13 PM
muhali3 muhali3 is offline
Free Member
 
Join Date: Sep 2003
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
vaguedenoiser is extremely good and preserves the detail very well too
Reply With Quote
  #13  
10-17-2003, 08:45 PM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
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.
Reply With Quote
  #14  
10-18-2003, 04:30 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #15  
10-18-2003, 09:22 AM
muhali3 muhali3 is offline
Free Member
 
Join Date: Sep 2003
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
so should i also take out the chromablur
Reply With Quote
  #16  
10-18-2003, 09:27 AM
muhali3 muhali3 is offline
Free Member
 
Join Date: Sep 2003
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Scrolling video tommyboy Avisynth Scripting 1 12-19-2004 05:08 PM
Avisynth: How to filter this very grainy video? audioslave Avisynth Scripting 15 05-06-2004 12:00 PM
Avisynth: KVCDx3 video looks pretty bad fragmaster170 Avisynth Scripting 3 03-27-2004 12:24 PM
Avisynth, get no video just the audio Jon The Gooner Avisynth Scripting 0 10-27-2003 07:51 AM
Avisynth: What is video noise? syk2c11 Avisynth Scripting 1 10-18-2002 10:38 PM

Thread Tools



 
All times are GMT -5. The time now is 05:16 AM  —  vBulletin © Jelsoft Enterprises Ltd