Log in

View Full Version : AVS Scripting Sequence...


archaeo
17th June 2004, 15:03
I recently tried running PeachSmoother through RB's new AVS scripting options. It was giving me errors because PeachSmoother requires the files to be converted to YUY BEFORE the filter is applied. In RB, I noticed that when you check the 'convert to YUY()' option in the AVS options, it places this conversion command line AFTER the filters are applied, which generates errors in Peach. So, set up in this way Peach would not run properly.

It was a fairly easy workaround, I just unchecked the 'Convert to YUY()' option in RB, and added the same command line to the AVS text box right before the "loadplugin..." script. This effectively placed the conversion command before the filter was applied, and this solved the problem...

What I was wondering is if in RB there is any reason that the 'Convert to YUY()' option shouldn't just place this text command before the filters are engaged? Is there any reason it is placed there after the filters are applied? I only ran into this sequence problem in Peach, but I am thinking there might be other filters where this could occur as well.

onesoul
17th June 2004, 15:27
Well, you most likely have avisynth 2.5* installed which supports YV12 colorspace. Avisynth internal filters and other YV12 capable filters are faster thus the reason to apply the converttoyuy2() on last line. (CCE to the moment only supports YUY)

You can check the YV12 FAQ sticky at avisynth usage forum.

Cheers

wmansir
17th June 2004, 19:50
Originally posted by archaeo
What I was wondering is if in RB there is any reason that the 'Convert to YUY()' option shouldn't just place this text command before the filters are engaged? Is there any reason it is placed there after the filters are applied? I only ran into this sequence problem in Peach, but I am thinking there might be other filters where this could occur as well.

The reason is that a lot of filters are YV12 only, or perform faster in that format, so if it is changed many filters will need even more work to use with DVD-RB.

The way it is now you can add the convert command yourself, as you know. You don't even need to change DVD-RB's ConvertToYUY2 option because if the colorspace is already in YUY2 the second convertToYUY2 command is ignored. So it doesn't add any additional processing time and is easy to do.

If the filters were placed after the ConvertToYUY2 command and you wanted to insert a YV12 only filter you would have to either 1. Manually edit your scripts to place the filters before the conversion to YUY2 or 2. Convert to YV12, then run your filters, then convert back to YUY, which is very wasteful.

So the way it works now using YUY2 filters is a trivial inconvenience. If it were changed then using YV12 fitlers would be a non-trivial inconvenience.

archaeo
17th June 2004, 20:22
The reason is that a lot of filters are YV12 only, or perform faster in that format, so if it is changed many filters will need even more work to use with DVD-RB.

wmansir, onesoul

understood and thanks for clarifying...

And yes, it is indeed a minor inconvenience to tweak the script sequence... and it's definitely outweighed by the convenience of being able to add custom script directly through RB! Another tip of my cap to jdobbs on that one...