Quantcast Avisynth: Mergechroma to Gain Compression? - Page 4 - digitalFAQ.com Forums [Archives]
  #61  
02-27-2003, 07:13 AM
GFR GFR is offline
Free Member
 
Join Date: May 2002
Posts: 438
Thanks: 0
Thanked 0 Times in 0 Posts
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
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
  #62  
02-27-2003, 08:06 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 GFR
Too bad we can't use two instances of dust in the same script
We can't?
Reply With Quote
  #63  
02-27-2003, 12:20 PM
GFR GFR is offline
Free Member
 
Join Date: May 2002
Posts: 438
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #64  
02-27-2003, 05:45 PM
TCC TCC is offline
Free Member
 
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
This is called "Maniac filtering :

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 ) : http://www.kvcd.net/s1m0ne-test.mpg ( 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 . So how is that possible
Reply With Quote
  #65  
02-27-2003, 07:18 PM
heyitsme heyitsme is offline
Free Member
 
Join Date: Jun 2002
Location: pullman, WA
Posts: 129
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to 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
__________________
Eat drink and be merry for tomorrow we die
Reply With Quote
  #66  
02-27-2003, 09:57 PM
TCC TCC is offline
Free Member
 
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
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.
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??
Reply With Quote
  #67  
02-27-2003, 10:01 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
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"

-kwag
Reply With Quote
  #68  
02-27-2003, 10:55 PM
labomba labomba is offline
Free Member
 
Join Date: Jan 2003
Location: S.Paulo-Brasil
Posts: 185
Thanks: 0
Thanked 0 Times in 0 Posts
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%
Frame Type : Progressive (flicking) Interlaced

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

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

Again sorry!
LaBomba
Reply With Quote
  #69  
02-27-2003, 11:05 PM
TCC TCC is offline
Free Member
 
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
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"

-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??
Reply With Quote
  #70  
02-27-2003, 11:15 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
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.
Sorry, I should have been more specific

-kwag
Reply With Quote
  #71  
02-27-2003, 11:21 PM
TCC TCC is offline
Free Member
 
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Sorry, I should have been more specific

-kwag
Ok, that's good to know. But how can you determine this?
Reply With Quote
  #72  
02-27-2003, 11:40 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
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
Reply With Quote
  #73  
03-01-2003, 01:27 PM
heller heller is offline
Free Member
 
Join Date: Jan 2003
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote
  #74  
03-01-2003, 01:29 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
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
Reply With Quote
  #75  
03-01-2003, 05:56 PM
Tutankhamun Tutankhamun is offline
Free Member
 
Join Date: May 2002
Location: Ohio - U.S.
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
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.5)
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.5)
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.5)
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.
__________________
Thanks for the help
Reply With Quote
  #76  
03-01-2003, 07:15 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
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
Reply With Quote
  #77  
03-02-2003, 10:33 AM
Bchteam Bchteam is offline
Free Member
 
Join Date: Jan 2003
Posts: 275
Thanks: 0
Thanked 0 Times in 0 Posts
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???
Reply With Quote
  #78  
03-02-2003, 11:36 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 Bchteam

What am I doing wrong???
Nothing
It probably means that this type of movie you're encoding can't compress more with the chroma and luma settings.

-kwag
Reply With Quote
  #79  
03-02-2003, 11:42 AM
Bchteam Bchteam is offline
Free Member
 
Join Date: Jan 2003
Posts: 275
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #80  
03-02-2003, 11:44 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 Bchteam
But which one provides better quality???
Only you can tell

-kwag
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: 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
Avisynth: mergeLuma and mergechroma? Wolfi Avisynth Scripting 7 05-05-2003 04:38 AM
Avisynth: Increasing compression through preprocessing SansGrip Avisynth Scripting 67 01-29-2003 11:00 AM

Thread Tools



 
All times are GMT -5. The time now is 01:38 PM  —  vBulletin © Jelsoft Enterprises Ltd