Log in

View Full Version : Which Conversion should i use (ConvertToYuY2 or YV12ToYUY2)/AviSynth AutoLoad Plugin


TCD02
5th May 2003, 03:52
Hi,
is there any difference between the between the Standard Colorspace Conversion or the ones from the MPEG2DEC3.dll (ConvertToYUY2 oder YV12ToYUY2)??

If yes, which??

How do i differ which MPEG2DEC Plugin wil be used, since AviSynth loads plugins automatically.
Let's say i have the MPEG2DEC.dll, the MPEG2DEC3.dll and the MPEGDecoder.dll (YV12) copied into the Plugin Folder!!

As i understand the "MPEGSource" refers to the plugin, not to AviSynth itself.
So which one is loaded/used, when all three are in the Plugin Folder?

Is it correct, that the only way to decide which one should be used in the actual script ist to include a "Load Plugin" Statement??

Can i be certain, that in this case the one is really used??

Can anybody explain this??
TCD

LigH
5th May 2003, 13:45
When you use "MPEGSource()", then it will be MPEGDecoder.dll - because MPEG2DEC?.DLL provides the function called "MPEG2Source()". :p

If you specify more than just the video source (e.g., also the CPU parameter) in "MPEG2Source()", then MPEG2DEC3.DLL must be used (because the default MPEG2DEC.DLL does not provide such parameters).

If you want to ensure a specific plugin to be used, don't place several concurrent DLLs into the auto-load directory; instead, use "LoadPlugin()".

sh0dan
5th May 2003, 14:16
Originally posted by TCD02
Is there any difference between the between the Standard Colorspace Conversion or the ones from the MPEG2DEC3.dll (ConvertToYUY2 oder YV12ToYUY2)??

If yes, which??


They differ slightly in the way they upsample the chroma information. There has been very lengthy discussions about this in the dev. forum. To summarize:

ConvertToYUY2() and YV12ToYUY2() are very alike - in fact probably so alike, that you will not be able to tell the difference in a blind test.

My own measurements give Convert a slight speed advantage, but nothing major. YV12ToYUY2 was most relevant in the 2.50 AviSynth, where we used XviD converters that could create stepping in some cases.

Guest
5th May 2003, 15:21
@sh0dan

The documentation shipped with 2.5.1 shows the syntax for all the convert functions as ConvertToxxxx(clip). The interlaced and pixel_type parameters need to be documented.

sh0dan
5th May 2003, 15:41
@Donald: Thanks for noticing! Our documentaion wizards (WarpE and Wilbert) have already fixed the issue. The interlaced options on ConvertToRGB are still missing - I'll add them!