Log in

View Full Version : mixed field order in one clip


bjarque
4th June 2008, 01:23
Hello

Im working with mpeg-2 from various sources, and sometimes i get one mpeg2 file with different field order varying throughout the clip. Its because the material i have is rendered from different sources..

I've been reading about AviSynth, and i cant find out if theres a way to detect the "real" field order of a part of a clip. Perhaps its possible to convert the file to progressive and weave it to a constant field order?

I would appreciate any input - im not an avisynth shark.

Regards
Bjarke

Gavino
4th June 2008, 08:02
I've been reading about AviSynth, and i cant find out if theres a way to detect the "real" field order of a part of a clip. Perhaps its possible to convert the file to progressive and weave it to a constant field order?
AviSynth itself can't tell what the field order is (or should be). Unless there's a plugin out there that will do the job by analysing the field contents in some way.

Of course, if you can identify (manually) the sections that have the wrong order, you can just apply SwapFields to those sections, but I guess your question is really about how to identify them automatically...

stickboy
4th June 2008, 08:09
You don't want to call SwapFields (that will change their spatial arrangement).

If you can identify the sections that need correcting, you're better off using something like my JDL_ReverseFieldDominance function (http://www.avisynth.org/stickboy/).

Gavino
4th June 2008, 10:29
You don't want to call SwapFields (that will change their spatial arrangement).
Ah, I see - the fields need to stay in the same place (top or bottom), but with each odd (or even) field shifted into an adjacent frame. Thanks for putting this right, stickboy.