anathema
23rd January 2006, 10:54
Howdy,
I'm working with a video clip that's undergone a cheap-n-cheerful PAL->NTSC conversion. I'm still in the process of working out the exact details, but essentially the conversion was done by repeating selected fields in roughly this sequence:
There are 32 repeats of [5 unique frames + duplicate of frame #5] followed by [6 unique + dupe of #6], and then the sequence restarts.
This isn't quite the end of it - I've found a case where the [5+1] sequence appears 34 times between a pair of [6+1], but presumably if I hunt for long enough I'll find the period of this pattern too :-)
Anyway, since the original PAL fields exist (bar a few lines), I'm attempting to remove the dupes and get the original 50i sequence back. This is unfortunately a bit beyond the capabilites of SelectEvery/SelectRangeEvery... As a programmer, my first inclination is to write a simple while() loop, but AVS doesn't support them and my attempts to use recursion just result in me running out of stack :-(
Can anyone suggest anything, please? :-) Thanks!
I'm working with a video clip that's undergone a cheap-n-cheerful PAL->NTSC conversion. I'm still in the process of working out the exact details, but essentially the conversion was done by repeating selected fields in roughly this sequence:
There are 32 repeats of [5 unique frames + duplicate of frame #5] followed by [6 unique + dupe of #6], and then the sequence restarts.
This isn't quite the end of it - I've found a case where the [5+1] sequence appears 34 times between a pair of [6+1], but presumably if I hunt for long enough I'll find the period of this pattern too :-)
Anyway, since the original PAL fields exist (bar a few lines), I'm attempting to remove the dupes and get the original 50i sequence back. This is unfortunately a bit beyond the capabilites of SelectEvery/SelectRangeEvery... As a programmer, my first inclination is to write a simple while() loop, but AVS doesn't support them and my attempts to use recursion just result in me running out of stack :-(
Can anyone suggest anything, please? :-) Thanks!