View Full Version : move ConvertToYUY2() to end of .avs?
Krizzz989
6th November 2003, 03:42
---AVS Begin---
LoadPlugin("C:\PROGRA~1\DVD2SVCD\AVISYN~1.5PL\Mpeg2dec\MPEG2D~1.DLL")
AVISource("R:\anime\FULLME~2\anime.avi",False)
ConvertToYUY2()
LanczosResize(480,480)
LoadPlugin("C:\AviSynth\Convolution3D.dll")
converttoyv12.Convolution3D(preset="animeHQ").converttoyuy2
----AVS End----
there must be a better way. color conversions take more time!
ideally, i would like to use this:
---AVS Begin---
LoadPlugin("C:\PROGRA~1\DVD2SVCD\AVISYN~1.5PL\Mpeg2dec\MPEG2D~1.DLL")
AVISource("R:\anime\FULLME~2\anime.avi",False)
LanczosResize(480,480)
LoadPlugin("C:\AviSynth\Convolution3D.dll")
Convolution3D(preset="animeHQ").converttoyuy2
----AVS End----
is this possible? (since c3d requires yv12)
this is the one i'm currently using in my avisynth.ini
[AVISYNTH_c3d animehq]
0=LanczosResize(^TargetWidth,^TargetHeight)
1=AddBorders(0,^BorderTop,0,^BorderBottom)
2=LoadPlugin(!Convolution3D.dll)
3=converttoyv12.Convolution3D(^convpreset).converttoyuy2
!Convolution3D.dll=C:\AviSynth\Convolution3D.dll
^convpreset=preset="animeHQ"
or, does CCE 2.6x accept yv12 input?
r6d2
6th November 2003, 11:31
Originally posted by Krizzz989
or, does CCE 2.6x accept yv12 input?
Basically, yes.
Look for "Q14.4 AVISynth 2.5 issues (can CCE decode YV12?)" in the CCE FAQ (http://forum.doom9.org/showthread.php?s=&threadid=53770).
Remember that DVD2SVCD can do this for you on the Encoder tab, advanced settings.
The search (http://forum.doom9.org/search.php?s=) button is a really valuable tool. Don't overlook it.
Krizzz989
6th November 2003, 13:14
yes, search is a valuable tool, but i typed up my original post first, then i edited and added the yv12 question at the end. thanks for the info about my yv12 question. :)
Krizzz989
10th November 2003, 16:05
i'm still looking to move converttoyuy2 to the end of the script.
perhaps some one could move this to the advanced forum?
thanks in advance.
EDIT:
under "Advanced settings" i set "Color conversion" to "No color conversion" and under the "Frameserver" tab under "Edit the Avisynth file" i set to "Edit as part of Video encoding" then when the avisynth edit box comes up.... this:
LoadPlugin("C:\PROGRA~1\DVD2SVCD\AVISYN~1.5PL\Mpeg2dec\MPEG2D~1.DLL")
AVISource("R:\anime\FULLME~2\clip.avi",False)
ConvertToYUY2()
LanczosResize(480,480)
LoadPlugin("C:\AviSynth\Convolution3D.dll")
converttoyv12.Convolution3D(preset="animeHQ").converttoyuy2
and i'm using this, from my avisynth.ini:
[AVISYNTH_c3d animehq]
0=LanczosResize(^TargetWidth,^TargetHeight)
1=AddBorders(0,^BorderTop,0,^BorderBottom)
2=LoadPlugin(!Convolution3D.dll)
3=converttoyv12.Convolution3D(^convpreset).converttoyuy2
!Convolution3D.dll=C:\AviSynth\Convolution3D.dll
^convpreset=preset="animeHQ"
so its still doing it.
r6d2
10th November 2003, 16:41
Originally posted by Krizzz989
i'm still looking to move converttoyuy2 to the end of the script.
As I said before, let DVD2SVCD do it.
Select "ConvertToYUY2" in Color Conversion, and you will not need to edit the script.
Trahald
11th November 2003, 17:35
---AVS Begin---
LoadPlugin("C:\PROGRA~1\DVD2SVCD\AVISYN~1.5PL\Mpeg2dec\MPEG2D~1.DLL")
AVISource("R:\anime\FULLME~2\anime.avi",False)
ConvertToYUY2()
LanczosResize(480,480)
LoadPlugin("C:\AviSynth\Convolution3D.dll")
converttoyv12.Convolution3D(preset="animeHQ").converttoyuy2
----AVS End----
there must be a better way. color conversions take more time!
seems like avi2svcd likes to throw that converttoyuy2() way high in the script on avi2svcd conversions. its not needed there so --
ideally, i would like to use this:
---AVS Begin---
LoadPlugin("C:\PROGRA~1\DVD2SVCD\AVISYN~1.5PL\Mpeg2dec\MPEG2D~1.DLL")
AVISource("R:\anime\FULLME~2\anime.avi",False)
LanczosResize(480,480)
LoadPlugin("C:\AviSynth\Convolution3D.dll")
Convolution3D(preset="animeHQ").converttoyuy2
----AVS End----
is this possible? (since c3d requires yv12)
yes.. that would be the an efficient script (if your source avi is NOT yuy2.) so it would be Yv12 throughout the whole script until the end (of course the mpeg2dec line isnt needed, but d2s adds that so just leave it)
if your avi is yuy2 then you would want to do something like
AVISource("R:\anime\FULLME~2\anime.avi",False, pixel_type="YUY2")
remove all convertto's from the script and of course use the yuy2 version of convolution3d.. if you really wanna tweak your speed
or, does CCE 2.6x accept yv12 input?
as r6 said, "basically yes." id just keep the last converttoyuy2 there because as it says in the faq.. even if your computer setup will allow it, its not any faster or slower than using the ending converttoyuy2
perhaps some one could move this to the advanced forum?
uhmm.. this is an odd issue, something d2s may want to address.. but doesnt rise to advanced ;)
Krizzz989
12th November 2003, 06:32
Originally posted by r6d2
As I said before, let DVD2SVCD do it.
Select "ConvertToYUY2" in Color Conversion, and you will not need to edit the script. sorry r6d2, i'm looking to move converttoyuy2 to the END of the script. i know how to make d2s add a converttoyuy2 line for me but its putting it right after the source line and that's not what i want.
thanks for the reply w00kie :)
r6d2
12th November 2003, 13:51
Originally posted by Krizzz989
i know how to make d2s add a converttoyuy2 line for me but its putting it right after the source line and that's not what i want.
I quite understood your question, but you said in your post you were doing just the opposite. ;)
Since there seems to be a quirk with the color thing, try this:
1. Use no color conversion (D2S may still insert a conversion function).
2. Add this line to the script: "~ConvertToYUY2()"
And see what happens. The tilde is supposed to move the line containing it to the botton of the script no matter what.
You may end up with a redundant color conversion, but one of them at the end.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.