Log in

View Full Version : How to test which field is first?


FredThompson
28th June 2003, 17:38
How is it possible to retrieve a boolean to describe the field dominance of a clip?

? BFFTestResult() DoubleWeave().SelectOdd() : nop()

Putting this at the front of scripts would be very helpful when editing DV. It would remove the possibility of doing a field-order conversion more than once.

BFFTestResult() represents whatever construct would return the boolean.

-- update --

ok, this appears to work:

GetParity() ? nop() : DoubleWeave().SelectOdd()

GetParity() is listed in the ShareFunctions part of the AviSynth website. Why isn't there a master list of the functions?

Si
28th June 2003, 17:45
Isn't all DV BFF, (assuming you mean home camcorder DV) and therefore all you'd need would be an AssumeBFF if you were worried about unnecessary field order conversions (whatever they are)

regards
Simon

FredThompson
28th June 2003, 17:58
The problem shows up when you've got a lot of clips and various processing. How do you know if you've already changed the field dominance for a clip? The current MainConcept DV codec can compound the problem because it has settings to force field order switch in the decoder and encoder.

stickboy
28th June 2003, 18:18
Originally posted by FredThompson
GetParity() is listed in the ShareFunctions part of the AviSynth website.GetParity() is an internal function.

You can see a list of them in the Avisynth documentation (the one that gets installed with Avisynth, not the stuff on avisynth.org) under:

Getting Started > Script/Control/Clip Functions

FredThompson
28th June 2003, 18:31
Yeah, I was wrong. It's actually in both at the end of the list. Guess I missed it in the listing.