digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: MergeChroma to gain Compression? (http://www.digitalfaq.com/archives/avisynth/2734-avisynth-mergechroma-gain.html)

GFR 02-27-2003 07:13 AM

Quote:

Originally Posted by SansGrip
As someone pointed out earlier, MergeChroma and MergeLuma can be used in combination with any other filters. It's often possible to apply extremely heavy filtering to the chroma components without losing noticible detail, because the eyes are much less sensitive to detail in the chroma components.

For example, while kwag finds PixieDust too strong for DVD sources, it probably isn't if it's only applied to chroma:

Code:

Mpeg2Source("blah.d2v")
...

# Do over-the-top chroma smoothing

chroma = PixieDust()
chroma = chroma.TemporalSoften(...)
chroma = chroma.Blur(...)
chroma = chroma.DctFilter(...)

# Do luma smoothing

FaeryDust()
...

# Now merge the two together

MergeChroma(chroma)
...

Obviously I'm exaggerating somewhat, but you get the idea.

Too bad we can't use two instances of dust in the same script :(

SansGrip 02-27-2003 08:06 AM

Quote:

Originally Posted by GFR
Too bad we can't use two instances of dust in the same script :(

We can't?

GFR 02-27-2003 12:20 PM

I'm afraid we can't :(

On the sample avs that comes with dust5 it says:

##Known Issues:
##slow
##only one instance

Besides, I've tried to run two instances, and I got a black screen at the output.

Both instances were the same kind of dust (clip1.spacedust(), clip2.spacedust()) applied to different clips, maybe two different dust types (like spacedust() and faerysdust()) can live together, I haven't tested it.

TCC 02-27-2003 05:45 PM

Quote:

Originally Posted by kwag
This is called "Maniac filtering :lol: :

Code:

LoadPlugin("C:\encoding\mpeg2dec.dll")
LoadPlugin("C:\encoding\GripFit_preview.dll")
LoadPlugin("C:\encoding\blockbuster.dll")
LoadPlugin("C:\encoding\legalclip.dll")
LoadPlugin("C:\encoding\sampler.dll")
LoadPlugin("C:\encoding\dustv5.dll")
LoadPlugin("C:\encoding\nomosmooth.dll")
LoadPlugin("C:\encoding\fluxsmooth.dll")
LoadPlugin("C:\encoding\convolution3d")
LoadPlugin("C:\encoding\dctfilter_YUY2")

Mpeg2Source("K:\S1M0NE_WS\VIDEO_TS\simone.d2v")
LegalClip()
mergechroma(blur(1.58))
mergeluma(blur(0.6))
GripCrop( width=528, height=480, overscan=2 )
GripSize()
SpaceDust()
FluxSmooth(7,7)
NoMoSmooth(40,1,6,1,3,false)
Convolution3d(preset="movieHQ")
Blockbuster(method="sharpen", detail_min=1, detail_max=99, strength=15)
GripBorders()
LegalClip()
Sampler(length=24)

This is my latest test script using CQ=70, and look now how this KVCDx3 would look ( complete movie 131 minutes, 14 seconds on one CD 8O ) : http://www.kvcd.net/s1m0ne-test.mpg :lol: ( 10 second clip )

-kwag

Kwag,

I just tried your above script and am kind of confused. How did you get the complete 131min movie to fit on to 1 disk? Was it a dvd-r or cd-r? If it was a cd-r how is it possible because my 89min movie requests a sample size of ~9.528MB @128kbps using the prediction script. I used a CQ of 60 even and got a sample size of 10.4MB. :(

Is there some sort of settings in TMPGEnc that you use that reduces size also (i.e. my GOP is 1-24-2-1-24)?

Oops, just re-read the last paragraph and you mentioned CD :D. So how is that possible :?: :?:

heyitsme 02-27-2003 07:18 PM

@TCC

The reason Kwag and most of us are able to stick that much info is because our framerate is 23.976 and 25. Seems your framerate is at 29.976 which would result in a bigger file size for the same amount of quality. If you could use force film on your movie, or reduce the resolution to up the CQ.

Branden

TCC 02-27-2003 09:57 PM

Quote:

Originally Posted by heyitsme
@TCC

The reason Kwag and most of us are able to stick that much info is because our framerate is 23.976 and 25. Seems your framerate is at 29.976 which would result in a bigger file size for the same amount of quality. If you could use force film on your movie, or reduce the resolution to up the CQ.

Branden

OOoohhhhhh, now I get it. :lol:
So even tho my d2v file was 29fps (in the stats window of dvd2avi) and I was making the m1v file at 23fps in TMPGEnc, it was actually doing it at 29fps right?

So the correct way to do all of this is to remake my d2v file and use "force film" to have 23fps. And then use the above script with the KVCDx3 template in TMPGEnc at 23fps correct??

kwag 02-27-2003 10:01 PM

Quote:

Originally Posted by TCC

So the correct way to do all of this is to remake my d2v file and use "force film" to have 23fps. And then use the above script with the KVCDx3 template in TMPGEnc at 23fps correct??

Yes, but only if your DVD was shot FILM. Then you can use "Force FILM" :wink:

-kwag

labomba 02-27-2003 10:55 PM

Sorry to ask you Kwag again about this: What to do if the DVD2AVI preview is:

Aspect Rate: 4:3
Frame Rate: 29.970
Video Type : Film 55% (flicking) NTSC 45% :x :!:
Frame Type : Progressive (flicking) Interlaced :x :!:

Should I use Inverse Telecine (Telecide() and Decimate()) Or Field DeInterlace :?: (I'm trying with MovieStacker :) 8) )

Also, how should be the encode frame rate on TMPgEnc: 23.97 or 29.97 :?:

Again :oops: sorry!
LaBomba

TCC 02-27-2003 11:05 PM

Quote:

Originally Posted by kwag
Quote:

Originally Posted by TCC

So the correct way to do all of this is to remake my d2v file and use "force film" to have 23fps. And then use the above script with the KVCDx3 template in TMPGEnc at 23fps correct??

Yes, but only if your DVD was shot FILM. Then you can use "Force FILM" :wink:

-kwag

So if my movie is NTSC format then what's the best way to get my 89min movie with good quality/high CQ on to one CD-R?

Can I not just use "force film" even tho it is NTSC format?? Would there be a negative outcome to doing this??

kwag 02-27-2003 11:15 PM

Quote:

Originally Posted by TCC

So if my movie is NTSC format then what's the best way to get my 89min movie with good quality/high CQ on to one CD-R?

Can I not just use "force film" even tho it is NTSC format?? Would there be a negative outcome to doing this??

Most NTSC DVDs are shot FILM. :wink:
Sorry, I should have been more specific :oops:

-kwag

TCC 02-27-2003 11:21 PM

Quote:

Originally Posted by kwag
Quote:

Originally Posted by TCC

So if my movie is NTSC format then what's the best way to get my 89min movie with good quality/high CQ on to one CD-R?

Can I not just use "force film" even tho it is NTSC format?? Would there be a negative outcome to doing this??

Most NTSC DVDs are shot FILM. :wink:
Sorry, I should have been more specific :oops:

-kwag

Ok, that's good to know. But how can you determine this?

kwag 02-27-2003 11:40 PM

Quote:

Originally Posted by TCC

Ok, that's good to know. But how can you determine this?

Open your VOBs with DVD2AVI, and press "F5".
Let it run a couple of minutes, and look at the stats. If it says >95% FILM, you select "Force FILM"

-kwag

heller 03-01-2003 01:27 PM

Just tried some test encodes with mergechroma(blur(1.2)) and mergeluma(blur(0.6)) and found the output unacceptably blurry on my bigscreen TV. Anyone played around with the values and found a more acceptable quality with file size reduction?

kwag 03-01-2003 01:29 PM

Quote:

Originally Posted by heller
Anyone played around with the values and found a more acceptable quality with file size reduction?

Yes, drop mergeluma(blur(0.6)) to mergeluma(blur(0.2))

-kwag

Tutankhamun 03-01-2003 05:56 PM

Hey Kwag, I did some of the following tests with the two new filters and this is what I came up with, hopefully I did not make any mistake.

Mpeg2Source("C:\Ripping\We Were Soldiers\Soldier's.d2v")
LegalClip()
mergechroma(blur(1.58))
mergeluma(blur(0.2))
GripCrop( width=528, height=480, overscan=2 )
GripSize()
SpaceDust()
FluxSmooth(7,7)
NoMoSmooth(40,1,6,1,3,false)
Convolution3d(preset="movieHQ")
GripBorders()
LegalClip()
Sampler(length=24)

This was one of the firsts you posted in this forum to do simone 131 min
at a cq of 70. I took out blockbuster cause it was said
not needed at this resolution

My Test - We Were Soldiers 138 Minutes 13.9 MB

My next test with some of your changes

Mpeg2Source("C:\Ripping\We Were Soldiers\Soldier's.d2v")
LegalClip()
GripCrop( width=528, height=480, overscan=2 )
GripSize(resizer="lanczosresize")
mergechroma(blur(1.58))
mergeluma(blur(0.2))
SpaceDust()
FluxSmooth(7,7)
NoMoSmooth(40,1,6,1,3,false)
Convolution3d(preset="movieHQ")
GripBorders()
LegalClip()
Sampler(length=24)

Then this was the last one you had posted and said at cq 70.5
131 minute movie on one cd Changed the order of Merg and Grip
and added Lanczos resize. The change increased file size on my test

My Test - We Were Soldiers 138 Minutes 14.8 MB


Now I understand that your movie was 131 and mine was 138 min
but my tests were done at the default setting of the kvcdx3 mpeg 1.

So in "theory" if you fit 131 min at cq of 70, i should be able to fit this movie at cq of 60 on one cd. ????


Predictor shows that I need 11.38 (test points 138 error 2)

This is what I got when I took out Lanczos Resize, since it was not in the first script and changed the order of Merg and Clip.

Mpeg2Source("C:\Ripping\We Were Soldiers\Soldier's.d2v")
LegalClip()
GripCrop( width=528, height=480, overscan=2 )
GripSize()
mergechroma(blur(1.58))
mergeluma(blur(0.2))
SpaceDust()
FluxSmooth(7,7)
NoMoSmooth(40,1,6,1,3,false)
Convolution3d(preset="movieHQ")
GripBorders()
LegalClip()
Sampler(length=24)

My Test - We Were Soldiers 138 Minutes 13.6 MB

This file was put through dvd2avi 1.76 by LOLI.J and forced film
was used cause it was Film99% . Avisynth 2.07 and TmpgEnc 2.58 and the newest kvcdx3 mpeg 1 template. I guess I am stumpped as to how you got it on one cd at 70.5 and I am not even close at cq 60. I also understand that we were soldiers is a little more action but am I missing something. So can someone please tell me what I am doing wrong.

kwag 03-01-2003 07:15 PM

Hi Tutankhamun,

You can't assume the same CQ values I used, even if your movie is the same length. It all depends on the content of the movie. That's why we have to use prediction for every movie.

-kwag

Bchteam 03-02-2003 10:33 AM

Hi people.

I red through this thread and immediately applied those Merge Luma/Chroma things.

I used this script:

Code:

LoadPlugin("F:\Programme\AviSynth2\mpeg2dec.dll")
LoadPlugin("F:\Programme\AviSynth2\fluxsmooth.dll")
LoadPlugin("F:\Programme\AviSynth2\GripFit_preview.dll")
LoadPlugin("F:\Programme\AviSynth2\blockbuster.dll")
LoadPlugin("F:\Programme\AviSynth2\legalclip.dll")
LoadPlugin("F:\Programme\AviSynth2\sampler.dll")
LoadPlugin("F:\Programme\AviSynth2\convolution3d.dll")
LoadPlugin("F:\Programme\AviSynth2\dustv5.dll")
LoadPlugin("F:\Programme\AviSynth2\decomb.dll")
LoadPlugin("F:\Programme\AviSynth2\nomosmooth.dll")
LoadPlugin("F:\Programme\AviSynth2\dctfilter_YUY2.dll")
LoadPlugin("F:\Programme\AviSynth2\temporalcleanerold.dll")
LoadPlugin("C:\WINDOWS\system32\vobsub.dll")

mpeg2source("G:\HDR\HerrdeRinge.d2v")
LegalClip()
 
GripCrop( source_anamorphic=False, width=528, height=576, overscan=2 )
GripSize(resizer="lanczosresize")

mergechroma(blur(1.58))
mergeluma(blur(0.2)) 
FaeryDust()
FluxSmooth(7,7)
NoMoSmooth(40,1,6,1,3,false)
Convolution3D(preset="movieHQ")
DctFilter(1,1,1,1,1,.5,.5,0)

VobSub("G:\HDR\HDRSubs\Tonspur 1\VTS_01_0")

GripBorders()   
LegalClip()
Sampler(length=24)

But i had to find out that there was no reduction of the filesize.I encoded the Lord of the Rings part 1 Sample.The output was 24,3MB (CQ=71,2 CD's).

With my previous script I had a output of 24,3MB as well.

This is my previous script.

Code:

LoadPlugin("F:\Programme\AviSynth2\mpeg2dec.dll")
LoadPlugin("F:\Programme\AviSynth2\fluxsmooth.dll")
LoadPlugin("F:\Programme\AviSynth2\GripFit_preview.dll")
LoadPlugin("F:\Programme\AviSynth2\blockbuster.dll")
LoadPlugin("F:\Programme\AviSynth2\legalclip.dll")
LoadPlugin("F:\Programme\AviSynth2\sampler.dll")
LoadPlugin("F:\Programme\AviSynth2\convolution3d.dll")
LoadPlugin("F:\Programme\AviSynth2\dustv5.dll")
LoadPlugin("F:\Programme\AviSynth2\decomb.dll")
LoadPlugin("F:\Programme\AviSynth2\temporalcleanerold.dll")
LoadPlugin("C:\WINDOWS\system32\vobsub.dll")

mpeg2source("G:\HDR\HerrdeRinge.d2v")
LegalClip()
GripCrop( source_anamorphic=False, width=528, height=576, overscan=2 )
GripSize()
FaeryDust()
TemporalCleaner() 
Convolution3D(preset="movieHQ")
Blockbuster(method="noise", variance=.4, seed=1)
VobSub("G:\HDR\HDRSubs\Tonspur 1\VTS_01_0")
GripBorders()   
LegalClip()
Sampler(length=24)

What am I doing wrong???

kwag 03-02-2003 11:36 AM

Quote:

Originally Posted by Bchteam

What am I doing wrong???

Nothing :D
It probably means that this type of movie you're encoding can't compress more with the chroma and luma settings.

-kwag

Bchteam 03-02-2003 11:42 AM

OK.

But there's still one question.

I posted 2 scripts,
The samples of both scripts have the same Filesize.But which one provides better quality???

-Bchteam :P

kwag 03-02-2003 11:44 AM

Quote:

Originally Posted by Bchteam
But which one provides better quality???

Only you can tell 8O :wink:

-kwag


All times are GMT -5. The time now is 10:59 AM  —  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.