Avisynth: Problem with lastest optimal scripts
I keeping getting this script error when using dvd2svcd in conjunction with dvd2kvcd:
Script error, there is no function named "is Y12" C:/DVD2SVCD/movie/Avisynth_script_file.avs, line 12 C:/DVD2SVCD//movie/Avisynth_script_file.avs, line 3 Any Suggestions :?: , Here is the whole thing: LoadPlugin("C:\DVD2SVCD\Avisynth2.5 Plugins\Mpeg2dec\MPEG2DEC.dll") AVISource("C:\DOCUME~1\Big2HD\MYDOCU~1\MYVIDE~1\Xt ras\WDBC.avi",False) ConvertToYUY2() BlindPP(cpu=4) Blockbuster(method="noise",detail_min=1,detail_max =3,variance=0.1,seed=1) Convolution3D(1, 6, 12, 6, 8, 2.8, 0) GripCrop(352, 240+0+0, overscan=1, source_anamorphic=false, dest_anamorphic=false) GripSize(resizer="LanczosResize") Undot() TemporalSoften(2,7,7,3,2) DCTFilter(1,1,1,1,1,1,0.5,0) GripBorders() function ConvertToYUY2(clip c){ return isYV12(c) ? c : convertToYV12(c) } |
|
Thank You SOOOOO very much YOU DA MAN Jellygoose!!!
:ole: |
function ConvertToYUY2(clip c){ return isYV12(c) ? c : convertToYV12(c) }
What's the purpose of this part of the Script?? |
That is due to the usage of DVD2SVCD : when the source is an avi, it always try to convert it in YUY2 by adding the "ConvertToYUY2()" line that you can see after the "avisource" command.
That is not in the original script, it's really DVD2SVCD that adds it. So I had to find a trick in order to avoid the useless conversion and be sure to work in YV12 because blindPP needs it ! Thats it the two purposes of the line you pointed : override the original ConvertToYUY2 and do a ConvertToYV12 if the original clip wasn't in this colorspace. |
OK - I see - it just seems kinda strange on first view :)
|
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.