digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: anyone put The Matrix Reloaded on KVCD? (http://www.digitalfaq.com/archives/avisynth/6222-avisynth-put-matrix.html)

audioslave 10-20-2003 05:26 PM

Avisynth: anyone put The Matrix Reloaded on KVCD?
 
...on 1CD?
And if so, could you please post the script along with info on CQ etc.?

muhali3 10-20-2003 07:10 PM

I did it with this script, the quality was ok, and i got a CQ of 66.34. I just used Dialhot's Avi2kvcd script and switched some stuff around. My final size was 792.65 MB. I just got the DVD 2 days ago :lol:

Code:

AviSource("c:/matrix.avi")
BlindPP()
GripCrop(480, 480, overscan=1, source_anamorphic=false)
GripSize(resizer="LanczosResize")
Undot()
Deen("a2d",2,10,12)
TemporalSoften(2,2,7,15,2)
DCTFilter(1,1,1,1,1,1,0.5,0)
Blockbuster(method="noise",detail_min=1,detail_max=8,variance=0.3,seed=5823)
GripBorders()


audioslave 10-20-2003 07:46 PM

@muhali

Thank you. I'm guessing my problem is that my source DVD is PAL. I'm losing quite a bit in CQ right there. BTW didn't you encode a DVD source?
Another question: Why didn't you use the MA script :?: Or an adaptive script...

muhali3 10-20-2003 08:08 PM

yeah i encoded a ntsc dvd source, i guess i messed up the file name.
I didn't use the MA Script because whenever i use it Avisynth gives an error message when it gets like 4mins into the source. The script that i have there is also very fast when compared to the MA script. I have a slow computer (1.1GhZ) so its more convenient, but if you have a fast computer (around 2.4GhZ) use VagueDenoiser. ok whatever. :D

Zyphon 10-21-2003 05:03 AM

Hi muhali3 i agree with you there i only have a Pentium3 @933 Mhz and if i convert a DivX Movie it takes 3-4 hours but the DVD Source MA script is double that about 7-8 hours.

What DivX codec did u use? I usually use Xvid codec.

muhali3 10-21-2003 04:06 PM

i don't really get what you mean when you say what divx codec did i use, i use the one that everyone uses :lol:

incredible 10-21-2003 04:46 PM

@ Audioslave

Try a combination of higher spatial filtering like deen does and the MA routine incl. DCT

Code:

#####################################
nf = 0
#Mpeg2Source("Your_D2V_Source_Here")
#
undot()
Limiter()
# asharp(1, 4) # only if really needed!
GripCrop(Your_GripCrop_Parameters_Here)
GripSize(resizer="BicubicResize")
deen("a2d",2,8,10)
MergeChroma(blur(1.50))
MergeLuma(blur(0.1))
#
######################################
#
SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2
ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf >= SwitchThreshold ? \
unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ) : \
TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1) ")
#
######################################
#
GripBorders()
LetterBox(16,16,16,16)
Limiter()
DCTFilter(1,1,1,1,1,1,0.5,0)
#
######################################
#
## Functions ###
function fmin( int f1, int f2) {
return ( f1<f2 ) ? f1 : f2
}
#
######################################

Try without Blockbuster at the end cause blockbuster just adds fine noise to give information at plain surfaces to the encoder so it avoids Blocks.
But as your source is clean DVD you will get even more CQ without blockbuster ... just try a prediction with and without blockbuster and preview the predicted sample by this you see the quality and the resulted CQ
;-)

audioslave 10-22-2003 11:57 AM

Thank you for all your help. The thing is that no matter what I try the CQ seems to stop just below 56. Isn't there any "magical" filter I can try, except Deen and VagueDenoiser to crank up the CQ a bit more? Otherwise I'll just gonna have to lower the resolution (I'm testing with 480x576 at the moment).

Dialhot 10-22-2003 01:31 PM

Did you try to lower the audio to 112 kb/s ? Raise the overscan ? Raise the blur on the Luma ?

You never gave us your script so its hard to see where we can enhance it !

You ask for "Magic filters except Deen or VagueDenoiser". They are magick : why don't you want to use them ?

audioslave 10-22-2003 02:04 PM

I have tried with both Deen and VagueDenoiser but they didn't raise the CQ enough.
Okay here's the script I'm using (Dialhot's BTW!):
Quote:

nf=0

MPEG2Source("D:/The Matrix Reloaded.d2v", cpu=4, ipp=false)

GripCrop(480, 576, overscan=2, source_anamorphic=true)
GripSize(resizer="LanczosResize")
UnDot()
Deen("a2d", 2, 10, 12)
#STMedianFilter(8, 32, 0, 0)
MergeChroma(blur(1.58 ))
MergeLuma(blur(0.1))

SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2
ScriptClip("nf = round(YDifferenceToNext())"+chr(13)+ "(nf >= SwitchThreshold) ? UnFilter(-(fmin(nf*2,100)),-(fmin(nf*2,100))) : TemporalCleaner(6+nf,13+nf) ")

GripBorders()
DCTFilter(1, 1, 1, 1, 1, 1, 0.5, 0)

function fmin(int f1, int f2) { return (f1<f2) ? f1 : f2 }
Any suggestions, please?

BTW Dialhot, this is the script I PM'ed you about... :wink:

Dialhot 10-22-2003 02:14 PM

I didn't understood you were using it for a DVD source.

use cpu=6 insteed of cpu=4
use mergeluma(blur(0.2))
use Bicubic insteed of Lanczos

But try that one by one : if you use all of them at the same time, I guess the picture will be to soft for your eyes.


Note: and for the sound ?

audioslave 10-22-2003 02:19 PM

@Dialhot
I'm trying 112kbps for the audio...
Do you have any idea on why I get this error message in the CQMatic log:
Quote:

File size difference: -10690560.0
I think those numbers aren't supposed to be negatives, right?

P.S. Always from DVD sources...

EDIT: About the CQMatic error: What's really strange is that I have preview on in TMPGEnc and everything looks alright. No error messages at all...

jorel 10-22-2003 02:34 PM

Quote:

Originally Posted by Dialhot

use cpu=6 insteed of cpu=4

8O
hey Phil,this is new for me :!:

where i adjust this and for "what" :?:
what this do?
:?

audioslave 10-22-2003 02:42 PM

Hi jorel.

From what I understand this is a way for mpeg3dec to postprocess the movie. Sort of in a way that we manually do by processing the movie with all kinds of filters. Please correct me if I'm wrong. :wink:
And as you can see in my previous post, this is where you put the line in a script:
Quote:

MPEG2Source("D:/The Matrix Reloaded.d2v", cpu=6, ipp=false)
BTW ipp=false means that the source is progressive. If you want to use this for an interlaced source you'll have to write ipp=true.

Dialhot 10-22-2003 02:47 PM

AS audioslave explain, the "cpu=6" is in the mpeg2source line. But you can use it also in "blindPP" if you use this filter.

You can read the documentation of mpeg2dec3 to see what is the usage of the parameter "cpu".

jorel 10-22-2003 02:50 PM

:D

thanks audioslave and Phil.....
now i see in the mpeg2dec3 (v1.10) read-me:

cpu : 0 to 6.
6 : DEBLOCK_Y_H, DEBLOCK_Y_V, DEBLOCK_C_H, DEBLOCK_C_V, DERING_Y, DERING_C
(Y=luma C=chroma, H=horizontal V=vertical)

iPP :
To use Field-Based Post-Processing.
it' better if you want to deinterlace
- True : Field based
- False : Image based (default)

....and some more hints..... :!:
:wink:

edited>
thank you too Phil :!:
we post at the same time.
:D

EightBall 10-22-2003 06:44 PM

I am dazzled both by the knowledge and the cooperation of all the posters on this thread.

Truly, all of you are part of what makes this site so good. so different.

Last year, I just wanted to know how to burn a movie. No reason, just wanted to.
Now I want to know all about the field of video encoding. What a fascinating hobby, I feel so fortunate to have met Karl Kwag online, and eventually to have been a part of this site, where I got to meet so many of you. From the genius of Kwag,Dialhot,Boulder, so many others, the sheer professionalism of Kwag himself, the added super-friendliness of Jorel,vmesquita, many others, the willing helpfulness of rendalunit, jellygoose, muhali, incredible,and so many others.
This site has Character, and Personality.
This newbie, (I hate that word :) ) thanks you all. I feel fortunate to be among you. Why I havent been thrown out on my ear, I'll never know.
:wink:

jorel 10-22-2003 07:03 PM

EightBall,
i hate the word "newby" too....i'm newby (more than you). :oops:

but the best:
is a pleasure to have you as our friend (for me is too big) :!:
(sorry my english,you know what i mean)!
:D :D :D

EightBall 10-23-2003 02:27 AM

I know exactly what you mean, my friend. Thanks! :wink:

Zyphon 10-23-2003 06:52 AM

Quote:

Originally Posted by EightBall
I am dazzled both by the knowledge and the cooperation of all the posters on this thread.

Truly, all of you are part of what makes this site so good. so different.

Last year, I just wanted to know how to burn a movie. No reason, just wanted to.
Now I want to know all about the field of video encoding. What a fascinating hobby, I feel so fortunate to have met Karl Kwag online, and eventually to have been a part of this site, where I got to meet so many of you. From the genius of Kwag,Dialhot,Boulder, so many others, the sheer professionalism of Kwag himself, the added super-friendliness of Jorel,vmesquita, many others, the willing helpfulness of rendalunit, jellygoose, muhali, incredible,and so many others.
This site has Character, and Personality.
This newbie, (I hate that word :) ) thanks you all. I feel fortunate to be among you. Why I havent been thrown out on my ear, I'll never know.
:wink:

I couldnt of said it better myself and i agree with you 110% :)

This is an excellent forum friendly, helpful and what a fantastic community where like minded people help each other out and share what knowledge they have discovered along the way, i to am a newbie but have learned so much from the people you have mentioned in your post and would like to add my thank you to them also. ;)


All times are GMT -5. The time now is 08:31 PM  —  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.