PDA

View Full Version : Using Avisynth script fails only through Rb _Dvd


Calca_P
24th February 2005, 09:56
The DVD I have, "A Fish Called Wanda" is very dirty/noisy and so Ive
compiled an Avisynth script to try to clean it up.

I get an Avisynth error saying "RemoveDirt does not have an argument
(Mthreshold) and the same for the rest of the arguments.

Script arguments giving RB DVD trouble:

RemoveDirt(mthreshold=180,athreshold=80,pthreshold=4,cthreshold=12)

Its loaded through RB_OPT and works fine when tested, it also works loaded straight into CCE but when encoding via RB_DVD or taken straight from the D2VAVS folder (after Prepare) into CEE I get the error.

Any help apreciated,
Thanks

archaeo
24th February 2005, 15:05
I'm not sure, but it may have something to do with where "ConvertToYUY2" is placed in the script. On several filtering projects where I've had trouble, that command had to be placed at the end of the filtering scripts.

EDIT: this probably won't make a difference with an argument error.

Calca_P
24th February 2005, 15:42
Thanks archaeo,

Im not using "ConvertToYUY2" when not required. I encode in YV12 to
keep changes to a minimum.

Except when necessary of course.

Though before I discount your suggestion, seeing as I dont know for sure
I will try it.

TheSeeker
24th February 2005, 18:42
Originally posted by Calca_P
Thanks archaeo,

Im not using "ConvertToYUY2" when not required. I encode in YV12 to
keep changes to a minimum.

Except when necessary of course.

Though before I discount your suggestion, seeing as I dont know for sure
I will try it.

Hmm.. I was under the impression that CCE REQUIRED YUY2 input. Yea it does.. here is a snippet from the CCE FAQ


Q14.4 AVISynth 2.5.x and (interlaced) conversion from YV12 to YUY2

An important difference between AVISynth 2.0x and 2.5 is that naturally AVISynth 2.5 operates in the YV12 colorspace whereas AVISynth 2.0x operates in YUY2 (mandatory read: AVISynth YV12 FAQ). YV12 happens to be the native format used on DVD so one can expect a significant increase in speed when frame serving video originating from DVD VOBs because theoretically no color space conversion needs to be performed. Unfortunately for CCE users this is only half the truth because no version of CCE can currently natively read YV12 input, CCE itself can only decode RGB and YUY2.


EDIT: This does not include cce 2.70. Im not sure if that version can handle yv12 colorspace or not. I know this has nothing to do with your avisynth errors (Or maybe it does), but I thought I would point this out to you that the ConvertToYUY2 line is needed in pretty much every case. I just looked at the CCE 2.70 pdf manual and it seems CCE still does not natively read the YV12 colorspace. Though I think it does perform the colorspace conversion automatically if its not present in an avs script. Which may be why you arent getting an error when you delete this line from your avs scripts.

Calca_P
25th February 2005, 01:00
Hmm.. I was under the impression that CCE REQUIRED YUY2 input. Yea it does.. here is a snippet from the CCE FAQ

I have installed "Xvid" YV12 codec and CCE finds it.

Yep you are right, CCE does indeed use YUY2 and NOT YV12.
I checked the options and the Tick box for YUY2 was ticked and when unticked I got "Wrong Format"

Ahhhwell, Play more, Hopefully understand more.