digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Increasing compression through preprocessing (http://www.digitalfaq.com/archives/avisynth/2150-avisynth-increasing-compression.html)

SansGrip 01-14-2003 11:10 PM

Increasing compression through preprocessing
 
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 8O.

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 :).

SansGrip 01-14-2003 11:21 PM

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.

kwag 01-14-2003 11:21 PM

Hehe, this just never ends :mrgreen:
I can see it clearly in the (not too distant) future: The KVCD 300 minute
(U)ltraLBR :mrgreen: :mnkypile:
-kwag

SansGrip 01-14-2003 11:23 PM

Quote:

Originally Posted by kwag
Hehe, this just never ends :mrgreen:

May it ever be so :D.

Quote:

I can see it clearly in the (not too distant) future: The KVCD 300 minute
(U)ltraLBR :mrgreen: :mnkypile:
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 :mrgreen:.

SansGrip 01-14-2003 11:45 PM

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 ;).

kwag 01-14-2003 11:52 PM

.................................................. .................................................. ............................................. :roll: .................................................. ........................ :roll: .................................................. ........... :roll: .................................................. ....... :roll: WAITING :!:

SansGrip 01-14-2003 11:53 PM

Quote:

Originally Posted by kwag
.................................................. .................................................. ............................................. :roll: .................................................. ........................ :roll: .................................................. ........... :roll: .................................................. ....... :roll: WAITING :!:

:mrgreen:

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? :D

kwag 01-15-2003 12:00 AM

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 :idea:. 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? :D
You bet :mrgreen:

-kwag

SansGrip 01-15-2003 12:04 AM

Quote:

Originally Posted by kwag
What happens if you remove the C3D line :idea:.

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 :mrgreen:
Uploading now. I'll edit when it's finished :).

Edit: Here it is, 6.5mB.

kwag 01-15-2003 12:11 AM

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 8) )

-kwag

SansGrip 01-15-2003 12:13 AM

Quote:

Originally Posted by kwag
(haven't seen the movie yet, just the sample 8))

It's not great ;) -- nowhere near as much swashbuckling as there should be :D.

kwag 01-15-2003 12:14 AM

Check the file name :wink:

SansGrip 01-15-2003 12:17 AM

Quote:

Originally Posted by kwag
Check the file name :wink:

It's late ;). Fixed.

kwag 01-15-2003 12:25 AM

There should be a "Hall of fame" sample gallery, because that definitively looks like a DVD :mrgreen:
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 :mrgreen:
Just AMAZING :D

-kwag

kwag 01-15-2003 12:27 AM

What was your .avs script for that SansGrip :?:

SansGrip 01-15-2003 12:29 AM

Quote:

Originally Posted by kwag
There should be a "Hall of fame" sample gallery, because that definitively looks like a DVD :mrgreen:

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 :).

SansGrip 01-15-2003 12:39 AM

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 :).

kwag 01-15-2003 12:47 AM

There's no Blockbuster or Fluxsmoot there right :?:

kwag 01-15-2003 12:49 AM

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 :D

-kwag

SansGrip 01-15-2003 12:50 AM

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()



All times are GMT -5. The time now is 09:22 PM  —  vBulletin Jelsoft Enterprises Ltd

Site design, images and content © 2002-2022 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2022 Jelsoft Enterprises Ltd.