Quantcast Avisynth: Increasing Compression Through Preprocessing - digitalFAQ.com Forums [Archives]
  #1  
01-14-2003, 11:10 PM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
I've been playing with various smoothing filters and have come up with a nice combination for adding some serious numbers to the CQ level of a given movie.

Of all the combinations I've tried so far, what gives me the best compression increase is:

Code:
FaeryDust()
Convolution3D(preset="movieLQ")
I got my 2-disc version of Death To Smoochy up from about 73 to 85 with these two filters .

The script's output is quite smooth when viewed from WMP, and likely wouldn't be suitable for MPEG-4 encoding (or even high-bitrate MPEG-1), but for low-bitrate MPEG-1 it seems that the encoding process masks the lack of details fairly effectively. If you find this too much smoothing, try preset="movieHQ" for Convolution3D instead.

These two filters are very slow, though .

Anyway, that's what I've been playing with this evening. Make sure you get v4 of Dust since it fixes one of the bugs I mentioned earlier...

Test and post .
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  
01-14-2003, 11:21 PM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Forgot to mention, I also used

Code:
Tweak(cont=0.8, sat=0.8)
to pull down the contrast and saturation a little. It is a very bright and highly coloured movie, and I think that was messing with the encoder somewhat.

Oh, and I also put a

Code:
Letterbox(8, 8)
before the GripFit to enlarge the top and bottom borders a little.
Reply With Quote
  #3  
01-14-2003, 11:21 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Hehe, this just never ends
I can see it clearly in the (not too distant) future: The KVCD 300 minute
(U)ltraLBR
-kwag
Reply With Quote
  #4  
01-14-2003, 11:23 PM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
Hehe, this just never ends
May it ever be so .

Quote:
I can see it clearly in the (not too distant) future: The KVCD 300 minute
(U)ltraLBR
Hey, I've got Death To Smoochy (2-disc, 192kbps audio) up from 73 to 96 and counting. I'm still a meg or so from the target .
Reply With Quote
  #5  
01-14-2003, 11:45 PM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Maxed out at CQ 100 -- about 300kB below target size. I'm now going to watch the sample on the TV... Back in a bit .
Reply With Quote
  #6  
01-14-2003, 11:52 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
.................................................. .................................................. ............................................. .................................................. ........................ .................................................. ........... .................................................. ....... WAITING
Reply With Quote
  #7  
01-14-2003, 11:53 PM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
.................................................. .................................................. ............................................. .................................................. ........................ .................................................. ........... .................................................. ....... WAITING


Looks very nice -- perhaps a little softer than usual, but not a lot. I'm thinking of trying the DVD trick (i.e. heavy smoothing followed by an edge-enhancement) next...

Of course the real test is an HDTV. Want a sample?
Reply With Quote
  #8  
01-15-2003, 12:00 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by SansGrip
Looks very nice -- perhaps a little softer than usual, but not a lot. I'm thinking of trying the DVD trick (i.e. heavy smoothing followed by an edge-enhancement) next...
What happens if you remove the C3D line . I just did a sample and it looks really great in the PC, but I did notice some very slight "screening" effect on the film.
Quote:

Of course the real test is an HDTV. Want a sample?
You bet

-kwag
Reply With Quote
  #9  
01-15-2003, 12:04 AM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
What happens if you remove the C3D line .
Still get nice compression benefits from Tweak and FaeryDust, but not as much as with C3D movieLQ. CQ would maybe drop from 100 to 95 or so (that's just a wild guess).

Quote:
but I did notice some very slight "screening" effect on the film.
You mean when you watch it on the TV? Try using preset="movieHQ". Bear in mind that Death To Smoochy is very difficult source material, and is quite noisy.

Quote:
You bet
Uploading now. I'll edit when it's finished .

Edit: Here it is, 6.5mB.
Reply With Quote
  #10  
01-15-2003, 12:11 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by SansGrip
You mean when you watch it on the TV? Try using preset="movieHQ". Bear in mind that Death To Smoochy is very difficult source material, and is quite noisy.
Just watching on the monitor.
I did use preset="movieHQ" on "Count of Monte Cristo" movie which is very dark with smoke or dust ( haven't seen the movie yet, just the sample )

-kwag
Reply With Quote
  #11  
01-15-2003, 12:13 AM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
(haven't seen the movie yet, just the sample )
It's not great -- nowhere near as much swashbuckling as there should be .
Reply With Quote
  #12  
01-15-2003, 12:14 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Check the file name
Reply With Quote
  #13  
01-15-2003, 12:17 AM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
Check the file name
It's late . Fixed.
Reply With Quote
  #14  
01-15-2003, 12:25 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
There should be a "Hall of fame" sample gallery, because that definitively looks like a DVD
I'm going to re-encode "Count of Monte Cristo" again, which I had done at 352x480. I think that it can go on 528x480 with these filters
Just AMAZING

-kwag
Reply With Quote
  #15  
01-15-2003, 12:27 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
What was your .avs script for that SansGrip
Reply With Quote
  #16  
01-15-2003, 12:29 AM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
There should be a "Hall of fame" sample gallery, because that definitively looks like a DVD
Ah, remember that's for two discs. If I could get it looking like that for one disc I'd be very happy . I'm playing with one-disc settings now. I'll post a sample, but probably not until the morning. I'm almost asleep .
Reply With Quote
  #17  
01-15-2003, 12:39 AM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Ok, so I lied. Here's the same 30 seconds from the one-disc version (112kbps audio). It's nowhere near as good as the two-disc (particularly anything very saturated in colour) but it's a heck of a lot better than without the extra compression from the preprocessing.

It's starting to look like I might get it on one disc at 528x480 after all .
Reply With Quote
  #18  
01-15-2003, 12:47 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
There's no Blockbuster or Fluxsmoot there right
Reply With Quote
  #19  
01-15-2003, 12:49 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by SansGrip
It's starting to look like I might get it on one disc at 528x480 after all .
That looks perfectly good for one CD

-kwag
Reply With Quote
  #20  
01-15-2003, 12:50 AM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
There's no Blockbuster or Fluxsmoot there right
Code:
Mpeg2Source("..\dts.d2v")
Telecide()
Decimate()
Letterbox(8, 8)
GripFit(528, 480, overscan=1)
Tweak(cont=0.8, sat=0.8)
FaeryDust()
Convolution3D(preset="movieLQ")
Sampler()
LegalClip()
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: New compression filters? tengo6dedos Avisynth Scripting 17 04-27-2008 02:56 PM
Avisynth: ffdshow preprocessing filter for avisynth incredible Avisynth Scripting 4 12-10-2004 06:53 PM
Increasing brightness using avisynth? khusru Avisynth Scripting 7 02-23-2004 07:44 AM
Avisynth: Good compression? muhali3 Avisynth Scripting 10 10-14-2003 05:18 PM
Avisynth: Is there a filter for increasing compression even more? audioslave Avisynth Scripting 70 08-08-2003 08:39 AM

Thread Tools



 
All times are GMT -5. The time now is 07:12 AM  —  vBulletin Jelsoft Enterprises Ltd