digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Script for high quality VCDs? (http://www.digitalfaq.com/archives/avisynth/14610-avisynth-script-high.html)

shanestar07 12-24-2008 04:51 AM

Script for high quality VCDs?
 
hey phil,

I was just wondering what script you use for creating High quailty KvCDs?
could you maybe post the full script here and whered u get the DDLs?

at the moment im only usin the very basic scripts and it would be nice to go into better ones

Dialhot 12-24-2008 10:09 AM

My script did not change since a long time:

Code:

DGDecode_Mpeg2Source("PATH\NAME.d2v",cpu=4,idct=7)
ColorMatrix(d2v="PATH\NAME.d2v")

#TDeint(tryweave=true)

LanczosResize(...)

LimitedSharpenFaster()
LRemoveDust_YV12(17,2)

#MergeLuma(Blur(0.2))
#MergeChroma(Blur(1))

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

The TDeint line if when I use interlaced sources.
If I can't have a correct result with that, I first uncomment MergeLuma and MergeChroma. If thsi is nto enought, I uncomment the scripclip line (using then something similar to "motion adaptative script" presented in optimal scripts).

As usual all my plugins are here:
http://www.kvcd.net/downloads/Avisynth_All_Plugins.rar

shanestar07 12-24-2008 11:23 AM

Hi phil

thanks for the reply mate

the LanczosResize(...) could you give me an example on how that line would work (eg. LanczosResize(702x576)

regards

Dialhot 12-24-2008 07:29 PM

Use PARanoia to find it: http://www.kvcd.net/forum/viewforum.php?f=93

shanestar07 12-25-2008 08:26 AM

Ah done that mate , thanks as always


Heres the script i done phil

dgdecode_mpeg2source("C:\Documents and Settings\shane\Desktop\tom\tom.d2v",cpu=4,idct=7)
ColorMatrix(d2v="C:\Documents and Settings\shane\Desktop\tom\tom.d2v")

TDeint(tryweave=true)

BicubicResize(480,432,1./3.,1./3.,0,0,720,576)

LimitedSharpenFaster()
LRemoveDust_YV12(17,2)

MergeLuma(Blur(0.2))
MergeChroma(Blur(1))

#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(0,72,0,72)


if i remove the scriptclip line - i get a error saying that "unfilter" isnt a command (and i did d/l that plugins folder and replaced it wid my old one) - any ideas?

merry christmas phil and a happy new yr :drunkard:

Dialhot 12-25-2008 04:43 PM

What version of avisynth are you using ?
I used to have a problem due to number of files in the plugin folders. That may explain why unfilter is not found.
You shoudl upgrade avisynth to 2.57 at least, or try to remove some files in the plugin directory.

shanestar07 12-25-2008 05:55 PM

Hi phil,

Done that - its worked just updated to 2.5.8 and i didnt have to delete any plugins - the only problem im having now is - i keep gettin errors in TMPGenc saying "Illegal floating decimal point calculation order" during converting - usually the same patten between 22-24%...

and i encoded 10 plus perfect kvcds today alone and now im suddenly getting them :banghead:

i thought maybe its the vob files are broken/damaged so i re ripped them and still the same!

i managed to dig this particular page up: http://www.kvcd.net/forum/viewtopic.php?t=13227
but i thought that "DirectShow" shouldnt be checked, infact only avisynth plugin to my knowledge, but anyhow ,tryed it and nothing....

any suggestions? :roll:

Dialhot 12-25-2008 06:08 PM

Unfortunately there is no way to eradicate this issue. It may by avoided changing a little the CQ value.

Did you ever try to encode in MPEG2 (doing KSVCD) ? If yes, then just forget VCD and encode using HCenc instead of tmpgenc.

shanestar07 12-25-2008 06:17 PM

i see , to be honest ive never tried that or KDVD to that point - is it the same procedures as kvcd? but MPEG2? - i have got HCenc but never really used it - i will do some research on that tho


update on that error msg - since my last post i simply reloaded the encoder and raised the CQ value to 100 (as im only doing 25 min cartoons) - in 480x576 - even then they only come out as 350mb - which the quality is outstanding.

but now its reached 50% so good so far,

Dialhot 12-25-2008 07:25 PM

Quote:

Originally Posted by shanestar07
i see , to be honest ive never tried that or KDVD to that point - is it the same procedures as kvcd? but MPEG2? - i have got HCenc but never really used it - i will do some research on that tho

I wrote KSVCD, not KDVD. The target is still a CD, but encoded in MPEG2 and muxed as SVCD. Try it and see if your standalone can play it.

Not need to go to 100, 90 is the max visual quality. Above it's just more file size.

tengo6dedos 08-15-2009 10:41 PM

hello, is not necesary to add interlaced true when interlaced?
Code:

colormatrix(d2v="ruta\nombre.d2v",interlaced=true)
?



saluts

Dialhot 08-16-2009 12:20 PM

Not needed with d2v in my opinion, as the file contains the informations for each frame, either progressive or interlaced.


All times are GMT -5. The time now is 04:51 AM  —  vBulletin Jelsoft Enterprises Ltd

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