digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Guide to convert DVD to KVCD (http://www.digitalfaq.com/archives/encode/2654-guide-convert-dvd.html)

kev23m 02-28-2004 05:33 PM

Filter
 
GripFit_YV12.dll

This is the filter i am missing , dead link. The one i have is gripfit_preview.dll

Till then let me chk on cq matic.

bigggt 02-28-2004 05:46 PM

Just did a search on google and found this,

http://wald.heim.at/redwood/511999/

ANd even if you can,t get it you can do this

Quote:

Mpeg2Source("Your_D2V_Source_Here")
#
undot()
Limiter()
asharp(1, 4)
GripCrop(Your_GripCrop_Parameters_Here)
GripSize(resizer="BicubicResize)

STMedianFilter(3, 3, 1, 1 )
MergeChroma(blur(1.5))
MergeLuma(blur(0.1))
#
#

## Linear Motion Adaptive Filtering ##
#
# ( Portions from AviSynth's manual )
# This will apply variable temporalsoften
# and variable blur.
# Both filters are active at all times, and work inversely proportional to the
# activity, measured from current frame to next frame.

ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "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( Your_Values_Here ) # Depends on situation. Use MovieStacker!
Limiter()

#
#
## Functions ###

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

#
####
and replace it with this using moviestacker

Quote:

Mpeg2Source("Your_D2V_Source_Here")
#
undot()
Limiter()
asharp(1, 4)
BicubicResize(512, 352, 1/3, 1/3, 11, 0, 698, 480)
STMedianFilter(3, 3, 1, 1 )
MergeChroma(blur(1.5))
MergeLuma(blur(0.1))
#
#

## Linear Motion Adaptive Filtering ##
#
# ( Portions from AviSynth's manual )
# This will apply variable temporalsoften
# and variable blur.
# Both filters are active at all times, and work inversely proportional to the
# activity, measured from current frame to next frame.

ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "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) ")

#
#
#

AddBorders(8, 64, 8, 64)
#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
Limiter()

#
#
## Functions ###

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

#
####
That is what moviestacker is usewd for until it is updated :D

kev23m 02-28-2004 05:49 PM

Link
 
Its got a link to avisynth site , same as you gave me b4 , checked that already.

And where can i get Cq Matiq.

Dialhot 02-28-2004 05:56 PM

Or you can use this mirror done by Incredible :

http://www.incredible.de.tf/Downloads/GripFit_YV12.rar

bigggt 02-28-2004 05:59 PM

The link i gave gives me the download of the .dll :wink:

near the bottom

kev23m 02-28-2004 06:01 PM

Thanks
 
Thanks , The link worked.
File name was grip.dll renamed it as it was in the script.

Allright i have everything now.
The script you guys gave me, all the filters and avisynth 2.53.

Now for prediction should i try with tok, cos don't know cq matic and can't locate anything on it.

Right now i need to do the file prediction, for that also i think i will have to edit the script right or cq matiq does it automatically.

bigggt 02-28-2004 06:04 PM

there is a whole scetion on it here

http://www.kvcd.net/forum/viewtopic.php?t=5145

I still have luck with TOK but most people use cq matic and you don't need to do anything with the script

kev23m 02-28-2004 06:13 PM

Check Pls
 
K before i go ahead here is the final script, let me know if any mistakes in here.

## DLL Section ##
#
LoadPlugin("C:\Filters25\MPEG2Dec3.dll")
LoadPlugin("C:\Filters25\GripFit_YV12.dll")
LoadPlugin("C:\Filters25\STMedianFilter.dll")
LoadPlugin("C:\Filters25\asharp.dll")
LoadPlugin("C:\Filters25\unfilter.dll")
LoadPlugin("C:\Filters25\undot.dll")
#
####
## Main section and static filters ###
#
Mpeg2Source("D:\Encoded\Namak Halal\nh.d2v")
#
undot()
Limiter()
asharp(1, 4)
BilinearResize(448, 446, 0, 1, 720, 478)
GripSize(resizer="BicubicResize")
STMedianFilter(3, 3, 1, 1 )
MergeChroma(blur(1.5))
MergeLuma(blur(0.1))
#
#

## Linear Motion Adaptive Filtering ##
#
# ( Portions from AviSynth's manual )
# This will apply variable temporalsoften
# and variable blur.
# Both filters are active at all times, and work inversely proportional to the
# activity, measured from current frame to next frame.

ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "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( Your_Values_Here ) # Depends on situation. Use MovieStacker!
Limiter()

#
#
## Functions ###

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

#
####

Dialhot 02-28-2004 06:25 PM

Re: Check Pls
 
Quote:

Originally Posted by kev23m
LoadPlugin("C:\Filters25\MPEG2Dec3.dll")
LoadPlugin("C:\Filters25\GripFit_YV12.dll")
LoadPlugin("C:\Filters25\STMedianFilter.dll")
LoadPlugin("C:\Filters25\asharp.dll")
LoadPlugin("C:\Filters25\unfilter.dll")
LoadPlugin("C:\Filters25\undot.dll")

Put all the plugins in the "plugins" directory of avisynth 2.5 and remove all these lines.

Quote:

BilinearResize(448, 446, 0, 1, 720, 478)
GripSize(resizer="BicubicResize")
GripBorders()
It seems that you wan to use gripfit ? So don't replace the gripcrop line that was just above by your bilinear line ! It's a nonsense. You have to choose either Gripcrop/Gripsize/GripBorders or Bilinear/Addborders.
But you can't mix them all.

kev23m 02-28-2004 06:41 PM

Pls
 
Ok here is the edited script

Again getting resolution error like b4.

Dialhot 02-28-2004 06:56 PM

Re: Pls
 
Quote:

Originally Posted by kev23m
Ok here is the edited script

Again getting resolution error like b4.

You removed the script before I comment it ! But I had the time to see it. Your problem is in the gripcrop line.

The correct syntax for gricrop in your case is just :
Code:

GripCrop(WIDTH,HEIGHT)
Where width and height are the dimensions of your TARGET (not the source).

Note: if you use Gripfit you don't need to use Moviestacker at all ! Gripfit compute all the parameters itself in the gripcrop line.

kev23m 02-28-2004 06:59 PM

Hi
 
I had removed it cos i tried to feed it to tok and mulitple windows of tmpg started opening and hanging.

Here is the script now


## DLL Section ##
#
#
####
## Main section and static filters ###
#
Mpeg2Source("D:\Encoded\Namak Halal\nh.d2v")
#
undot()
Limiter()
asharp(1, 4)
GripCrop(352,480)
MergeChroma(blur(1.58))
UnFilter(25, 25)
STMedianFilter(10, 50, 8, 10, 10, 50)
MergeLuma(blur(0.2))
#
#

## Linear Motion Adaptive Filtering ##
#
# ( Portions from AviSynth's manual )
# This will apply variable temporalsoften
# and variable blur.
# Both filters are active at all times, and work inversely proportional to the
# activity, measured from current frame to next frame.

ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "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) ")

#
#
#


#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
Limiter()

#
#
## Functions ###

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

#
####

Getting an error of vsub23.dll missing in tmpgenc folder.
When ifeed to Tmpg again it sets resolution to 7**x56.
Can you contact me on Im , msn oe yahoo, its 6 am here in India and i am struggling with the script since 24 hours.
Sorry for the trouble,but just totally new to this.

Dialhot 02-28-2004 07:20 PM

Re: Hi
 
Quote:

Originally Posted by kev23m
I had removed it cos i tried to feed it to tok and mulitple windows of tmpg started opening and hanging.

Don't use Tok untill the script does not work correctly in media player.
Quote:

UnFilter(25, 25)
STMedianFilter(10, 50, 8, 10, 10, 50)
:?: :?:
Why did you modified the MA script ?
You add filters that #1 are useless, #2 are harmfull for the quality, #3 don't work with avs2.5 :!:

Quote:

Getting an error of vsub23.dll missing in tmpgenc folder.
???
This dll is for subtitles and I don't see any line concerning subtitles in your script.

Quote:

When ifeed to Tmpg again it sets resolution to 7**x56.
Can you contact me on Im , msn oe yahoo, its 6 am here in India and i am struggling with the script since 24 hours.
I can't and I won't ! Do you imagine how many people are struggling ? I also have a life beside the forum. KVCD can wait, that's not a matter of life. Go to sleep a little and you will find the solution yourself tomorrow.

Quote:

Sorry for the trouble,but just totally new to this.
You see : you lived without KVCD till know, you can live one more day :-)

kev23m 02-28-2004 07:34 PM

Hi
 
Yep can certainly stay another day without kvcd.

Gonna just try and get the script done.

I removed the 2 filters u mentioned.

Tried playing in media player.

Plays error in line 8 no function named "mpeg2source".

Here is the script.

## DLL Section ##
#
#
####
## Main section and static filters ###
#

Mpeg2Source("D:\Encoded\Namak Halal\nh.d2v")

#
undot()
Limiter()
asharp(1, 4)
GripCrop(352,480)
MergeChroma(blur(1.58))
MergeLuma(blur(0.2))
#
#

## Linear Motion Adaptive Filtering ##
#
# ( Portions from AviSynth's manual )
# This will apply variable temporalsoften
# and variable blur.
# Both filters are active at all times, and work inversely proportional to the
# activity, measured from current frame to next frame.

ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "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) ")

#
#
#


#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
Limiter()

#
#
## Functions ###

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

#
####

kwag 02-28-2004 07:38 PM

@kev23m,

What version of DVD2AVI did you use :?:
Try 1.77.3 :idea:

-kwag

Dialhot 02-28-2004 07:41 PM

Re: Hi
 
Quote:

Originally Posted by kev23m
Plays error in line 8 no function named "mpeg2source".

Where did you moved the dll files ? I told you to put them in the plugin directory of avisynth 2.5. Can you give me the name of the directory where you put them ?

kev23m 02-28-2004 07:47 PM

Hi
 
Got the movie playing now, the dll file was for Avisynth 2.

Now the movie plays, but a error is coming ,There is no function called unfilter line2 plus keeps asking the subs dll even though they aint in the script.

Here is the script now.

## DLL Section ##
#
#
####
## Main section and static filters ###
#

Mpeg2Source("D:\Encoded\Namak Halal\nh.d2v")

#
undot()
Limiter()
asharp(1, 4)
GripCrop(352,480)
MergeChroma(blur(1.58))
MergeLuma(blur(0.2))
#
#

## Linear Motion Adaptive Filtering ##
#
# ( Portions from AviSynth's manual )
# This will apply variable temporalsoften
# and variable blur.
# Both filters are active at all times, and work inversely proportional to the
# activity, measured from current frame to next frame.

ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "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) ")

#
#
#


#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
Limiter()

#
#
## Functions ###

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

#
####

Dvd2avi i am using 1.76

Dialhot 02-28-2004 07:57 PM

Re: Hi
 
Quote:

Originally Posted by kev23m
no unfilter line2

You are missing the "unfilter.dll" plugin; DL it and put it into the plugin directory, with all others.

Quote:

plus the subs dll even though they aint in the script
The problem is that this DLL is for avs2.0 normally ! You shiuldn't need it !
Look at this thread :
http://www.kvcd.net/forum/viewtopic....ghlight=vsub23

And if you still want the dll (I don't have it on my PC and averything works well), look at there :
http://www.kvcd.net/forum/viewtopic....ghlight=vsub23

Note: you are so tired that your questions are harder and harder to understand. So please, go to sleep a little :-)

kev23m 02-28-2004 08:10 PM

Thanks
 
Thanks a lot ,

The script is working fine in the media player now, gonna try and use tok for now.
CQ Matiq, shall read on it and try for another time.

Once Again

Thank You.

kev23m 02-28-2004 08:20 PM

tok prob
 
The video plays properly in the PLayer but when i loaded the script in tok and the mp2 file .
Tmpg starts and gives an error

The resolution of the windows is illegal
The window size needs to be set between 8x8 and 4088x4088
The width and height of the video need to be muliple of 8.

The width and height in the script is 352,480.

kev23m 02-28-2004 08:28 PM

Done
 
I actually managed to get this done.

Changed gripgrop, removed that and added bilinear value and borders and it worked, it is encoding the movie.

Before that though it gave an error unable to load plugin line 50.
Started encoding the movie at 480x480 cq 90 frame rate 29.97.
Have chosen 2 cd's of 800mb each in Tok.

IS there something still wrong or it will work.
IS Tok an automated process that if it starts i can leave it running and forget about it.

kev23m 02-28-2004 09:03 PM

Prediction
 
The avs file plays for 10 secs , was readin thru tok's forums and updated the sampler-25.dll file.

Now again it says resolution illegal.

The error it gave on line 49, checked the avs created

AssumeFPS(29.970)
LoadPlugin("")
oldfps = framerate
interval = round((FrameCount/30)/59.940)/10
nFrames = round(30)
SelectRangeEvery( (round(framecount/interval)),nFrames)

Where am i going wrong.
I removed the line LoadPlugin"" it played the file which was a 18 sec clip.

kev23m 02-28-2004 09:43 PM

Script
 
This plays well on the media player but on loading to tok again is giving illegal resolution error. Posting both the scripts here,tomo hopefully i can proceed.

the script used

## DLL Section ##
#
#
####
## Main section and static filters ###
#

Mpeg2Source("D:\Encoded\Namak Halal\nh.d2v")

#
undot()
Limiter()
asharp(1, 4)
BilinearResize(448, 446, 0, 1, 720, 478)
AddBorders(16, 17, 16, 17)
MergeChroma(blur(1.58))
MergeLuma(blur(0.2))
#
#

## Linear Motion Adaptive Filtering ##
#
# ( Portions from AviSynth's manual )
# This will apply variable temporalsoften
# and variable blur.
# Both filters are active at all times, and work inversely proportional to the
# activity, measured from current frame to next frame.

ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "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) ")

#
#
#


#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
Limiter()

#
#
## Functions ###

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

#
####

Script tok makes

## DLL Section ##
#
#
####
## Main section and static filters ###
#

Mpeg2Source("D:\Encoded\Namak Halal\nh.d2v")

#
undot()
Limiter()
asharp(1, 4)
BilinearResize(448, 446, 0, 1, 720, 478)
AddBorders(16, 17, 16, 17)
MergeChroma(blur(1.58))
MergeLuma(blur(0.2))
#
#

## Linear Motion Adaptive Filtering ##
#
# ( Portions from AviSynth's manual )
# This will apply variable temporalsoften
# and variable blur.
# Both filters are active at all times, and work inversely proportional to the
# activity, measured from current frame to next frame.

ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "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) ")

#
#
#


#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
Limiter()

#
#
## Functions ###

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

#
####
AssumeFPS(29.970)
LoadPlugin("")
oldfps = framerate
interval = round((FrameCount/30)/59.940)/10
nFrames = round(30)
SelectRangeEvery( (round(framecount/interval)),nFrames)

kev23m 02-29-2004 03:26 AM

Script
 
Sleep always works.

No more errors with resolution, was some dll file error.

Now the movie playes perfectecly in media player.

When loaded with Tok, still getting the error for Load PLugin"" created in the avs by Tok.
I have downloaded most of the filters i could , so all are now proper acc to the version of avisynth.

In file prediction it plays the file with 300 frames and always sets cq at 90 and instead of the movie , the red errors lines in picture.
The test m1v file is 1.16mb only.

Thanks everyone for thier help, especially dialhot.

Dialhot 02-29-2004 06:03 AM

Re: Script
 
Quote:

Originally Posted by kev23m
Sleep always works.

No ? Really ? ;-)

Quote:

the red errors lines in picture.
Give the the EXACT TEXT OF THE ERROR !
Man we are not in front of your monitor nor behind your eyes.

kev23m 02-29-2004 07:03 AM

Getting invalid floating point error suddenly.

Nochanges to the script made .

Before this i was getting error

Cannot load plugin. script line 49

line 49 read
LoadPlugin""

Making the d2v and mp2 file again.

kev23m 02-29-2004 08:05 AM

Done
 
M Asking too many ?'s . Should keep working and when i give up then i shall ask now.

Got it done , its doing the prediction as we speak and no errors.

Trial n error is da best.

Removed the avisynth dll files from system32 and reinstalled avisynth 2.5.

Did the trick.


Cheers!

kev23m 02-29-2004 08:19 AM

Resolution
 
How can we fix the resolution.
In gripgorp values if i have given
720,480 it is encoding in 720,464
480,480 it is encoding in 480,356
352,480 it is encoding in 352,276.

kev23m 02-29-2004 08:22 AM

working with bilinear
 
used the bilinear script , with that encoding in 480,480.

kev23m 02-29-2004 10:16 PM

Muxing
 
Video encoded bt Tok not muxing, it opens bbmpeg and stops.

Tried muxing with bbmpeg, it stops after 54%, that i guess is due to size cos i checked the file it was 3.99gb .
HEre is the log of Tok

Audio Size: 172,480,256
Required Video Size: 1,451,260,547

Factor: 59.940
Desired Sample Size: 24,211,890

-------------------------------------------------------------
New Faster Prediction
-------------------------------------------------------------

Full Sample
Next CQ: 70.000. Sample Size: 34,177,094
Small Sample
Next CQ: 70.000. Sample Size: 3,430,660
Predicting...
Next CQ: 49.590. Sample Size: 22,405,919
Next CQ: 56.258. Sample Size: 25,686,717
Next CQ: 53.092. Sample Size: 24,770,668
Next CQ: 51.803. Sample Size: 24,692,574
Next CQ: 51.017. Sample Size: 24,045,018

Exit Condition: 1.000 % reached ! yahoo !
Tries : 6


Final CQ: 51.017
Total Time For Predicition: 01:51:53


-------------------------------------------------------------
Encoding D:\Encoded\Namak Halal\bilinear_backup.avs
-------------------------------------------------------------

Encoding... CQ : 51.017
Final Encoded Size: 1,418,581,458
Muxing ...


Total Time (all operations): 10:44:45

Finished


So i tried Multiplexing with Tmpgenc but it says illegal audio stream for mpeg.

kev23m 03-01-2004 01:18 AM

Cq
 
Was just trying out to check the quality if i try and fit in 1 cd.
Takes cq value 17 and image is blurry, anything i can add in the script to increase the quality.Its 168 mins and soung is 164mb.Resolution set at 352x288,mpeg-1.

Still trying to mux the other movie i encoded in 2cd's.

Dialhot 03-01-2004 03:25 AM

One day some will understand that the chance are poor to obtain answer when they post 5 message in a row.

DFor your last problem : under CQ=60 a video is barely watchable.
I am very suprised about the CQ you have !

Can you please fill this form and post the answers :

http://www.kvcd.net/forum/viewtopic.php?t=8753
(do a new toppic for that, it will be easier to answer to your problem).

black prince 11-24-2004 08:36 PM

@All

This new updated guide has many features. Please let me know what
you think and if any corrections needed. :)

-BP

kwag 11-24-2004 08:51 PM

Thanks BP ;)

-kwag

WOWIEGURL 12-23-2004 05:42 AM

where do I download the Hvorbis.dll/Ac3enc.dll/linfacc.dll? I've looked at Dark Avenger's site and I couldn't find anything.

Dialhot 12-23-2004 06:00 AM

www.google.com

WOWIEGURL 05-20-2005 08:04 AM

I think this guide is for one audio stream... I notice in cqmatic when I calulate the average bitrate, the number when there is 2 audio streams is 150. If I remove one it becomes 300 something... my dvd is 3 hours long. If I only use the one audio stream setting to make the calculation, will there be enough space to add back on the second audio? Or am I better off using file prediction for this project?

Dialhot 05-20-2005 08:51 AM

So you will never end with silly questions ?

If you predict for 1 audio stream, don't be suprised to not have the place to fit the second one in the end !
It can be (because audio streams are generally small compared to the video filesize) but of course, predict for two audio stream is better !

derekmacdonald 02-12-2006 02:41 PM

OK, here's a newbie question. I'm at the step when you load up TMPGenc for the first time. The step says to go video source>load .avs file here

Now, when I navigate to my avs file (movie.avs) and click ok, the program says that the file can not open or is unsupported.

I'm a bit lost. Any help?

kwag 02-12-2006 03:09 PM

Hi derekmacdonald,

Did you install "ReadAVS.dll" :?:
http://www.kvcd.net/ReadAVS.zip

-kwag


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

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