View Full Version : Using the Info() function output
audyovydeo
14th April 2008, 14:37
Does anyone know how (if) one can programmatically use the output of the info() function ?
I would like to use this function to test a clip's parity, ans consequently set the deinterlacing method.
I haven't found whether the output is dumped into one or more variables, of if it's just written on screen.
anyone ?
cheers
audyovydeo
Gavino
14th April 2008, 15:37
Apart from frame-dependent stuff (like frame number), doesn't Info() just output the same information you can get from the clip property functions? Among which is GetParity(clip).
sh0dan
14th April 2008, 19:47
Exactly - have a look at this page:
http://avisynth.org/mediawiki/Clip_properties
audyovydeo
14th April 2008, 21:49
perfect : thanks to you both.
cheers
a/v
Gavino
14th April 2008, 22:31
If you're going to use GetParity(), you need to be aware of the following (from http://avisynth.org/mediawiki/Interlaced_fieldbased):If a clip is field-based AviSynth keeps track of the parity of each field (that is, whether it's the top or the bottom field of a frame). If the clip is frame-based it keeps track of the dominant field in each frame (that is, which field in the frame comes first when they're separated).
However, this information isn't necessarily correct, because field information usually isn't stored in video files and AviSynth's source filters just normally default to assuming bottom field first (with the exception of the MPEG2Source plugin which gets it right!).
audyovydeo
15th April 2008, 08:55
If you're going to use GetParity(), you need to be aware of the following (from http://avisynth.org/mediawiki/Interlaced_fieldbased):
Hola.
Thanks, but I'm not there yet : I have a DOS batch script that creates an avs file based on some input. I'm trying to get it to query avisynth for this clip property, and set the relevant deinterlacing options.
Until I figure out a way of doing this from DOS, I'm stuck.
cheers
a/v
sh0dan
15th April 2008, 18:17
You cannot determine how a clip is interlaced without looking at the footage, or at least do some processing.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.